To test the installation
For the default instance, use:
net start mssqlserver
For a named instance, include the instance name, for example:
net start MSSQL$Instance1
For the default instance, use:
osql /Usa /P <administrator password>
For a named instance, include both the server and instance name, for example:
osql /Usa /P /S Machine1\Instance1
When osql connects, this osql prompt appears:
1>
If osql cannot connect, an ODBC error is returned.
SELECT @@SERVERNAME
GO
The osql utility returns the server name:
1> SELECT @@SERVERNAME
2> GO
-------------------------------
WOLFHOUND
(1 row affected)
1>
SELECT @@VERSION
GO
The osql utility returns the version information.
Exit