Click here to Skip to main content
15,888,315 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# visual studio error? Pin
emran8345-Feb-06 17:20
emran8345-Feb-06 17:20 
QuestionDefault parameter in Method Pin
emran8345-Feb-06 17:10
emran8345-Feb-06 17:10 
AnswerRe: Default parameter in Method Pin
S. Senthil Kumar5-Feb-06 18:13
S. Senthil Kumar5-Feb-06 18:13 
GeneralRe: Default parameter in Method Pin
emran8345-Feb-06 22:15
emran8345-Feb-06 22:15 
AnswerRe: Default parameter in Method Pin
ryancrawcour5-Feb-06 21:49
ryancrawcour5-Feb-06 21:49 
GeneralRe: Default parameter in Method Pin
emran8345-Feb-06 22:19
emran8345-Feb-06 22:19 
GeneralRe: Default parameter in Method Pin
ryancrawcour5-Feb-06 22:23
ryancrawcour5-Feb-06 22:23 
QuestionRestore DataBase Using SQLDMO Pin
chudapji5-Feb-06 16:55
chudapji5-Feb-06 16:55 
I am using SQLDMO.DLL for Backup & restore utility in C# application.

Following is the code :

SQLDMO._SQLServer srv = new SQLDMO.SQLServerClass();
srv.Connect("IBM0505d-040","sa","");
SQLDMO.Restore res = new SQLDMO.RestoreClass();
res.Devices = res.Files;
res.Files = this.txtRestorefrom.Text;
res.Database = "abc";
res.ReplaceDatabase = true;
res.SQLRestore(srv);

While running above code it gives following exception :


"[Microsoft][ODBC SQL Server Driver][SQL Server]Database in use. The system administrator must have exclusive use of the database to run the restore operation.\n[Microsoft][ODBC SQL Server Driver][SQL Server]Backup or restore operation terminating abnormally."

Can somebody suggest solution for this.

Thanks,

Jitendra C.



Jitendra C.
QuestionWindow Form frozen after calling method Show() Pin
bc11185-Feb-06 16:34
bc11185-Feb-06 16:34 
AnswerRe: Window Form frozen after calling method Show() Pin
Christian Graus5-Feb-06 16:42
protectorChristian Graus5-Feb-06 16:42 
AnswerRe: Window Form frozen after calling method Show() Pin
S. Senthil Kumar5-Feb-06 18:14
S. Senthil Kumar5-Feb-06 18:14 
GeneralRe: Window Form frozen after calling method Show() Pin
bc11185-Feb-06 18:45
bc11185-Feb-06 18:45 
GeneralRe: Window Form frozen after calling method Show() Pin
S. Senthil Kumar6-Feb-06 9:52
S. Senthil Kumar6-Feb-06 9:52 
QuestionLaunch and focus webpage from windows form Pin
jshultz5-Feb-06 12:15
jshultz5-Feb-06 12:15 
Question.xsd ordinal Pin
fmardani5-Feb-06 10:58
fmardani5-Feb-06 10:58 
QuestionMultiple font types in richtextbox? Pin
Xodiak5-Feb-06 9:58
Xodiak5-Feb-06 9:58 
AnswerRe: Multiple font types in richtextbox? Pin
leppie5-Feb-06 12:03
leppie5-Feb-06 12:03 
GeneralRe: Multiple font types in richtextbox? Pin
Xodiak5-Feb-06 12:49
Xodiak5-Feb-06 12:49 
GeneralRe: Font Embedding Pin
emran8345-Feb-06 17:15
emran8345-Feb-06 17:15 
GeneralRe: Font Embedding Pin
Dave Kreskowiak6-Feb-06 6:29
mveDave Kreskowiak6-Feb-06 6:29 
QuestionDrop Down menu on a website and tabs on a website Pin
naglbitur5-Feb-06 8:40
naglbitur5-Feb-06 8:40 
QuestionHTML interfaces Pin
Mridang Agarwalla5-Feb-06 6:22
Mridang Agarwalla5-Feb-06 6:22 
AnswerRe: HTML interfaces Pin
leppie5-Feb-06 8:14
leppie5-Feb-06 8:14 
Questionhow i can work with struct and union(union in struct .etc) Pin
gary.ruan5-Feb-06 0:49
gary.ruan5-Feb-06 0:49 
AnswerRe: how i can work with struct and union(union in struct .etc) Pin
Dave Kreskowiak5-Feb-06 5:24
mveDave Kreskowiak5-Feb-06 5:24 

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.