Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: convert an hexadecimal value to utf-8 encoding Pin
Luc Pattyn2-Jan-08 5:33
sitebuilderLuc Pattyn2-Jan-08 5:33 
GeneralRe: convert an hexadecimal value to utf-8 encoding Pin
Jim Taylor2-Jan-08 5:41
Jim Taylor2-Jan-08 5:41 
GeneralRe: convert an hexadecimal value to utf-8 encoding Pin
fady_sayegh2-Jan-08 5:53
fady_sayegh2-Jan-08 5:53 
GeneralRe: convert an hexadecimal value to utf-8 encoding Pin
ellllllllie2-Jan-08 6:08
ellllllllie2-Jan-08 6:08 
GeneralRe: convert an hexadecimal value to utf-8 encoding Pin
ellllllllie2-Jan-08 6:18
ellllllllie2-Jan-08 6:18 
GeneralRe: convert an hexadecimal value to utf-8 encoding Pin
Luc Pattyn2-Jan-08 9:48
sitebuilderLuc Pattyn2-Jan-08 9:48 
GeneralRe: convert an hexadecimal value to utf-8 encoding Pin
ellllllllie3-Jan-08 5:12
ellllllllie3-Jan-08 5:12 
Generalviewstate Pin
eyeseetee2-Jan-08 4:55
eyeseetee2-Jan-08 4:55 
GeneralRe: viewstate Pin
Not Active2-Jan-08 5:11
mentorNot Active2-Jan-08 5:11 
GeneralRe: viewstate Pin
eyeseetee2-Jan-08 5:15
eyeseetee2-Jan-08 5:15 
GeneralRe: viewstate Pin
DavidNohejl2-Jan-08 5:24
DavidNohejl2-Jan-08 5:24 
General[Message Deleted] Pin
R_L_H2-Jan-08 4:51
R_L_H2-Jan-08 4:51 
GeneralRe: What is the Quickest/Easiest Way to check for a Domain Controller? Pin
_rush_2-Jan-08 7:29
_rush_2-Jan-08 7:29 
Generalchange datacolumn position Pin
mpavas2-Jan-08 2:48
mpavas2-Jan-08 2:48 
GeneralRe: change datacolumn position Pin
Not Active2-Jan-08 3:16
mentorNot Active2-Jan-08 3:16 
GeneralCommon Event for all Editable controls (ASP.NET) Pin
Member 18376612-Jan-08 1:48
Member 18376612-Jan-08 1:48 
GeneralRe: Common Event for all Editable controls (ASP.NET) Pin
Not Active2-Jan-08 3:04
mentorNot Active2-Jan-08 3:04 
GeneralRe: Common Event for all Editable controls (ASP.NET) Pin
Pete O'Hanlon2-Jan-08 3:05
mvePete O'Hanlon2-Jan-08 3:05 
GeneralRe: Common Event for all Editable controls (ASP.NET) Pin
Abhijit Jana2-Jan-08 4:43
professionalAbhijit Jana2-Jan-08 4:43 
GeneralWrap Multi row value into one string [modified] Pin
haishan12-Jan-08 1:45
haishan12-Jan-08 1:45 
GeneralRe: Wrap Multi row value into one string Pin
DotNetXenon2-Jan-08 4:22
DotNetXenon2-Jan-08 4:22 
GeneralRe: Wrap Multi row value into one string Pin
haishan12-Jan-08 5:23
haishan12-Jan-08 5:23 
GeneralWho to create BackUp DataBase Sql Server From C#.Net Pin
Thaer Hamael2-Jan-08 1:45
Thaer Hamael2-Jan-08 1:45 
GeneralRe: Who to create BackUp DataBase Sql Server From C#.Net Pin
Jimmanuel2-Jan-08 2:03
Jimmanuel2-Jan-08 2:03 
GeneralRe: Who to create BackUp DataBase Sql Server From C#.Net Pin
Abhijit Jana2-Jan-08 2:08
professionalAbhijit Jana2-Jan-08 2:08 
Hi Thaer,
Try to use this.

using Microsoft.SqlServer.Management.Smo;

private static Server srvSql;
<code>
     // Create a new backup operation
     Backup bkpDatabase = new Backup();
    // Set the backup type to a database backup
    bkpDatabase.Action = BackupActionType.Database;
   // Set the database that we want to perform a backup on
      bkpDatabase.Database = "Your Selected Database"
    // Set the backup device to a file
   BackupDeviceItem bkpDevice = new BackupDeviceItem(BackupFileName.bak, DeviceType.File);
     // Add the backup device to the backup
             bkpDatabase.Devices.Add(bkpDevice);
     // Perform the backup
       bkpDatabase.SqlBackup(srvSql);
</code>



Let me know if you have any problem !!!

Best Regards
-----------------
Abhijit Jana
View My CodeProject Articles

"Success is Journey it's not a destination"

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.