June 26, 2006 at 5:53 am
June 26, 2006 at 8:13 am
Take a look at Osql.exe, or bcp in sql server books online
June 26, 2006 at 8:33 am
Or, run VBScript (either from batch file, or instead of batch file. Then, either:
Hope this helps
Mark
June 27, 2006 at 5:18 am
Or, simply put the line below in a batch file:
isql /U sql_username /P sql_password /S servername /i k:\filename.sql /o k:\logfile.log
And put yout T-SQL commands in the filename.sql file.
June 27, 2006 at 6:17 am
or if you do not wish to use an input file then
osql -Q "EXEC SP_FormatName 'TEST_TABLE'" /U sql_username /P sql_password /S servername /o logfilename
Far away is close at hand in the images of elsewhere.
Anon.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply