To test the installation
net start mssqlserver
osql /Usa /P
If 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, as shown in this example:
1> SELECT @@SERVERNAME
2> GO
-------------------------------
WOLFHOUND
(1 row affected)
1>
SELECT @@VERSION
GO
The osql utility returns the version information.
exit