View Single Post
Old 11-11-2009, 02:07 PM
Ron100 Ron100 is online now
Registered User
Join Date: 06-10-2003
Location: Indiana
Posts: 4
Run SQL can't find osql.exe

We recently uninstalled SQL Server 2005 from a build machine, then reinstalled. Visual Build Pro 6 build programs using the Run SQL action now fail, with a message like the following:

osql -S BuildSQL -d MasterBackup -U user -P pass -b -n -w 10000
Failed to create process: The system cannot find the file specified.

I can see that osql.exe exists in the following folder:
C:\Program Files\Microsoft SQL Server\90\Tools\Binn

I also cannot launch osql from the Windows Command prompt. I'm assuming some environment variable or registry entry has been deleted and/or modified - can anyone tell me what I need do to fix this problem?
Reply With Quote