Home All Groups Group Topic Archive Search About

Alter Table Property

Author
13 Sep 2007 9:42 PM
Ryan
I have a sql server 2005 based MyDB.mdf and MyDB.log in c:\MyData folder. All
client components are installed on my machine but do not have Management
Studio.
How do I ALTER a table property in this database either by using osql or
sqlcmd command line tools or any other tools?

Author
13 Sep 2007 10:17 PM
Erland Sommarskog
Ryan (R***@discussions.microsoft.com) writes:
> I have a sql server 2005 based MyDB.mdf and MyDB.log in c:\MyData
> folder. All client components are installed on my machine but do not
> have Management Studio. How do I ALTER a table property in this database
> either by using osql or sqlcmd command line tools or any other tools?

You run the same ALTER statement as you would have run in Mgmt Studio.

   sqlcmd -d MyDB

and off you go. (Provided that MyDB is also the database name, and not
only the filename.)


--
Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

AddThis Social Bookmark Button