Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Are multiple statements allowed for CommandText?

Author  Topic 

taowang
Starting Member

6 Posts

Posted - 2007-12-04 : 17:22:02
Hi,

I'm wondering if SqlCommand.CommandText could be set with multiple statements when CommandType=Text. anyone knows it?

I'm sure storedprocedure is the right way to go. I'm curious if this is one thing that only sp can do.

Thx
Tao

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-12-04 : 17:24:25
Use ";" or "go" as command separator.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -