I have a really big script (about 1GB) with UPDATE statements. Something like
UPDATE Table1 SET Col1 = 'Some text 1' WHERE ID = 1
UPDATE Table1 SET Col1 = 'Some text 2' WHERE ID = 2
-- and so on
What is the best way to execute this script? I suppose that I can’t simply open it at text editor and run query…
Thanks in additional.
UPDATED
I need to run this script on remote SQL Server instance.
execute it wih the osql utility Reference
Example:
you can also type for reference:
For remote server but you need the sql utility installed on the machine you run this.