This may be a silly question, but I'm going to ask it anyway.
Can you put multiple T-SQL queries separated by GO in a DTS job step or do you have to put each query in a separate step?
My example is to do the following:
Please let me know if I need to include more info on this example.
Thanks in advance!
Catadmin - MCDBA, MCSA
Remember, "Work" is a four letter word. And you know what your mother told you about using four letter words!
Can you put multiple T-SQL queries separated by GO in a DTS job step or do you have to put each query in a separate step?
My example is to do the following:
Code:
Use DB1
GO
Truncate Table TableA
GO
Insert TableA (Various column names)
(Select * from TableB)
GO
Please let me know if I need to include more info on this example.
Thanks in advance!
Catadmin - MCDBA, MCSA
Remember, "Work" is a four letter word. And you know what your mother told you about using four letter words!