RE: can I export a database from query analyzer??
From: Uttam Parui[MS] (uttamkp_at_online.microsoft.com)
Date: 10/29/04
- Next message: PennSoft Solutions, Inc: "SQL DBA contractor needed"
- Previous message: Uttam Parui[MS]: "RE: SQL 2000 instance showing up as version6.5 after running fixre"
- In reply to: bradchand: "can I export a database from query analyzer??"
- Next in thread: bradchand: "RE: can I export a database from query analyzer??"
- Reply: bradchand: "RE: can I export a database from query analyzer??"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 29 Oct 2004 18:44:54 GMT
You can do a couple of things:
1) Backup the database and then restore it on the other server. Refer to SQL Server Books Online for syntax and examples
2) If you have a copy of the database files (data + logs) then you can use sp_attach_db to attach the database files on another server.
3) If you don't have the database files but can take the database offline for sometime then you can take the database offline (one method will be to use sp_dboption) then
copy the files to the new server. Now you can take db online. connect to the new server using QA and use sp_attach_db
HTH,
Best Regards,
Uttam Parui
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
Are you secure? For information about the Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
Microsoft highly recommends that users with Internet access update their Microsoft software to better protect against viruses and security vulnerabilities. The easiest way
to do this is to visit the following websites: http://www.microsoft.com/protect
http://www.microsoft.com/security/guidance/default.mspx
- Next message: PennSoft Solutions, Inc: "SQL DBA contractor needed"
- Previous message: Uttam Parui[MS]: "RE: SQL 2000 instance showing up as version6.5 after running fixre"
- In reply to: bradchand: "can I export a database from query analyzer??"
- Next in thread: bradchand: "RE: can I export a database from query analyzer??"
- Reply: bradchand: "RE: can I export a database from query analyzer??"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|