osql

Run OSQL on systems which do not have Sql Server installed

血红的双手。 提交于 2019-12-13 05:19:33
问题 I have a batch file which runs an oSQL command (below). oSQL -U devUID -P testPwd -S testServer -d testDb -Q "EXEC [dbo].[sprocTEST]" When I run this batch file on systems which do not have sqlserver installed, it throws an error. "odbc driver manager data source name not found and no default driver specified osql" NOTE: Apart from the batch file I also copied - osql.exe , osql.rll Does any one know how to resolve the odbc driver error? Help much appreciated. 回答1: You don't have the rights to

Issues running scripts through osql.exe

ε祈祈猫儿з 提交于 2019-12-07 09:03:18
问题 I try and run update scripts for my software in this format: osql.exe -i "path\to\script" -U "user" -P "Password" -S "Location of sqlserver" -d "Database name" -n -b Most of the scripts are in the same format and all end in GO. A lot of them run just fine, but all the time random scripts return an error and won't run. The error is "Incorrect syntax near '∩'. on line 1. The script might be as simple as just an INSERT, but it is always this error. I can't seem to find anything online that has

Issues running scripts through osql.exe

人盡茶涼 提交于 2019-12-05 12:33:03
I try and run update scripts for my software in this format: osql.exe -i "path\to\script" -U "user" -P "Password" -S "Location of sqlserver" -d "Database name" -n -b Most of the scripts are in the same format and all end in GO. A lot of them run just fine, but all the time random scripts return an error and won't run. The error is "Incorrect syntax near '∩'. on line 1. The script might be as simple as just an INSERT, but it is always this error. I can't seem to find anything online that has been able to help me. Can anyone provide any insight? The scripts run just fine manually. Also something