Tuesday, January 06, 2009

MS SQL Server command line utility: osql
osql -? for options, osql -L to list servers, use -E options to use trusted login (essentially the windows login). The -S needs the fully qualified name.
Example: osql -H localhost -E -S SVEN-LAPTOP3\SQLEXPRESS