dbTalk Databases Forums  

Copy wizard gives error "there are 2 active connections to the dat

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Copy wizard gives error "there are 2 active connections to the dat in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bisigreat
 
Posts: n/a

Default Copy wizard gives error "there are 2 active connections to the dat - 11-25-2005 , 07:17 AM






I need to backup my CRM databases to another SQL server 2000 computer using
the copy wizard but i received this error message " there are 2 active
connections to the database" so the database was not copied to the second
server.

Some of the databases were also referred to as replicated database. how do i
copy them to the second server.

Thanks

Reply With Quote
  #2  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Copy wizard gives error "there are 2 active connections to the dat - 11-25-2005 , 07:46 AM






Not sure why the message but why don't you simply do a backup and restore?
The copy db process is so much more complicated and very inefficient.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote

Quote:
I need to backup my CRM databases to another SQL server 2000 computer using
the copy wizard but i received this error message " there are 2 active
connections to the database" so the database was not copied to the second
server.

Some of the databases were also referred to as replicated database. how do
i
copy them to the second server.

Thanks



Reply With Quote
  #3  
Old   
bisigreat
 
Posts: n/a

Default Re: Copy wizard gives error "there are 2 active connections to the - 11-25-2005 , 08:18 AM



Thanks Kelly, i tought copy will make the job faster instead of backing up
and then restore on another SQL server. Is there no tool in SQL server 2000
that i can use to transfer the databases while the 2 servers are running.

Thanks.

"Andrew J. Kelly" wrote:

Quote:
Not sure why the message but why don't you simply do a backup and restore?
The copy db process is so much more complicated and very inefficient.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:E1A209D1-88C8-46FF-A1E0-CEA9FC3E480C (AT) microsoft (DOT) com...
I need to backup my CRM databases to another SQL server 2000 computer using
the copy wizard but i received this error message " there are 2 active
connections to the database" so the database was not copied to the second
server.

Some of the databases were also referred to as replicated database. how do
i
copy them to the second server.

Thanks




Reply With Quote
  #4  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Copy wizard gives error "there are 2 active connections to the - 11-25-2005 , 10:44 AM



A native sql server backup is an online operation. There is no need to shut
down sql server while doing a SQL backup.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks Kelly, i tought copy will make the job faster instead of backing up
and then restore on another SQL server. Is there no tool in SQL server
2000
that i can use to transfer the databases while the 2 servers are running.

Thanks.

"Andrew J. Kelly" wrote:

Not sure why the message but why don't you simply do a backup and
restore?
The copy db process is so much more complicated and very inefficient.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:E1A209D1-88C8-46FF-A1E0-CEA9FC3E480C (AT) microsoft (DOT) com...
I need to backup my CRM databases to another SQL server 2000 computer
using
the copy wizard but i received this error message " there are 2 active
connections to the database" so the database was not copied to the
second
server.

Some of the databases were also referred to as replicated database. how
do
i
copy them to the second server.

Thanks






Reply With Quote
  #5  
Old   
bisigreat
 
Posts: n/a

Default Re: Copy wizard gives error "there are 2 active connections to the - 11-25-2005 , 11:14 AM



Thanks Kelly for the answer.

"Andrew J. Kelly" wrote:

Quote:
A native sql server backup is an online operation. There is no need to shut
down sql server while doing a SQL backup.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:6DFA65C5-05CC-4663-B0CD-273E7F30EA52 (AT) microsoft (DOT) com...
Thanks Kelly, i tought copy will make the job faster instead of backing up
and then restore on another SQL server. Is there no tool in SQL server
2000
that i can use to transfer the databases while the 2 servers are running.

Thanks.

"Andrew J. Kelly" wrote:

Not sure why the message but why don't you simply do a backup and
restore?
The copy db process is so much more complicated and very inefficient.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:E1A209D1-88C8-46FF-A1E0-CEA9FC3E480C (AT) microsoft (DOT) com...
I need to backup my CRM databases to another SQL server 2000 computer
using
the copy wizard but i received this error message " there are 2 active
connections to the database" so the database was not copied to the
second
server.

Some of the databases were also referred to as replicated database. how
do
i
copy them to the second server.

Thanks







Reply With Quote
  #6  
Old   
bisigreat
 
Posts: n/a

Default Re: Copy wizard gives error "there are 2 active connections to the - 11-29-2005 , 10:29 AM



Hello Kelly,

I have used the normal backup as you adviced. i transfered those backup
files to a folder on the second SQL 2000 server. I followed the steps below
on the second server. I

1. right click Database folder=>All Tasks=>Restore Database
2. From device and browse to the folder containing the copied backup files

I got this error message "Device Activation error.......Use WITH MOVE to
identify a valid location for the file"

"bisigreat" wrote:

Quote:
Thanks Kelly for the answer.

"Andrew J. Kelly" wrote:

A native sql server backup is an online operation. There is no need to shut
down sql server while doing a SQL backup.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:6DFA65C5-05CC-4663-B0CD-273E7F30EA52 (AT) microsoft (DOT) com...
Thanks Kelly, i tought copy will make the job faster instead of backing up
and then restore on another SQL server. Is there no tool in SQL server
2000
that i can use to transfer the databases while the 2 servers are running.

Thanks.

"Andrew J. Kelly" wrote:

Not sure why the message but why don't you simply do a backup and
restore?
The copy db process is so much more complicated and very inefficient.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:E1A209D1-88C8-46FF-A1E0-CEA9FC3E480C (AT) microsoft (DOT) com...
I need to backup my CRM databases to another SQL server 2000 computer
using
the copy wizard but i received this error message " there are 2 active
connections to the database" so the database was not copied to the
second
server.

Some of the databases were also referred to as replicated database. how
do
i
copy them to the second server.

Thanks







Reply With Quote
  #7  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Copy wizard gives error "there are 2 active connections to the - 11-29-2005 , 03:29 PM



If the database files (.mdf and .ldf) will not be in the same dir names as
they were on the original server you must change the physical paths of each
filename on the second tab of the Restore dialog. Or use Query Analyzer and
TSQL. Here is a sample from BooksOnLine on how to restore a db to a
different physical location:

RESTORE DATABASE MyNwind
FROM MyNwind_1
WITH NORECOVERY,
MOVE 'MyNwind' TO 'c:\Program Files\Microsoft SQL
Server\MSSQL\Data\NewNwind.mdf',
MOVE 'MyNwindLog1' TO 'c:\Program Files\Microsoft SQL
Server\MSSQL\Data\NewNwind.ldf'
RESTORE LOG MyNwind
FROM MyNwindLog1
WITH RECOVERY


--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello Kelly,

I have used the normal backup as you adviced. i transfered those backup
files to a folder on the second SQL 2000 server. I followed the steps
below
on the second server. I

1. right click Database folder=>All Tasks=>Restore Database
2. From device and browse to the folder containing the copied backup files

I got this error message "Device Activation error.......Use WITH MOVE to
identify a valid location for the file"

"bisigreat" wrote:

Thanks Kelly for the answer.

"Andrew J. Kelly" wrote:

A native sql server backup is an online operation. There is no need to
shut
down sql server while doing a SQL backup.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:6DFA65C5-05CC-4663-B0CD-273E7F30EA52 (AT) microsoft (DOT) com...
Thanks Kelly, i tought copy will make the job faster instead of
backing up
and then restore on another SQL server. Is there no tool in SQL
server
2000
that i can use to transfer the databases while the 2 servers are
running.

Thanks.

"Andrew J. Kelly" wrote:

Not sure why the message but why don't you simply do a backup and
restore?
The copy db process is so much more complicated and very
inefficient.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:E1A209D1-88C8-46FF-A1E0-CEA9FC3E480C (AT) microsoft (DOT) com...
I need to backup my CRM databases to another SQL server 2000
computer
using
the copy wizard but i received this error message " there are 2
active
connections to the database" so the database was not copied to the
second
server.

Some of the databases were also referred to as replicated
database. how
do
i
copy them to the second server.

Thanks









Reply With Quote
  #8  
Old   
bisigreat
 
Posts: n/a

Default Re: Copy wizard gives error "there are 2 active connections to the - 11-30-2005 , 04:29 AM



A big thank you to you Kelly. The peoblem was solved when i changed the
physical location of the .mdf and .ldf files on the second server. I
appreciate your contribution. Cheers

Bisi

"Andrew J. Kelly" wrote:

Quote:
If the database files (.mdf and .ldf) will not be in the same dir names as
they were on the original server you must change the physical paths of each
filename on the second tab of the Restore dialog. Or use Query Analyzer and
TSQL. Here is a sample from BooksOnLine on how to restore a db to a
different physical location:

RESTORE DATABASE MyNwind
FROM MyNwind_1
WITH NORECOVERY,
MOVE 'MyNwind' TO 'c:\Program Files\Microsoft SQL
Server\MSSQL\Data\NewNwind.mdf',
MOVE 'MyNwindLog1' TO 'c:\Program Files\Microsoft SQL
Server\MSSQL\Data\NewNwind.ldf'
RESTORE LOG MyNwind
FROM MyNwindLog1
WITH RECOVERY


--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:AA33D4F1-118A-41CF-96FB-32749135339B (AT) microsoft (DOT) com...
Hello Kelly,

I have used the normal backup as you adviced. i transfered those backup
files to a folder on the second SQL 2000 server. I followed the steps
below
on the second server. I

1. right click Database folder=>All Tasks=>Restore Database
2. From device and browse to the folder containing the copied backup files

I got this error message "Device Activation error.......Use WITH MOVE to
identify a valid location for the file"

"bisigreat" wrote:

Thanks Kelly for the answer.

"Andrew J. Kelly" wrote:

A native sql server backup is an online operation. There is no need to
shut
down sql server while doing a SQL backup.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:6DFA65C5-05CC-4663-B0CD-273E7F30EA52 (AT) microsoft (DOT) com...
Thanks Kelly, i tought copy will make the job faster instead of
backing up
and then restore on another SQL server. Is there no tool in SQL
server
2000
that i can use to transfer the databases while the 2 servers are
running.

Thanks.

"Andrew J. Kelly" wrote:

Not sure why the message but why don't you simply do a backup and
restore?
The copy db process is so much more complicated and very
inefficient.

--
Andrew J. Kelly SQL MVP


"bisigreat" <bisigreat (AT) discussions (DOT) microsoft.com> wrote in message
news:E1A209D1-88C8-46FF-A1E0-CEA9FC3E480C (AT) microsoft (DOT) com...
I need to backup my CRM databases to another SQL server 2000
computer
using
the copy wizard but i received this error message " there are 2
active
connections to the database" so the database was not copied to the
second
server.

Some of the databases were also referred to as replicated
database. how
do
i
copy them to the second server.

Thanks










Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.