dbTalk Databases Forums  

cant export sql 2000 db

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


Discuss cant export sql 2000 db in the microsoft.public.sqlserver.dts forum.



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

Default cant export sql 2000 db - 07-19-2004 , 11:10 PM






ive got a sql 2000 db running on a remotely hosted server. im trying to take this db and export it and import it to my new web host. my problem is that I go to the db, select export, then select, copy objects to export. i keep getting an error that the export failed due to the fact that the user doesnt exist (the existing db has a username the webhost assigned me, the new db has a different username which the new webhost assigned me). I simply want to export all the data, the tables, primary and foreign keys. help!

thanks, lance

Reply With Quote
  #2  
Old   
Hari Prasad
 
Posts: n/a

Default Re: cant export sql 2000 db - 07-19-2004 , 11:29 PM






Hi,

Best option is :-

1. Backup the database from source server (See BACKUP database command in
books online)
2. COpy the backup file to destination server
3. Restore the database to the server (See Restore database command in books
online)

4. After the restore , correct the orphan users by running
sp_change_users_login (see books line for usage)

--
Thanks
Hari
MCDBA
"ljp997" <ljp997 (AT) discussions (DOT) microsoft.com> wrote

Quote:
ive got a sql 2000 db running on a remotely hosted server. im trying to
take this db and export it and import it to my new web host. my problem is
that I go to the db, select export, then select, copy objects to export. i
keep getting an error that the export failed due to the fact that the user
doesnt exist (the existing db has a username the webhost assigned me, the
new db has a different username which the new webhost assigned me). I simply
want to export all the data, the tables, primary and foreign keys. help!
Quote:
thanks, lance



Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: cant export sql 2000 db - 07-20-2004 , 02:19 AM



You are probably trying to copy the local logins from the remote server.
Personally I think this task has its uses but your requirement is not one
of them. I would look to do

BACKUP, at the remote site and then RESTORE, at your local site.

Much quicker, cleaner and easier

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


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

Quote:
ive got a sql 2000 db running on a remotely hosted server. im trying to
take this db and export it and import it to my new web host. my problem is
that I go to the db, select export, then select, copy objects to export. i
keep getting an error that the export failed due to the fact that the user
doesnt exist (the existing db has a username the webhost assigned me, the
new db has a different username which the new webhost assigned me). I simply
want to export all the data, the tables, primary and foreign keys. help!
Quote:
thanks, lance



Reply With Quote
  #4  
Old   
ljp099
 
Posts: n/a

Default RE: cant export sql 2000 db - 07-20-2004 , 10:00 PM



Both the solutions posted regarding this problem advise that I backup the database. This is a remotely hosted db on a shared server. Most shared hosts, including mine, do not give you rights to perform a backup. Therefore, backing up is not an option. So back to my original question, how can I export the db, or perhaps the first question is, is it possible to export and import all the tables and data? If so, can someone please tell me how (see original comments on problems performing the export as a result of different db usernames).

Thanks,
lance

"ljp997" wrote:

Quote:
ive got a sql 2000 db running on a remotely hosted server. im trying to take this db and export it and import it to my new web host. my problem is that I go to the db, select export, then select, copy objects to export. i keep getting an error that the export failed due to the fact that the user doesnt exist (the existing db has a username the webhost assigned me, the new db has a different username which the new webhost assigned me). I simply want to export all the data, the tables, primary and foreign keys. help!

thanks, lance

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

Default RE: cant export sql 2000 db - 07-20-2004 , 10:00 PM



Both the solutions posted regarding this problem advise that I backup the database. This is a remotely hosted db on a shared server. Most shared hosts, including mine, do not give you rights to perform a backup. Therefore, backing up is not an option. So back to my original question, how can I export the db, or perhaps the first question is, is it possible to export and import all the tables and data? If so, can someone please tell me how (see original comments on problems performing the export as a result of different db usernames).

Thanks,
lance

"ljp997" wrote:

Quote:
ive got a sql 2000 db running on a remotely hosted server. im trying to take this db and export it and import it to my new web host. my problem is that I go to the db, select export, then select, copy objects to export. i keep getting an error that the export failed due to the fact that the user doesnt exist (the existing db has a username the webhost assigned me, the new db has a different username which the new webhost assigned me). I simply want to export all the data, the tables, primary and foreign keys. help!

thanks, lance

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

Default Re: cant export sql 2000 db - 07-20-2004 , 10:00 PM



Both the solutions posted regarding this problem advise that I backup the database. This is a remotely hosted db on a shared server. Most shared hosts, including mine, do not give you rights to perform a backup. Therefore, backing up is not an option. So back to my original question, how can I export the db, or perhaps the first question is, is it possible to export and import all the tables and data? If so, can someone please tell me how (see original comments on problems performing the export as a result of different db usernames).

Thanks,
lance

"Allan Mitchell" wrote:

Quote:
You are probably trying to copy the local logins from the remote server.
Personally I think this task has its uses but your requirement is not one
of them. I would look to do

BACKUP, at the remote site and then RESTORE, at your local site.

Much quicker, cleaner and easier

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"ljp997" <ljp997 (AT) discussions (DOT) microsoft.com> wrote in message
news:F00D35C4-8D4F-476D-B434-86F60E1F537E (AT) microsoft (DOT) com...
ive got a sql 2000 db running on a remotely hosted server. im trying to
take this db and export it and import it to my new web host. my problem is
that I go to the db, select export, then select, copy objects to export. i
keep getting an error that the export failed due to the fact that the user
doesnt exist (the existing db has a username the webhost assigned me, the
new db has a different username which the new webhost assigned me). I simply
want to export all the data, the tables, primary and foreign keys. help!

thanks, lance




Reply With Quote
  #7  
Old   
ljp099
 
Posts: n/a

Default RE: cant export sql 2000 db - 07-20-2004 , 10:00 PM



Both the solutions posted regarding this problem advise that I backup the database. This is a remotely hosted db on a shared server. Most shared hosts, including mine, do not give you rights to perform a backup. Therefore, backing up is not an option. So back to my original question, how can I export the db, or perhaps the first question is, is it possible to export and import all the tables and data? If so, can someone please tell me how (see original comments on problems performing the export as a result of different db usernames).

Thanks,
lance

"ljp997" wrote:

Quote:
ive got a sql 2000 db running on a remotely hosted server. im trying to take this db and export it and import it to my new web host. my problem is that I go to the db, select export, then select, copy objects to export. i keep getting an error that the export failed due to the fact that the user doesnt exist (the existing db has a username the webhost assigned me, the new db has a different username which the new webhost assigned me). I simply want to export all the data, the tables, primary and foreign keys. help!

thanks, lance

Reply With Quote
  #8  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: cant export sql 2000 db - 07-20-2004 , 11:54 PM



If you cannot use BACKUP / RESTORE then

1. Use the Transfer SQL Server Objects Task and in th options specify to
not take the logins.
2. Script out the database, apply the script locally (Except constraints),
Pump the data, Apply the constraints.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


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

Quote:
Both the solutions posted regarding this problem advise that I backup the
database. This is a remotely hosted db on a shared server. Most shared
hosts, including mine, do not give you rights to perform a backup.
Therefore, backing up is not an option. So back to my original question, how
can I export the db, or perhaps the first question is, is it possible to
export and import all the tables and data? If so, can someone please tell me
how (see original comments on problems performing the export as a result of
different db usernames).
Quote:
Thanks,
lance

"Allan Mitchell" wrote:

You are probably trying to copy the local logins from the remote server.
Personally I think this task has its uses but your requirement is not
one
of them. I would look to do

BACKUP, at the remote site and then RESTORE, at your local site.

Much quicker, cleaner and easier

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"ljp997" <ljp997 (AT) discussions (DOT) microsoft.com> wrote in message
news:F00D35C4-8D4F-476D-B434-86F60E1F537E (AT) microsoft (DOT) com...
ive got a sql 2000 db running on a remotely hosted server. im trying
to
take this db and export it and import it to my new web host. my problem
is
that I go to the db, select export, then select, copy objects to export.
i
keep getting an error that the export failed due to the fact that the
user
doesnt exist (the existing db has a username the webhost assigned me,
the
new db has a different username which the new webhost assigned me). I
simply
want to export all the data, the tables, primary and foreign keys. help!

thanks, lance






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.