Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

attach / detach newbie question
I've looked at all the microsoft articles relating to moving a database from
one location to another using the attach/detach commands and I have one
question. Are those commands typed from a command prompt or do I need to run
these from SQL manager?

Report this thread to moderator Post Follow-up to this message
Old Post
JL Adamson
08-30-05 08:23 AM


Re: attach / detach newbie question
Hi,

You can execute those commands from

1. Selecting Query Analyzer from SQL Program groups. (issue the user name
and password to login)

Once you go inside the Query analyzer you could execute all TSQL
commands which includes the detach and attach db commands.

2. FROM command prompt execute OSQL

OSQL -Usa -Ppassword  -S <SQL Servername> (enter)

This will go to a SQL prompt; there execute those sp_detach_db and
sp_attach_db commands.

Thanks
Hari
SQL Server MVP

"JL Adamson" < JLAdamson@discussion
s.microsoft.com> wrote in message
news:8886FE74-93B2-4FD9-997F- 25884FA0F953@microso
ft.com...
> I've looked at all the microsoft articles relating to moving a database
> from
> one location to another using the attach/detach commands and I have one
> question. Are those commands typed from a command prompt or do I need to
> run
> these from SQL manager?



Report this thread to moderator Post Follow-up to this message
Old Post
Hari Prasad
08-30-05 08:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 10:53 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006