Solved

Backing up partial database from sqlserver

Posted on 2004-04-06
6
180 Views
Last Modified: 2010-04-05
Hi

I have to take a backup of sqlserver database, but not the complete data. I need all the tables but i need to filtered the data.
Also all the views and indexes with the tables.

if someone could give me some example that would be great.

Mahesh
0
Comment
Question by:princemahesh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10767898
This question has been visited before, please look here for a couple of suggestions'
preferably, the accepted solution:

http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20691981.html?query=backup+sqlserver+database&searchType=topic

Shane
0
 

Author Comment

by:princemahesh
ID: 10768054
thanks shaneholmes

This will create the backup....is their a way if i don't want to take the backup of entire database, but some part of data only.


0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10768131
Um, you could search for backup components which support SQLServer. Most of these components allow for the selection of tables/records. However, I don't kno wof any off the top of my head

Did you try looking for any components?

If not, try the following places (do a search for backup)


http://delphi.icm.edu.pl/  {delphi Super Page}
ww1.torry.ru (www.torry.net)

www.delphipages.com
www.delphi32.com


Shane
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Accepted Solution

by:
Ridey earned 100 total points
ID: 11196690
Can I suggest the following

select  top 1000 * into TempBackupTable from Table

Then do your backup on the TempBackUpTable

drop table TempBackupTable

Note : TempBackupTable must not be defined as @TempBackupTable as this will only stay for the length of your session and will not eb available there after.

Kind Regards
0
 
LVL 1

Expert Comment

by:Ridey
ID: 11196693
>> Note : TempBackupTable must not be defined as @TempBackupTable as this will only stay for the length of your session and will not eb available there after.

Sorry my mistake it should read

Note : TempBackupTable must not be defined as #TempBackupTable as this will only stay for the length of your session and will not eb available there after.
0
 
LVL 1

Expert Comment

by:Ridey
ID: 11211808
thanks princemahesh

I'm Glad I could help
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question