Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to work with Method : Find in richTextBox Pin
Laji5926-Sep-08 21:17
Laji5926-Sep-08 21:17 
GeneralRe: How to work with Method : Find in richTextBox Pin
Pedram Behroozi26-Sep-08 21:32
Pedram Behroozi26-Sep-08 21:32 
Questionhow we implement Slide-In Menu Bar in windows application using c#? Pin
g_amol26-Sep-08 19:22
g_amol26-Sep-08 19:22 
AnswerRe: how we implement Slide-In Menu Bar in windows application using c#? Pin
Pedram Behroozi26-Sep-08 19:47
Pedram Behroozi26-Sep-08 19:47 
GeneralRe: how we implement Slide-In Menu Bar in windows application using c#? Pin
g_amol26-Sep-08 19:55
g_amol26-Sep-08 19:55 
GeneralRe: how we implement Slide-In Menu Bar in windows application using c#? Pin
Pedram Behroozi26-Sep-08 20:43
Pedram Behroozi26-Sep-08 20:43 
AnswerRe: how we implement Slide-In Menu Bar in windows application using c#? Pin
Noble KC14-Nov-14 17:32
professionalNoble KC14-Nov-14 17:32 
Questionthere is no server Pin
reza assar26-Sep-08 13:22
reza assar26-Sep-08 13:22 
hi i want to backup from my database i used following code but it do not work properly
and it rises an exception
(my database name is 'Alarms' )



Backup backup = new Backup();
backup.Action = BackupActionType.Database;
backup.BackupSetName = "Archive_NeaxExpander";
backup.Database = "Alarms";
backup.PercentCompleteNotification = 10;

BackupDeviceItem device = new BackupDeviceItem(path, DeviceType.File);
ServerConnection connection = new ServerConnection(new SqlConnection(ConnectionString));
Server server = new Server(connection);
Database DB = server.Databases["Alarms"];

backup.Initialize = true;
backup.Checksum = true;
backup.ContinueAfterError = true;
backup.Devices.Add(device);
backup.Incremental = false;
backup.FormatMedia = false;
backup.SqlBackup(server);

i recive following exception

Microsoft.SqlServer.Management.Smo.FailedOperationException was unhandled by user code HelpLink="http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476"
Message="Backup failed for Server 'MRTSOFT-F5CFDAC'. "
Source="Microsoft.SqlServer.Smo"
Operation="Backup"

i used my current connectionstring as an addmin
to add , insert , select ,... and it works properly
and i sore that i have backup premission with this connectionstring

i used the following code to resive servers list

DataTable dtServers = SmoApplication.EnumAvailableSqlServers(false);
//or
DataTable dtServers = SmoApplication.EnumAvailableSqlServers(true);

but it`s dtServers.rows.count is zero and perhaps it means no server is available
so what can i do
i really confused by SQL
Jokethere is no spoon Pin
Nicholas Butler27-Sep-08 0:00
sitebuilderNicholas Butler27-Sep-08 0:00 
Questionimplementing wildcard match method Pin
AndrusM26-Sep-08 12:15
AndrusM26-Sep-08 12:15 
AnswerRe: implementing wildcard match method Pin
Anthony Mushrow26-Sep-08 12:29
professionalAnthony Mushrow26-Sep-08 12:29 
AnswerRe: implementing wildcard match method Pin
Paul Conrad27-Sep-08 5:05
professionalPaul Conrad27-Sep-08 5:05 
GeneralRe: implementing wildcard match method Pin
AndrusM28-Sep-08 22:44
AndrusM28-Sep-08 22:44 
QuestionSystem.Security.Cryptography for encrypting binary files (not plain text) Pin
Cyrilix26-Sep-08 9:01
Cyrilix26-Sep-08 9:01 
AnswerRe: System.Security.Cryptography for encrypting binary files (not plain text) Pin
Ennis Ray Lynch, Jr.26-Sep-08 10:06
Ennis Ray Lynch, Jr.26-Sep-08 10:06 
GeneralRe: System.Security.Cryptography for encrypting binary files (not plain text) Pin
Cyrilix26-Sep-08 10:42
Cyrilix26-Sep-08 10:42 
GeneralRe: System.Security.Cryptography for encrypting binary files (not plain text) Pin
Cyrilix26-Sep-08 12:44
Cyrilix26-Sep-08 12:44 
GeneralRe: System.Security.Cryptography for encrypting binary files (not plain text) Pin
Guffa26-Sep-08 15:46
Guffa26-Sep-08 15:46 
GeneralRe: System.Security.Cryptography for encrypting binary files (not plain text) Pin
ajtunbridge26-Sep-08 15:52
ajtunbridge26-Sep-08 15:52 
QuestionCodeDom and partial method Pin
Member 346950026-Sep-08 7:56
Member 346950026-Sep-08 7:56 
AnswerRe: CodeDom and partial method Pin
Ennis Ray Lynch, Jr.26-Sep-08 8:01
Ennis Ray Lynch, Jr.26-Sep-08 8:01 
AnswerRe: CodeDom and partial method Pin
Pete O'Hanlon27-Sep-08 9:26
mvePete O'Hanlon27-Sep-08 9:26 
AnswerRe: CodeDom and partial method Pin
jatin.sabarmati23-Nov-08 16:47
jatin.sabarmati23-Nov-08 16:47 
QuestionC# vs VB6.0 Pin
Pedram Behroozi26-Sep-08 6:46
Pedram Behroozi26-Sep-08 6:46 
AnswerRe: C# vs VB6.0 Pin
Fernando A. Gomez F.26-Sep-08 7:03
Fernando A. Gomez F.26-Sep-08 7:03 

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.