I am trying to run an insert statement into an SQL Server 2000 database from a .sql file which is being called from a batch file running on the same server as the database.
I have got the insert statement working when run from an interavtive SQL session, but I cannot get a connection from the .sql file to work.
Does anyone know what the syntaax is for connecting to an SQL 2000 database from a .sql file?
Thanks,
-Ian
I have got the insert statement working when run from an interavtive SQL session, but I cannot get a connection from the .sql file to work.
Does anyone know what the syntaax is for connecting to an SQL 2000 database from a .sql file?
Thanks,
-Ian