Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: Remote desktop server or VNC server in my app Pin
Sunil G 321-Dec-09 6:39
Sunil G 321-Dec-09 6:39 
GeneralRe: Remote desktop server or VNC server in my app Pin
Pete O'Hanlon21-Dec-09 7:26
mvePete O'Hanlon21-Dec-09 7:26 
QuestionUsing "openas" verb in Windows 7 does not work? Pin
pedersen-roxen20-Dec-09 20:46
pedersen-roxen20-Dec-09 20:46 
QuestionRestore .bak file through C# Coding in sql server Pin
NarendraSinghJTV20-Dec-09 20:16
NarendraSinghJTV20-Dec-09 20:16 
AnswerRe: Restore .bak file through C# Coding in sql server Pin
Ravi Bhavnani20-Dec-09 20:42
professionalRavi Bhavnani20-Dec-09 20:42 
QuestionRe: Restore .bak file through C# Coding in sql server Pin
Md. Marufuzzaman21-Dec-09 2:50
professionalMd. Marufuzzaman21-Dec-09 2:50 
AnswerRe: Restore .bak file through C# Coding in sql server Pin
NarendraSinghJTV21-Dec-09 16:43
NarendraSinghJTV21-Dec-09 16:43 
GeneralRe: Restore .bak file through C# Coding in sql server Pin
Md. Marufuzzaman21-Dec-09 17:26
professionalMd. Marufuzzaman21-Dec-09 17:26 
The following stored procedure will restore the database. This is helpful when you need to restore the database from other applications:


CREATE PROCEDURE [dbo].[sp_db_restore]
@DBName varchar(60),
@BackName varchar(120),
@DataName varchar(60),
@DataFileName varchar(120),
@LogName varchar(60),
@LogFileName varchar(120)
   AS
RESTORE DATABASE @DBName FROM
   DISK = @BackName WITH MOVE @DataName TO
   @DataFileName ,
   MOVE @LogName TO @LogFileName,
REPLACE
GO

Parameters
   DBName - Database Name to be restored
   BackName - Path & Name of the BackupFile
   DataName - MDF File name
   DataFileName - MDF File Path
   LogName - LDF File Name
   LogFileName - LDF File Path

Replace: Will replace the Database if it exists.

Thanks
Md. Marufuzzaman


Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.

I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.

GeneralRe: Restore .bak file through C# Coding in sql server Pin
NarendraSinghJTV21-Dec-09 20:04
NarendraSinghJTV21-Dec-09 20:04 
QuestionHow to Access the registered users to login a page [modified] Pin
Shyloo20-Dec-09 19:56
Shyloo20-Dec-09 19:56 
AnswerRe: How to Access the registered users to login a page Pin
Ashfield21-Dec-09 1:19
Ashfield21-Dec-09 1:19 
QuestionHow commands "AT Command" SIM card will be charged. Pin
Ir-win ChakadCo20-Dec-09 19:55
Ir-win ChakadCo20-Dec-09 19:55 
QuestionActive Directory code Pin
Dharmarajan20-Dec-09 19:27
Dharmarajan20-Dec-09 19:27 
Questioncan not open new form problem? Pin
miss YY20-Dec-09 19:21
miss YY20-Dec-09 19:21 
AnswerRe: can not open new form problem? Pin
Saksida Bojan20-Dec-09 19:44
Saksida Bojan20-Dec-09 19:44 
GeneralRe: can not open new form problem? Pin
miss YY20-Dec-09 20:33
miss YY20-Dec-09 20:33 
GeneralRe: can not open new form problem? Pin
Ravi Bhavnani20-Dec-09 20:44
professionalRavi Bhavnani20-Dec-09 20:44 
Questionprinting the slip Pin
Thaer Hamael20-Dec-09 19:19
Thaer Hamael20-Dec-09 19:19 
AnswerRe: printing the slip Pin
Ravi Bhavnani20-Dec-09 20:47
professionalRavi Bhavnani20-Dec-09 20:47 
Questionreport viewer problem Pin
ali- kanju220-Dec-09 18:21
ali- kanju220-Dec-09 18:21 
AnswerRe: report viewer problem Pin
NarendraSinghJTV20-Dec-09 20:18
NarendraSinghJTV20-Dec-09 20:18 
QuestionAdvantages in 32-bit Windows 7 -vs- 64-bit Windows 7 for Azure development Pin
stringtheory_x20-Dec-09 16:48
stringtheory_x20-Dec-09 16:48 
AnswerRe: Advantages in 32-bit Windows 7 -vs- 64-bit Windows 7 for Azure development Pin
Saksida Bojan20-Dec-09 18:30
Saksida Bojan20-Dec-09 18:30 
QuestionClearing of database. Pin
codenoobie20-Dec-09 15:34
codenoobie20-Dec-09 15:34 
AnswerRe: Clearing of database. Pin
Rod Kemp20-Dec-09 16:13
Rod Kemp20-Dec-09 16:13 

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.