Click here to Skip to main content
15,910,358 members
Home / Discussions / C#
   

C#

 
QuestionGet Domain Names on specific IP Address Pin
Davids Maguire9-Oct-07 10:00
Davids Maguire9-Oct-07 10:00 
AnswerRe: Get Domain Names on specific IP Address Pin
Peter Vertes9-Oct-07 10:02
Peter Vertes9-Oct-07 10:02 
AnswerRe: Get Domain Names on specific IP Address Pin
mr_lasseter9-Oct-07 15:36
mr_lasseter9-Oct-07 15:36 
QuestionHow to access this variabel? Pin
Joplinazz9-Oct-07 9:48
Joplinazz9-Oct-07 9:48 
AnswerRe: How to access this variabel? Pin
Anthony Mushrow9-Oct-07 9:52
professionalAnthony Mushrow9-Oct-07 9:52 
AnswerRe: How to access this variabel? Pin
Scott Dorman9-Oct-07 9:59
professionalScott Dorman9-Oct-07 9:59 
QuestionInstallation System Pin
Ken Mazaika9-Oct-07 9:30
Ken Mazaika9-Oct-07 9:30 
AnswerRe: Installation System Pin
il_masacratore9-Oct-07 21:36
il_masacratore9-Oct-07 21:36 
Question...(object sender, System.EventArgs e) Pin
Imran Adam9-Oct-07 8:43
Imran Adam9-Oct-07 8:43 
AnswerRe: ...(object sender, System.EventArgs e) Pin
Not Active9-Oct-07 8:59
mentorNot Active9-Oct-07 8:59 
GeneralRe: ...(object sender, System.EventArgs e) Pin
Imran Adam9-Oct-07 9:04
Imran Adam9-Oct-07 9:04 
AnswerRe: ...(object sender, System.EventArgs e) Pin
Scott Dorman9-Oct-07 9:49
professionalScott Dorman9-Oct-07 9:49 
GeneralRe: ...(object sender, System.EventArgs e) Pin
Imran Adam9-Oct-07 10:17
Imran Adam9-Oct-07 10:17 
GeneralRe: ...(object sender, System.EventArgs e) Pin
Scott Dorman9-Oct-07 10:27
professionalScott Dorman9-Oct-07 10:27 
QuestionDataGridView HeaderCell Painting Pin
cris34569-Oct-07 7:30
cris34569-Oct-07 7:30 
Questionsocket server disconnect Pin
gizmokaka9-Oct-07 7:25
gizmokaka9-Oct-07 7:25 
AnswerRe: socket server disconnect Pin
led mike9-Oct-07 7:54
led mike9-Oct-07 7:54 
GeneralRe: socket server disconnect Pin
gizmokaka9-Oct-07 8:09
gizmokaka9-Oct-07 8:09 
GeneralRe: socket server disconnect Pin
led mike9-Oct-07 8:29
led mike9-Oct-07 8:29 
Questionlabel text distorted in windows form Pin
sudhirkamath9-Oct-07 6:28
sudhirkamath9-Oct-07 6:28 
AnswerRe: label text distorted in windows form Pin
Juraj Borza9-Oct-07 9:44
Juraj Borza9-Oct-07 9:44 
GeneralRe: label text distorted in windows form Pin
Peter Vertes9-Oct-07 10:06
Peter Vertes9-Oct-07 10:06 
QuestionDatabase Backups Multi-Threading Pin
jikubhai9-Oct-07 5:37
jikubhai9-Oct-07 5:37 
hello techs,


I have a small project which enables database backups.
I have to to do backup's for multiple database @ a time.
For that i need to use Threading concepts.

the below code is for database backup :
-----------------------------------------------------------------------------------------------------
public void backUpDatabase(string DBname, string setBakUpPath)
{
SqlCommand sCom = new SqlCommand("BACKUP DATABASE " + DBname + " TO DISK = '" + setBakUpPath + "' WITH NOFORMAT, NOINIT, NAME = 'Full Database1 Backup', SKIP, NOREWIND, NOUNLOAD,STATS = 10", sCon);
sCom.CommandType = CommandType.Text;
try
{
sCom.ExecuteNonQuery();
MessageBox.Show("Database " + DBname + " : BackUp Done!", DBname + " BackUp", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (System.Exception ex)
{
MessageBox.Show(ex.ToString(), "Backup ", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
sCom.Dispose();
}
-----------------------------------------------------------------------------------------------------

all the databases will be loaded to a list box and i will select a database and clicks on button "Backup Database" and it will starts backup.... I need to do the backup in a thread. Now on the datagrid ... it will show the "db name", "Status : backup going on/backup done" and finally % of percentage of backup in the third colum of grid (u can avoid if this a bit time consuming... )

Please help me to solve it, if any clarifications needed... please ask ... thanks ...



A123-B321

AnswerRe: Database Backups Multi-Threading Pin
led mike9-Oct-07 6:00
led mike9-Oct-07 6:00 
GeneralRe: Database Backups Multi-Threading Pin
jikubhai9-Oct-07 19:15
jikubhai9-Oct-07 19:15 

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.