Click here to Skip to main content
15,890,897 members
Home / Discussions / Database
   

Database

 
QuestionSQL Server Connect Test Pin
mobius11100122-Dec-09 4:43
mobius11100122-Dec-09 4:43 
AnswerRe: SQL Server Connect Test Pin
David Mujica22-Dec-09 5:27
David Mujica22-Dec-09 5:27 
QuestionMerge Replication Problem Pin
Jay Royall21-Dec-09 23:05
Jay Royall21-Dec-09 23:05 
AnswerRe: Merge Replication Problem Pin
Jay Royall23-Dec-09 1:59
Jay Royall23-Dec-09 1:59 
QuestionQuery Pin
sarang_k21-Dec-09 22:04
sarang_k21-Dec-09 22:04 
AnswerRe: Query Pin
Blue_Boy21-Dec-09 22:33
Blue_Boy21-Dec-09 22:33 
AnswerRe: Query Pin
Niladri_Biswas22-Dec-09 16:32
Niladri_Biswas22-Dec-09 16:32 
Questionerror in restore Pin
NarendraSinghJTV21-Dec-09 20:19
NarendraSinghJTV21-Dec-09 20:19 
i m using this stored procedure

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

it gives the following error

"RESTORE cannot process database 'databasename' because it is in use by this session. It is recommended that the master database be used when performing this operation.
RESTORE DATABASE is terminating abnormally."

plz help with any solution


Regards
Narendra Singh
(Jindal Tech Ventures)

AnswerRe: error in restore Pin
Ashfield21-Dec-09 23:10
Ashfield21-Dec-09 23:10 
GeneralRe: error in restore Pin
NarendraSinghJTV21-Dec-09 23:49
NarendraSinghJTV21-Dec-09 23:49 
GeneralRe: error in restore Pin
Vimalsoft(Pty) Ltd22-Dec-09 2:24
professionalVimalsoft(Pty) Ltd22-Dec-09 2:24 
GeneralRe: error in restore Pin
NarendraSinghJTV22-Dec-09 18:02
NarendraSinghJTV22-Dec-09 18:02 
GeneralRe: error in restore Pin
Vimalsoft(Pty) Ltd22-Dec-09 18:52
professionalVimalsoft(Pty) Ltd22-Dec-09 18:52 
Questionget encrypted passwords from sql using encryption string Pin
220821-Dec-09 17:21
220821-Dec-09 17:21 
AnswerRe: get encrypted passwords from sql using encryption string Pin
Jörgen Andersson21-Dec-09 21:19
professionalJörgen Andersson21-Dec-09 21:19 
Questionstored procedure for restore .bak file Pin
NarendraSinghJTV21-Dec-09 17:11
NarendraSinghJTV21-Dec-09 17:11 
AnswerRe: stored procedure for restore .bak file Pin
Vimalsoft(Pty) Ltd22-Dec-09 2:26
professionalVimalsoft(Pty) Ltd22-Dec-09 2:26 
QuestionHelp building Trigger for updating summary table [modified] Pin
MAW3021-Dec-09 11:29
MAW3021-Dec-09 11:29 
AnswerRe: Help building Trigger for updating summary table Pin
Mycroft Holmes21-Dec-09 23:56
professionalMycroft Holmes21-Dec-09 23:56 
Questiontransaction error Pin
ademsandeepreddy20-Dec-09 19:53
ademsandeepreddy20-Dec-09 19:53 
AnswerRe: transaction error Pin
Member 450194023-Dec-09 7:31
Member 450194023-Dec-09 7:31 
QuestionNeed help with creating dynamic SQL statement Pin
James Shao20-Dec-09 17:54
James Shao20-Dec-09 17:54 
AnswerRe: Need help with creating dynamic SQL statement Pin
Mycroft Holmes21-Dec-09 11:00
professionalMycroft Holmes21-Dec-09 11:00 
QuestionNeed help with DATEDIFF function Pin
James Shao20-Dec-09 17:29
James Shao20-Dec-09 17:29 
AnswerRe: Need help with DATEDIFF function Pin
Ashfield21-Dec-09 0:27
Ashfield21-Dec-09 0:27 

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.