August 28, 2007 at 8:23 am
Hello
I need to executer a .sql procedure from DOS using isql, but i keep on getting a syntax error:
isql.exe -Smyserver -Usa -Ppassword -ic:\export_login.sql -oD:\backup\export.out -n
isql: unknown option ûS
any idea?
Tks!!
August 28, 2007 at 8:49 am
The above parameters should work, but one possible reason for this problem is a simple path setting. You may not actually be executing SQL Server's isql.exe. For example, Firebird has an isql.exe, and if your path is not set properly, the wrong isql can get called.
Regards,
Andras
August 28, 2007 at 8:58 am
well, seems that the error is due to a wrong export path
D:\backup does not exist , didn't notice that! But i wish i got a more meaningful error message
Thanks!!
August 28, 2007 at 5:04 pm
Try to run this command from \Binn folder
Thx
August 28, 2007 at 10:44 pm
Why? The path should take care of things just fine.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 28, 2007 at 10:47 pm
Uh, Terry... if you think that's bad, wait until the world of hurt you run across when you try to do something a bit sophisticated in ISQL... ISQL is severly depracated when it comes to T-SQL... don't use ISQL... use OSQL, instead, which has no such limitations.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 29, 2007 at 1:31 am
Thx all for the tips!
osql works great!
August 31, 2007 at 9:40 pm
You bet... thanks, for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply