Hi there.
Using ADO Dot Net could you show me how to execute multi-lined sql. For example I may have some SQL in a string like this that I want to execute
string SqlToExecute =
"UPDATE MYTABLE
SET COL1 = 'FRED'
WHERE COL2 = '1'
GO"
SqlToExecute = SqlToExecute + Environment.NewLine + "UPDATE MYTABLE
SET COL1 = 'DAVE'
WHERE COL2 = '2'
GO"
Regards
Spangeman
Using ADO Dot Net could you show me how to execute multi-lined sql. For example I may have some SQL in a string like this that I want to execute
string SqlToExecute =
"UPDATE MYTABLE
SET COL1 = 'FRED'
WHERE COL2 = '1'
GO"
SqlToExecute = SqlToExecute + Environment.NewLine + "UPDATE MYTABLE
SET COL1 = 'DAVE'
WHERE COL2 = '2'
GO"
Regards
Spangeman