| |
BikeBoy
Posts: 10
Score: 0
Joined: 1/4/2006
Status: offline
|
Hello, I am trying to do something like that from VBScript: Dim strServer Dim strDB strServer = "MyServer" strDB = "My DB" Set WshShell = CreateObject("Wscript.Shell") strCmd = "osql -d strDB -S strServer -E -ic:\sqlfile.sql -oc:\sqllog.log Wscript.Run strCmd This is not working since osql is trying to connect to strServer. How do I pass servername as a variable? I would use sqlcmd but it doesn't work with sql 2000 i don't think. Thanks
|
|