Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Tips Database Forum Rss Feed

» Database Journal Home
» Database Articles
» Database Tutorials
MS Access
SQL Scripts & Samples
» Database Forum
» Slideshows
Free Newsletters:

News Via RSS Feed

Rss Feed

Database Journal |DBA Support |SQLCourse |SQLCourse2

Featured Database Articles


Posted Feb 18, 2004

Microsoft SQL Server 2000 command line utilities (Part 1)

By Alexzander Nepomnjashiy

This first article in a series of two, discusses how to use the Microsoft SQL Server 2000 command line utilities, and what are they used for.

Just to be clear before I start, these utilities are primarily used for diagnostic, configuration and data migration purposes, rather than for database server administration.

Please find below all the 42 command line utilities available in an SQL Server instance. Some of the tools described (for example bcp, distrib and osql) have a complex syntax (huge set of options), therefore, a DBA needs permanent access to Microsoft SQL Server 2000 e-documentation - Books Online, delivered with your database server installation media.

Most of the utilities, discussed below, are installed into \Program Files\Microsoft SQL Server\80\Tools\Binn, while the others are installed into \Program Files\Microsoft SQL Server\MSSQL\Binn and Program Files\Microsoft SQL Server\80\Com.

Be aware that '\Program Files\Microsoft SQL Server\80\Tools\Binn' directory is added to a system path, so utilities located here can be run from a command prompt (without specifying a full path). As for any other utilities (i.e. those not in the '\Program Files\Microsoft SQL Server\80\Tools\Binn' directory) should be run from the command prompt in the directory in which the utility is installed or the path should be explicitly specified.

MS SQL Archives

Latest Forum Threads
MS SQL Forum
Topic By Replies Updated
SQL 2005: SSIS: Error using SQL Server credentials poverty 3 August 17th, 07:43 AM
Need help changing table contents nkawtg 1 August 17th, 03:02 AM
SQL Server Memory confifuration bhosalenarayan 2 August 14th, 05:33 AM
SQL Server Primary Key and a Unique Key katty.jonh 2 July 25th, 10:36 AM