Click here to Skip to main content
15,909,939 members
Home / Discussions / Database
   

Database

 
GeneralFetching Text ado.net(OLEDB) from sysbase DB Pin
vnagaraj14-May-03 8:26
vnagaraj14-May-03 8:26 
QuestionSSN Format Query? Pin
Steven Behnke14-May-03 7:03
Steven Behnke14-May-03 7:03 
Questionindependent Recordset ? Pin
AndreasSaurwein14-May-03 5:19
sussAndreasSaurwein14-May-03 5:19 
AnswerRe: independent Recordset ? Pin
Andreas Saurwein15-May-03 1:42
Andreas Saurwein15-May-03 1:42 
GeneralDate functions Pin
Anonymous13-May-03 10:59
Anonymous13-May-03 10:59 
GeneralRe: Date functions Pin
Anonymous13-May-03 21:04
Anonymous13-May-03 21:04 
GeneralBacking up and restoring tables in SQL Server Pin
prinju philip12-May-03 20:58
sussprinju philip12-May-03 20:58 
GeneralRe: Backing up and restoring tables in SQL Server Pin
Arjan Einbu20-May-03 20:19
Arjan Einbu20-May-03 20:19 
I don't recall there beeing any functionality in SQL server to backup a single table without planning for it first. It has to be planned for by creating filegroups and files.

- A filegroup is a collection of one or more files.
- A file is a file in the filesystem.
- On SQL Server you can control wich filegroup(s) a table is stored in.
- SQL Server allows you to control what file(s) or filegroup(s) to backup.

The prosess goes something like this:
1. Create a database filegroup containing one file in your database.
ALTER DATABASE MyDatabase<br />
ADD FILE TO FILEGROUP MyOtherFilegroup<br />
(<br />
 NAME = MyOtherFile,<br />
 FILENAME = 'c:\Program Files\Microsoft SQL Server\MSSQL\Data\mydb_otherfile.ndf',<br />
 SIZE = 5MB,<br />
 MAXSIZE = 100MB,<br />
 FILEGROWTH = 5MB<br />
)


2. Create (or move) the table on that database file.
CREATE TABLE Tablename(<your table definition here>) ON MyOtherFilegroup
or (to move a table from one filegroup to another) have a quick look in SQL Server Books Online. Select the index and lookup "filegroups, switching filegroup for table".

3. Take a backup of that specific file or filgroup.
The backup command will look something like either
BACKUP DATABASE MyDatabase FILE = 'MyOtherFile' TO 'MyBackupDevice'
or
BACKUP DATABASE MyDatabase FILEGROUP = 'MyOtherFilegroup' TO 'MyBackupDevice'
GeneralRe: Backing up and restoring tables in SQL Server Pin
John Fisher23-May-03 11:49
John Fisher23-May-03 11:49 
QuestionBeginners help? Pin
Anonymous12-May-03 5:44
Anonymous12-May-03 5:44 
AnswerRe: Beginners help? Pin
Mike Osbahr19-May-03 11:34
Mike Osbahr19-May-03 11:34 
QuestionHow to Filter a database with the help of a combobox ? Pin
geraldschaller10-May-03 2:26
geraldschaller10-May-03 2:26 
GeneralExecuteReader question Pin
kensai10-May-03 1:14
kensai10-May-03 1:14 
GeneralRe: ExecuteReader question Pin
jeff_martin12-May-03 7:38
jeff_martin12-May-03 7:38 
GeneralPerl Project Help Pin
micahk9-May-03 1:05
micahk9-May-03 1:05 
GeneralWriting a DataTable As DBF (Long Post) Pin
Mark Sanders8-May-03 10:32
Mark Sanders8-May-03 10:32 
GeneralRe: Writing a DataTable As DBF (Long Post) Pin
Daniel Turini8-May-03 10:58
Daniel Turini8-May-03 10:58 
GeneralSamples Pin
Mark Sanders9-May-03 8:10
Mark Sanders9-May-03 8:10 
GeneralBest Way Pin
Mark Sanders12-May-03 9:53
Mark Sanders12-May-03 9:53 
GeneralRe: Writing a DataTable As DBF (Long Post) Pin
User 31295915-May-03 2:27
User 31295915-May-03 2:27 
GeneralSQL Statment Question... Pin
Jason Weibel8-May-03 5:29
Jason Weibel8-May-03 5:29 
GeneralRe: SQL Statment Question... Pin
basementman12-May-03 6:01
basementman12-May-03 6:01 
GeneralRe: SQL Statment Question... Pin
Nick Parker28-Jul-03 8:03
protectorNick Parker28-Jul-03 8:03 
GeneralRe: SQL Statment Question... Pin
Jason Weibel28-Jul-03 8:07
Jason Weibel28-Jul-03 8:07 
GeneralRe: SQL Statment Question... Pin
Nick Parker31-Jul-03 10:30
protectorNick Parker31-Jul-03 10:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.