tags:

views:

76

answers:

1

Hello,

I've been wondering if OleDBCommand doesn't supports multiple queries execution then why ";" is used in it ?

+1  A: 

The semi-colon is the SQL statement terminator. A single statement should be terminated as well, although most parsers don't require it. More info here.

Hans Passant
Yes it is a terminator indeed. But I think ";" isn't meant to be used with OleDBCommand, but is supported by the engine?
smartali89
Erm, yes. OleDbCommand generates SQL statements for the engine.
Hans Passant