SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 How to backup a single table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 03/10/2008 :  06:20:37  Show Profile  Reply with Quote
Gurus
Please let me know how do i backup a single table in sql server,i don't want to back up a file group or some thing nor i want to export a table..
I was told that if you have a PK on the table you can backup the clustered index or something.
I don't have a clear idea,Please advice
Regards
Nitin

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 03/10/2008 :  09:50:39  Show Profile  Reply with Quote
It's impossible in SQL Server 2000. It was possible in SQL 6.5.
Go to Top of Page

jezemine
Flowing Fount of Yak Knowledge

USA
2884 Posts

Posted - 03/10/2008 :  12:04:22  Show Profile  Visit jezemine's Homepage  Reply with Quote
you could export the table to a csv using BCP or similar.


elsasoft.org
Go to Top of Page

rmiao
Flowing Fount of Yak Knowledge

USA
7266 Posts

Posted - 03/10/2008 :  22:29:18  Show Profile  Reply with Quote
>> i don't want to back up a file group or some thing nor i want to export a table

So you like to do something sql doesn't supported? Good luck.
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
35934 Posts

Posted - 03/11/2008 :  00:20:45  Show Profile  Visit tkizer's Homepage  Reply with Quote
Here's what I do:

SELECT *
INTO Table1_Backup
FROM Table1

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 03/11/2008 :  10:23:15  Show Profile  Reply with Quote
Thanks Tara/Everybody

Select * into new table from oldtable is fine,but i was told in the interview that there is one more option
Thanks a lot everybody for your help

Regards
Nitin
Go to Top of Page

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 03/11/2008 :  10:29:12  Show Profile  Reply with Quote
"Select * into new table from oldtable is fine,but i was told in the interview that there is one more option"

What? I think interviewer needs to study books for SQL 2000.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000