Author |
Topic |
iminore
Posting Yak Master
141 Posts |
Posted - 2009-01-06 : 17:21:57
|
I'm a bit confused re backup file types.If I do an online backup I get a file of type 'File'.If I programmatically run the 'backup' function I get various file types - '27 File', '00 File', '18 file' etc.Any relevant thoughts would be appreciated.My word is my code. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
iminore
Posting Yak Master
141 Posts |
Posted - 2009-01-06 : 17:28:12
|
I'm doing a full backup.When you look at the file in it's folder it says '27 File' under Type.My word is my code. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
iminore
Posting Yak Master
141 Posts |
Posted - 2009-01-06 : 17:33:54
|
This is my tsql code:set @strsql = 'BACKUP DATABASE [' + @dbname + '] TO DISK = N''E:\' + @backupfolder + '\' + @backupfile + ''' WITH RETAINDAYS = 30, NOFORMAT, INIT, NAME = N''' + @dbname + '-Full Database Backup'', SKIP, NOREWIND, NOUNLOAD, STATS = 10'exec sp_executesql @strsqlMy word is my code. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
iminore
Posting Yak Master
141 Posts |
Posted - 2009-01-06 : 17:45:51
|
This is an example:BACKUP DATABASE [dbname] TO DISK = N'E:\sqlbackups\dbname20090106_22.48.26' WITH RETAINDAYS = 30, NOFORMAT, INIT, NAME = N'dbname-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10My word is my code. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
iminore
Posting Yak Master
141 Posts |
Posted - 2009-01-06 : 17:55:19
|
Bloody Ada!Next time you're in Brighton give me a shout - I'll take you on the dodgems.Many thanks.My word is my code. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|