Q&A

Q1: Can the Command object apply any SQL query to the data source?
A1: Yep! The Command object can be used to send just about any command to your data source. However, whether or not the command is understood is completely up to the data source. In other words, you can send an Oracle-specific command to Microsoft SQL Server, but you'll most likely receive an exception at runtime.

Get Sams Teach Yourself ADO.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.