Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command line SQL for SQL Server

Status
Not open for further replies.

CylonLove4Life

Technical User
Feb 15, 2005
53
ES
Hi. I've been asked to do some work on a SQL Server, remotely via a VPN.

I'd like to be able to issue basic SQL commands to it via some type of command shell. Things like CREATE DATABASE etc.

I don't need any GUI's, just a way to issue commands to the server remotely, preferrably from a command shell. I don't have any of SQL Server installed on my workstation.

Can anyone help me?
 
You have several options.

This link shows you how to use osql (the command line utility for sql server).

If you don't have the osql utility on your computer, you could download and install MSDE2000 which will install osql on your computer.

You could install SQL 2k5 express which will put a GUI app on your computer that will allow you to issue SQL commands.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top