Click here to Skip to main content
13,000,982 members (59,420 online)
   

C#

 
Questioncontrol Windows Media player :) Pin
Member 997255825-Feb-14 5:01
memberMember 997255825-Feb-14 5:01 
AnswerRe: control Windows Media player :) Pin
BillWoodruff25-Feb-14 5:15
memberBillWoodruff25-Feb-14 5:15 
Questioncontrol Windows Media player Pin
Member 997255825-Feb-14 4:57
memberMember 997255825-Feb-14 4:57 
Questionhow to confirm Security risk alert in C# web browser Pin
Abhinaw Kumar Singh25-Feb-14 2:16
memberAbhinaw Kumar Singh25-Feb-14 2:16 
AnswerRe: how to confirm Security risk alert in C# web browser Pin
Pete O'Hanlon25-Feb-14 3:11
protectorPete O'Hanlon25-Feb-14 3:11 
GeneralRe: how to confirm Security risk alert in C# web browser Pin
Abhinaw Kumar Singh25-Feb-14 6:18
memberAbhinaw Kumar Singh25-Feb-14 6:18 
GeneralRe: how to confirm Security risk alert in C# web browser Pin
Richard Deeming25-Feb-14 7:16
professionalRichard Deeming25-Feb-14 7:16 
GeneralRe: how to confirm Security risk alert in C# web browser Pin
Bernhard Hiller25-Feb-14 21:39
professionalBernhard Hiller25-Feb-14 21:39 
QuestionCreating DTO using TDD approach Pin
ramsai197325-Feb-14 1:22
memberramsai197325-Feb-14 1:22 
Questionhow to restore a sql database programmatically in c#? Pin
rincy sivan24-Feb-14 23:35
memberrincy sivan24-Feb-14 23:35 
AnswerRe: how to restore a sql database programmatically in c#? Pin
Nicholas Marty24-Feb-14 23:54
professionalNicholas Marty24-Feb-14 23:54 
AnswerRe: how to restore a sql database programmatically in c#? Pin
OriginalGriff24-Feb-14 23:57
protectorOriginalGriff24-Feb-14 23:57 
AnswerRe: how to restore a sql database programmatically in c#? Pin
Raj Mouli26-Feb-14 19:44
memberRaj Mouli26-Feb-14 19:44 
AnswerRe: how to restore a sql database programmatically in c#? Pin
Raj Mouli26-Feb-14 19:45
memberRaj Mouli26-Feb-14 19:45 
The following namespaces can be used to access SQL Server 2005 programmatically:

Microsoft.SqlServer.management
Microsoft.SqlServer.Management.NotificationServices
Microsoft.SqlServer.Management.Smo
Microsoft.SqlServer.Management.Smo.Agent
Microsoft.SqlServer.Management.Smo.Broker
Microsoft.SqlServer.Management.Smo.Mail
Microsoft.SqlServer.Management.Smo.RegisteredServers
Microsoft.SqlServer.Management.Smo.Wmi
Microsoft.SqlServer.Management.Trace
Backup bkpDBFull = new Backup();
/* Specify whether you want to back up database or files or log */
bkpDBFull.Action = BackupActionType.Database;
/* Specify the name of the database to back up */
bkpDBFull.Database = myDatabase.Name;
/* You can take backup on several media type (disk or tape), here I am
 * using File type and storing backup on the file system */
bkpDBFull.Devices.AddDevice(@"D:\AdventureWorksFull.bak", DeviceType.File);
bkpDBFull.BackupSetName = "Adventureworks database Backup";
bkpDBFull.BackupSetDescription = "Adventureworks database - Full Backup";
/* You can specify the expiration date for your backup data
 * after that date backup data would not be relevant */
bkpDBFull.ExpirationDate = DateTime.Today.AddDays(10);
 
/* You can specify Initialize = false (default) to create a new
 * backup set which will be appended as last backup set on the media. You
 * can specify Initialize = true to make the backup as first set on the
 * medium and to overwrite any other existing backup sets if the all the
 * backup sets have expired and specified backup set name matches with
 * the name on the medium */
bkpDBFull.Initialize = false;
 
/* Wiring up events for progress monitoring */
bkpDBFull.PercentComplete += CompletionStatusInPercent;
bkpDBFull.Complete += Backup_Completed;
 
/* SqlBackup method starts to take back up
 * You can also use SqlBackupAsync method to perform the backup
 * operation asynchronously */
bkpDBFull.SqlBackup(myServer);


for more info - http://www.mssqltips.com/sqlservertip/1849/backup-and-restore-sql-server-databases-programmatically-with-smo/[^]
Mouli

QuestionSerialComm Port to send and receive sms Pin
yomag4chi24-Feb-14 21:51
memberyomag4chi24-Feb-14 21:51 
AnswerRe: SerialComm Port to send and receive sms Pin
Richard MacCutchan24-Feb-14 22:04
protectorRichard MacCutchan24-Feb-14 22:04 
AnswerRe: SerialComm Port to send and receive sms Pin
OriginalGriff24-Feb-14 22:29
protectorOriginalGriff24-Feb-14 22:29 
Questionhow to prevent form open twice Pin
Aman Susanto24-Feb-14 2:50
memberAman Susanto24-Feb-14 2:50 
AnswerRe: how to prevent form open twice Pin
johannesnestler24-Feb-14 3:15
memberjohannesnestler24-Feb-14 3:15 
GeneralRe: how to prevent form open twice Pin
Eddy Vluggen24-Feb-14 6:57
professionalEddy Vluggen24-Feb-14 6:57 
GeneralRe: how to prevent form open twice Pin
johannesnestler24-Feb-14 8:12
memberjohannesnestler24-Feb-14 8:12 
AnswerRe: how to prevent form open twice Pin
BillWoodruff24-Feb-14 6:41
memberBillWoodruff24-Feb-14 6:41 
AnswerRe: how to prevent form open twice Pin
Richard Deeming24-Feb-14 9:00
professionalRichard Deeming24-Feb-14 9:00 
GeneralRe: how to prevent form open twice Pin
BillWoodruff24-Feb-14 13:21
memberBillWoodruff24-Feb-14 13:21 
SuggestionRe: how to prevent form open twice Pin
azhar9925-Feb-14 20:50
memberazhar9925-Feb-14 20:50 
QuestionA first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in Microsoft.Phone.Data.Internal.ni.dll Pin
Gene Lim23-Feb-14 22:40
memberGene Lim23-Feb-14 22:40 
AnswerRe: A first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in Microsoft.Phone.Data.Internal.ni.dll Pin
Naveen Kumar Krishnan24-Feb-14 1:18
memberNaveen Kumar Krishnan24-Feb-14 1:18 
GeneralRe: A first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in Microsoft.Phone.Data.Internal.ni.dll Pin
Gene Lim24-Feb-14 2:53
memberGene Lim24-Feb-14 2:53 
QuestionSQL SELECT Current User c# Pin
mcgurdan22-Feb-14 9:49
membermcgurdan22-Feb-14 9:49 
AnswerRe: SQL SELECT Current User c# Pin
Ravi Bhavnani22-Feb-14 11:13
professionalRavi Bhavnani22-Feb-14 11:13 
QuestionHow do I inherit ComboBox to implement my function Pin
Member 1041329221-Feb-14 21:50
professionalMember 1041329221-Feb-14 21:50 
AnswerRe: How do I inherit ComboBox to implement my function Pin
Richard MacCutchan21-Feb-14 23:10
protectorRichard MacCutchan21-Feb-14 23:10 
GeneralRe: How do I inherit ComboBox to implement my function Pin
BillWoodruff22-Feb-14 5:44
memberBillWoodruff22-Feb-14 5:44 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Dave Kreskowiak22-Feb-14 8:11
mvpDave Kreskowiak22-Feb-14 8:11 
GeneralRe: How do I inherit ComboBox to implement my function Pin
BillWoodruff22-Feb-14 8:30
memberBillWoodruff22-Feb-14 8:30 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Ravi Bhavnani22-Feb-14 11:15
professionalRavi Bhavnani22-Feb-14 11:15 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Dave Kreskowiak23-Feb-14 4:47
mvpDave Kreskowiak23-Feb-14 4:47 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Ravi Bhavnani23-Feb-14 6:34
professionalRavi Bhavnani23-Feb-14 6:34 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Richard MacCutchan23-Feb-14 21:59
protectorRichard MacCutchan23-Feb-14 21:59 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Member 1041329223-Feb-14 13:53
professionalMember 1041329223-Feb-14 13:53 
AnswerRe: How do I inherit ComboBox to implement my function Pin
BillWoodruff22-Feb-14 4:48
memberBillWoodruff22-Feb-14 4:48 
GeneralRe: How do I inherit ComboBox to implement my function Pin
Member 1041329223-Feb-14 13:50
professionalMember 1041329223-Feb-14 13:50 
GeneralRe: How do I inherit ComboBox to implement my function Pin
BillWoodruff23-Feb-14 14:06
memberBillWoodruff23-Feb-14 14:06 
Questionslow motion problem in picture box... Pin
Edalat_201121-Feb-14 21:36
memberEdalat_201121-Feb-14 21:36 
AnswerRe: slow motion problem in picture box... Pin
BillWoodruff22-Feb-14 9:11
memberBillWoodruff22-Feb-14 9:11 
AnswerRe: slow motion problem in picture box... Pin
TnTinMn23-Feb-14 11:10
memberTnTinMn23-Feb-14 11:10 
QuestionAcroRd32.exe command line options and alternatives Pin
kranthi198821-Feb-14 10:58
memberkranthi198821-Feb-14 10:58 
AnswerRe: AcroRd32.exe command line options and alternatives Pin
Garth J Lancaster21-Feb-14 11:14
memberGarth J Lancaster21-Feb-14 11:14 
Questionhow to use a key in md5 algorithm in c# Pin
rincy sivan21-Feb-14 0:22
memberrincy sivan21-Feb-14 0:22 
AnswerRe: how to use a key in md5 algorithm in c# Pin
Eddy Vluggen21-Feb-14 0:27
professionalEddy Vluggen21-Feb-14 0:27 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 25 Jun 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid