Click here to Skip to main content
15,916,835 members
Home / Discussions / C#
   

C#

 
AnswerRe: problem in input Pin
nelsonpaixao28-Sep-08 13:06
nelsonpaixao28-Sep-08 13:06 
QuestionHow do I write a c# minimax code to show resulting values from this info of the start of a game tree program ?? Pin
Angelinna26-Sep-08 22:10
Angelinna26-Sep-08 22:10 
AnswerRe: How do I write a c# minimax code to show resulting values from this info of the start of a game tree program ?? Pin
Pedram Behroozi26-Sep-08 22:51
Pedram Behroozi26-Sep-08 22:51 
GeneralRe: How do I write a c# minimax code to show resulting values from this info of the start of a game tree program ?? Pin
Angelinna27-Sep-08 1:30
Angelinna27-Sep-08 1:30 
AnswerRe: How do I write a c# minimax code to show resulting values from this info of the start of a game tree program ?? Pin
wy.net27-Sep-08 17:46
wy.net27-Sep-08 17:46 
Questionhow to access c# array in VBA Pin
newbieNeeraj26-Sep-08 20:02
newbieNeeraj26-Sep-08 20:02 
AnswerRe: how to access c# array in VBA Pin
Pedram Behroozi26-Sep-08 20:58
Pedram Behroozi26-Sep-08 20:58 
GeneralRe: how to access c# array in VBA Pin
newbieNeeraj26-Sep-08 21:17
newbieNeeraj26-Sep-08 21:17 
GeneralRe: how to access c# array in VBA [modified] Pin
Pedram Behroozi26-Sep-08 21:43
Pedram Behroozi26-Sep-08 21:43 
GeneralRe: how to access c# array in VBA Pin
newbieNeeraj28-Sep-08 14:31
newbieNeeraj28-Sep-08 14:31 
GeneralRe: how to access c# array in VBA Pin
Pedram Behroozi1-Oct-08 3:08
Pedram Behroozi1-Oct-08 3:08 
QuestionHow to work with Method : Find in richTextBox Pin
Laji5926-Sep-08 19:49
Laji5926-Sep-08 19:49 
AnswerRe: How to work with Method : Find in richTextBox Pin
Pedram Behroozi26-Sep-08 21:09
Pedram Behroozi26-Sep-08 21:09 
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 

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.