Find the location of OSQL

Got a problem you cannot solve? Try here.
Post Reply
BruceMcK
Posts: 14
Joined: Wed Jan 04, 2006 6:46 pm
Location: Sydney

Find the location of OSQL

Post by BruceMcK »

Does anyone know of a simply way to find the location of the \\binn folder for the SQL Server instance you are installing?

I can obtain the path to the SQL install using the following T-SQL, but I can't get the output param back into the IA script:

EXEC master.dbo.xp_instance_regread 'HKEY_LOCAL_MACHINE',
'SOFTWARE\\Microsoft\\MSSQLServer\\Setup',
'SQLDataRoot', @param = $OSQL_PATH$ OUTPUT
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Would Read Registry help with this?
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
BruceMcK
Posts: 14
Joined: Wed Jan 04, 2006 6:46 pm
Location: Sydney

Post by BruceMcK »

Yep, that will get me the info I'm after. Thanks.
Post Reply