Aspects


vs


Home Page
About Us

Oledbcommand

Represents an SQL statement or stored procedure to execute against a data source using OLE DB provider.

Sqlcommand

Represents a Transact-SQL statement or stored procedure to execute against a SQL Server database which is used in Microsoft .NET.



Others

Example

As shown in sample below for sqlcommand which is more or less same as oledbcommand

from question  

Find out which query caused an exception

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0