Click here to Skip to main content
15,562,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: find files Pin
michaelgr129-May-09 7:53
michaelgr129-May-09 7:53 
GeneralRe: find files Pin
WinSolution29-May-09 7:59
WinSolution29-May-09 7:59 
GeneralRe: find files Pin
michaelgr129-May-09 8:15
michaelgr129-May-09 8:15 
GeneralRe: find files Pin
michaelgr129-May-09 8:52
michaelgr129-May-09 8:52 
GeneralRe: find files Pin
WinSolution29-May-09 7:57
WinSolution29-May-09 7:57 
Questionsql server 2000 DataBase Backup Pin
Yathish hatter29-May-09 3:16
Yathish hatter29-May-09 3:16 
AnswerRe: sql server 2000 DataBase Backup Pin
Manas Bhardwaj29-May-09 3:25
professionalManas Bhardwaj29-May-09 3:25 
AnswerRe: sql server 2000 DataBase Backup Pin
Satish Pai29-May-09 3:36
Satish Pai29-May-09 3:36 
Hi
This Code might help you.
we have to create 2 textbox 1 of name - dbName
textbox 2 of name - txtLocation

private void button1_Click(object sender, EventArgs e)
{

SqlCommand cmm = new SqlCommand();
SqlConnection cn = new SqlConnection("server=.;database=" + dbName.Text + ";user=sa;password=tiger123");
cn.Open();
cmm.CommandText = "BACKUP DATABASE " + dbName.Text + " TO DISK = N'" + txtLocation.Text + "\\Intermidiate_backup_200905291809.bak' WITH NOFORMAT, NOINIT, NAME = N'Intermidiate_backup_20090529180939', SKIP, REWIND, NOUNLOAD, STATS = 10";
cmm.CommandType = CommandType.Text;
cmm.Connection = cn;
cmm.ExecuteNonQuery();

}

Thanks & regards
Satish Pai B
AnswerRe: sql server 2000 DataBase Backup Pin
I Believe In GOD29-May-09 3:50
I Believe In GOD29-May-09 3:50 
QuestionHow to know when a Message Box has been shown for a form? Pin
The NULL Developer29-May-09 2:52
professionalThe NULL Developer29-May-09 2:52 
QuestionRe: How to know when a Message Box has been shown for a form? Pin
Rajesh R Subramanian29-May-09 2:57
professionalRajesh R Subramanian29-May-09 2:57 
AnswerRe: How to know when a Message Box has been shown for a form? Pin
The NULL Developer29-May-09 3:12
professionalThe NULL Developer29-May-09 3:12 
GeneralRe: How to know when a Message Box has been shown for a form? Pin
Rajesh R Subramanian29-May-09 3:24
professionalRajesh R Subramanian29-May-09 3:24 
GeneralRe: How to know when a Message Box has been shown for a form? Pin
The NULL Developer29-May-09 3:37
professionalThe NULL Developer29-May-09 3:37 
GeneralRe: How to know when a Message Box has been shown for a form? Pin
DaveyM6929-May-09 3:34
professionalDaveyM6929-May-09 3:34 
GeneralRe: How to know when a Message Box has been shown for a form? Pin
The NULL Developer29-May-09 3:40
professionalThe NULL Developer29-May-09 3:40 
GeneralRe: How to know when a Message Box has been shown for a form? Pin
Dave Kreskowiak29-May-09 5:09
mveDave Kreskowiak29-May-09 5:09 
GeneralRe: How to know when a Message Box has been shown for a form? Pin
The NULL Developer2-Jun-09 2:42
professionalThe NULL Developer2-Jun-09 2:42 
GeneralRe: How to know when a Message Box has been shown for a form? Pin
Dave Kreskowiak2-Jun-09 2:47
mveDave Kreskowiak2-Jun-09 2:47 
AnswerRe: How to know when a Message Box has been shown for a form? Pin
Dave Kreskowiak29-May-09 3:00
mveDave Kreskowiak29-May-09 3:00 
QuestionC# Articles & Ruler Pin
Baeltazor29-May-09 2:34
Baeltazor29-May-09 2:34 
AnswerRe: C# Articles & Ruler Pin
Pete O'Hanlon29-May-09 2:47
mvaPete O'Hanlon29-May-09 2:47 
GeneralRe: C# Articles & Ruler Pin
Luc Pattyn29-May-09 2:57
sitebuilderLuc Pattyn29-May-09 2:57 
GeneralRe: C# Articles & Ruler Pin
Baeltazor29-May-09 3:13
Baeltazor29-May-09 3:13 
AnswerRe: C# Articles & Ruler Pin
Satish Pai29-May-09 3:02
Satish Pai29-May-09 3:02 

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.