G
Guest
Hi
I have an issue when executing a t-sql statement from a text file that includes go statements. It appears that when loaded into memory and the text is used as the CommandText property of the SqlCommand object, it doesn't like go statements
I think it does something like exec('use pubs go') and this will obviously fail and say incorrect statement near line ..
Is there a way to send the data through ADO.NET to bypass this.
Note: I know I can use isql.exe and run the text files individually through the command interpreter, but not everyone has the SQL Server client tools installed :
thanks in advance for any help
I have an issue when executing a t-sql statement from a text file that includes go statements. It appears that when loaded into memory and the text is used as the CommandText property of the SqlCommand object, it doesn't like go statements
I think it does something like exec('use pubs go') and this will obviously fail and say incorrect statement near line ..
Is there a way to send the data through ADO.NET to bypass this.
Note: I know I can use isql.exe and run the text files individually through the command interpreter, but not everyone has the SQL Server client tools installed :
thanks in advance for any help