www.infralib.com

www.infralib.com
Please visit my new site http://www.infralib.com for my and other authors' newer posts, articles. We will also have forums, videos, webcasts and etc.

Wednesday, 3 August 2011

How to check if WSUS using correct database instance

It is easy to check which database instance used by WSUS,

You can check it directly browsing you registry.










Or by running the command below.

Reg query "HKLM\SOFTWARE\Microsoft\Update Services\Server\Setup" /v SqlServerName




And if you have sqlcmd.exe on your computer you can also easily check connection by running

sqlcmd -S SqlServerName -E -d SUSDB

If you are using Windows Internal Database as the WSUS database, use the following string in place of SqlServerName in the command:

np:\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query

and review any error messages and correct the problems.

For more information about the sqlcmd utility, see sqlcmd Utility.

No comments: