G
Guest
hello,
is it possible to create a sqlTextcomands with more sqlcmds.
I want to run somthing what i have tested in the queryanalyser ...
--first command
Create view v5tempA as .....
GO
-- command 2
Delete from mytable
--command 3
INSERT INTO mytable ....
--command 4
DROP VIEW v5tempA
now i could execute this in 4 steps
Is it possible to have a sqltext with this 4 statements where the commands
are separated with a separator?
what could be the syntax for sqlText with the 4 commands
vobjCmd = New System.Data.SqlClient.SqlCommand(sqlText)
vobjCmd.ExecuteNonQuery()
.....
thanks
is it possible to create a sqlTextcomands with more sqlcmds.
I want to run somthing what i have tested in the queryanalyser ...
--first command
Create view v5tempA as .....
GO
-- command 2
Delete from mytable
--command 3
INSERT INTO mytable ....
--command 4
DROP VIEW v5tempA
now i could execute this in 4 steps
Is it possible to have a sqltext with this 4 statements where the commands
are separated with a separator?
what could be the syntax for sqlText with the 4 commands
vobjCmd = New System.Data.SqlClient.SqlCommand(sqlText)
vobjCmd.ExecuteNonQuery()
.....
thanks