Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: Visual Studio 2010 crashes when designer finishes loading Pin
Philippe Mori28-Aug-10 2:39
Philippe Mori28-Aug-10 2:39 
GeneralRe: Visual Studio 2010 crashes when designer finishes loading Pin
WebMaster28-Aug-10 4:03
WebMaster28-Aug-10 4:03 
GeneralRe: Visual Studio 2010 crashes when designer finishes loading Pin
WebMaster28-Aug-10 4:40
WebMaster28-Aug-10 4:40 
Questionrun a method on other application Pin
solomon8528-Aug-10 0:47
solomon8528-Aug-10 0:47 
AnswerRe: run a method on other application Pin
Eddy Vluggen28-Aug-10 3:16
professionalEddy Vluggen28-Aug-10 3:16 
AnswerRe: run a method on other application Pin
dan!sh 28-Aug-10 3:37
professional dan!sh 28-Aug-10 3:37 
AnswerRe: run a method on other application Pin
Abhinav S28-Aug-10 5:26
Abhinav S28-Aug-10 5:26 
QuestionBacking up database file using SMO error Pin
gamer112727-Aug-10 16:52
gamer112727-Aug-10 16:52 
Hi. I'm having problem with the way I Backup my database. I'm trying to use the SMO now because the first time I tried to backup my database with File.Copy() is I always have errors with the .dbo file that I'm backing up. I always have the error that the file is currently used by another process even if I already closed the connection. Now I'm still having problem with SMO. I encountered a run-time error saying: "the backup failed for the server ROJAI-PC". I don't know how to resolve the problem since I'm new to SMO. Can anyone help me?

Here is the code I used:
private void createBackupToolStripMenuItem_Click(object sender, EventArgs e)
       {
           Server srver = new Server();
           Backup bckup = new Backup();

           bckup.Devices.AddDevice(@"C:\Documents and Settings\Jairo Hibaler\Desktop\Backup\MP\HotelReservationSystem\HotelReservationSystem\bin\Debug\hotelReservationBackup.bak", DeviceType.File);
           bckup.Database = "HotelReservationDB";
           bckup.Action = BackupActionType.Database;
           bckup.Initialize = true;
           bckup.PercentCompleteNotification = 10;
           bckup.PercentComplete += new PercentCompleteEventHandler(bckup_PercentComplete);
           bckup.SqlBackup(srver);
       }

       private void bckup_PercentComplete(object sender, PercentCompleteEventArgs e)
       {
           MessageBox.Show(e.Percent.ToString() + "% backed up");
       }

Questionbuilding a win form application problem Pin
mrkeivan27-Aug-10 11:37
mrkeivan27-Aug-10 11:37 
AnswerRe: building a win form application problem Pin
Not Active27-Aug-10 12:01
mentorNot Active27-Aug-10 12:01 
QuestionWin7 No PingCompletedCallback on timeout? Pin
Gavin Coates27-Aug-10 7:44
Gavin Coates27-Aug-10 7:44 
QuestionCustom file type Pin
Etienne_12327-Aug-10 5:29
Etienne_12327-Aug-10 5:29 
AnswerRe: Custom file type Pin
OriginalGriff27-Aug-10 5:46
mveOriginalGriff27-Aug-10 5:46 
GeneralRe: Custom file type Pin
Etienne_12327-Aug-10 6:14
Etienne_12327-Aug-10 6:14 
AnswerRe: Custom file type Pin
Chris Trelawny-Ross27-Aug-10 5:47
Chris Trelawny-Ross27-Aug-10 5:47 
AnswerRe: Custom file type Pin
OriginalGriff27-Aug-10 5:51
mveOriginalGriff27-Aug-10 5:51 
GeneralRe: Custom file type Pin
Etienne_12327-Aug-10 6:18
Etienne_12327-Aug-10 6:18 
GeneralRe: Custom file type Pin
OriginalGriff27-Aug-10 8:20
mveOriginalGriff27-Aug-10 8:20 
GeneralRe: Custom file type Pin
Etienne_12327-Aug-10 10:52
Etienne_12327-Aug-10 10:52 
GeneralRe: Custom file type Pin
OriginalGriff27-Aug-10 20:24
mveOriginalGriff27-Aug-10 20:24 
AnswerRe: Custom file type Pin
Kubajzz27-Aug-10 5:52
Kubajzz27-Aug-10 5:52 
AnswerRe: Custom file type Pin
Luc Pattyn27-Aug-10 6:04
sitebuilderLuc Pattyn27-Aug-10 6:04 
GeneralRe: Custom file type Pin
Yusuf27-Aug-10 12:23
Yusuf27-Aug-10 12:23 
GeneralRe: Custom file type Pin
AspDotNetDev27-Aug-10 12:43
protectorAspDotNetDev27-Aug-10 12:43 
GeneralRe: Custom file type Pin
Yusuf27-Aug-10 18:50
Yusuf27-Aug-10 18:50 

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.