Click here to Skip to main content
15,896,453 members
Home / Discussions / Database
   

Database

 
GeneralRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
J4amieC2-Nov-09 6:35
J4amieC2-Nov-09 6:35 
AnswerRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
Niladri_Biswas2-Nov-09 4:51
Niladri_Biswas2-Nov-09 4:51 
QuestionRe: how to write querey return the unique CustomerId with the first CustomerName ? Pin
i.j.russell2-Nov-09 5:14
i.j.russell2-Nov-09 5:14 
QuestionDetaching SQL Database .mdf file ! Pin
jeshra2791-Nov-09 18:36
jeshra2791-Nov-09 18:36 
AnswerRe: Detaching SQL Database .mdf file ! Pin
Mycroft Holmes1-Nov-09 20:01
professionalMycroft Holmes1-Nov-09 20:01 
GeneralRe: Detaching SQL Database .mdf file ! Pin
jeshra2791-Nov-09 20:13
jeshra2791-Nov-09 20:13 
GeneralRe: Detaching SQL Database .mdf file ! Pin
Mycroft Holmes1-Nov-09 20:20
professionalMycroft Holmes1-Nov-09 20:20 
AnswerRe: Detaching SQL Database .mdf file ! Pin
Abhishek Sur1-Nov-09 21:59
professionalAbhishek Sur1-Nov-09 21:59 
Use this :
BACKUP DATABASE [DataBaseName] 
TO  DISK = N'D:\DataBases\BackupDB.bak' WITH 
NOFORMAT, 
NOINIT,  
NAME = N'DataBaseBackup-Name', 
SKIP, 
NOREWIND, 
NOUNLOAD,  
STATS = 10


Create an object of SqlCommand and pass this as CommandText.
Run this in master Database (I mean the connection object should point to master database)

Use ExecuteNonQuery to take backup to Disk location mentioned.
Rose | [Rose]

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Microsoft Bing MAP using Javascript
CLR objects in SQL Server 2005
Uncommon C# Keywords
/xml>

QuestionCan't Create database Pin
twsted f81-Nov-09 7:15
twsted f81-Nov-09 7:15 
AnswerRe: Can't Create database Pin
Andy_L_J1-Nov-09 7:47
Andy_L_J1-Nov-09 7:47 
AnswerRe: Can't Create database Pin
Mycroft Holmes1-Nov-09 11:11
professionalMycroft Holmes1-Nov-09 11:11 
AnswerRe: Can't Create database Pin
Henry Minute1-Nov-09 11:24
Henry Minute1-Nov-09 11:24 
GeneralRe: Can't Create database Pin
Andy_L_J1-Nov-09 11:55
Andy_L_J1-Nov-09 11:55 
GeneralRe: Can't Create database Pin
Henry Minute2-Nov-09 0:25
Henry Minute2-Nov-09 0:25 
QuestionUpdate Master Database Daily comparing with old one Pin
RAJAGOPAL PATABALLA30-Oct-09 5:14
RAJAGOPAL PATABALLA30-Oct-09 5:14 
AnswerRe: Update Master Database Daily comparing with old one Pin
David Mujica30-Oct-09 5:38
David Mujica30-Oct-09 5:38 
AnswerRe: Update Master Database Daily comparing with old one Pin
Henry Minute30-Oct-09 10:30
Henry Minute30-Oct-09 10:30 
AnswerRe: Update Master Database Daily comparing with old one Pin
εїзεїзεїз31-Oct-09 20:10
εїзεїзεїз31-Oct-09 20:10 
QuestionSQL To XML Pin
Vimalsoft(Pty) Ltd30-Oct-09 4:59
professionalVimalsoft(Pty) Ltd30-Oct-09 4:59 
AnswerRe: SQL To XML Pin
J4amieC30-Oct-09 5:54
J4amieC30-Oct-09 5:54 
GeneralRe: SQL To XML Pin
Vimalsoft(Pty) Ltd30-Oct-09 5:55
professionalVimalsoft(Pty) Ltd30-Oct-09 5:55 
GeneralRe: SQL To XML Pin
J4amieC30-Oct-09 7:09
J4amieC30-Oct-09 7:09 
GeneralRe: SQL To XML Pin
Vimalsoft(Pty) Ltd1-Nov-09 20:05
professionalVimalsoft(Pty) Ltd1-Nov-09 20:05 
GeneralRe: SQL To XML Pin
wadhva_maninder30-Oct-09 20:03
wadhva_maninder30-Oct-09 20:03 
GeneralRe: SQL To XML Pin
Vimalsoft(Pty) Ltd1-Nov-09 20:06
professionalVimalsoft(Pty) Ltd1-Nov-09 20:06 

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.