dbTalk Databases Forums  

Copy Tables/Views from a Suspect Database to New Datbase

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


Discuss Copy Tables/Views from a Suspect Database to New Datbase in the microsoft.public.sqlserver.dts forum.



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

Default Copy Tables/Views from a Suspect Database to New Datbase - 03-27-2005 , 10:15 AM






When using DTS to copy Tables/Views from one SQL to another, some of the
tables/views start to copy but error out.

Is there anyway to fix/rebuild the existing tables/views before copying or
worst, is there anyway to let as many copy before it fails. I understand
this would not get me a complete set but if I can't do the above, I need
something to move forward with.

Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: Copy Tables/Views from a Suspect Database to New Datbase - 03-27-2005 , 10:03 PM






Try using bcp instead. However, If the database is suspect,
you may not be able to get all the data out.
The best thing to do with suspect databases is to restore
after you have determined what has caused the database to go
suspect.

-Sue

On Sun, 27 Mar 2005 07:15:01 -0800, khcrookie
<khcrookie (AT) discussions (DOT) microsoft.com> wrote:

Quote:
When using DTS to copy Tables/Views from one SQL to another, some of the
tables/views start to copy but error out.

Is there anyway to fix/rebuild the existing tables/views before copying or
worst, is there anyway to let as many copy before it fails. I understand
this would not get me a complete set but if I can't do the above, I need
something to move forward with.


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

Default Re: Copy Tables/Views from a Suspect Database to New Datbase - 03-28-2005 , 12:23 PM



Is it possible to bcp individual tables from SQL mdf to another SQL mdf or
does it have to write them to a .txt file, then import them into the 2nd SQL
mdf ?

"Sue Hoegemeier" wrote:

Quote:
Try using bcp instead. However, If the database is suspect,
you may not be able to get all the data out.
The best thing to do with suspect databases is to restore
after you have determined what has caused the database to go
suspect.

-Sue

On Sun, 27 Mar 2005 07:15:01 -0800, khcrookie
khcrookie (AT) discussions (DOT) microsoft.com> wrote:

When using DTS to copy Tables/Views from one SQL to another, some of the
tables/views start to copy but error out.

Is there anyway to fix/rebuild the existing tables/views before copying or
worst, is there anyway to let as many copy before it fails. I understand
this would not get me a complete set but if I can't do the above, I need
something to move forward with.



Reply With Quote
  #4  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: Copy Tables/Views from a Suspect Database to New Datbase - 03-28-2005 , 08:46 PM



When you bcp out your data, you are copying it from a table
or view to a file. Then you would import the bcp file into
the other database.
You can find information on using bcp in books online under:
bcp Utility

-Sue

On Mon, 28 Mar 2005 09:23:04 -0800, khcrookie
<khcrookie (AT) discussions (DOT) microsoft.com> wrote:

Quote:
Is it possible to bcp individual tables from SQL mdf to another SQL mdf or
does it have to write them to a .txt file, then import them into the 2nd SQL
mdf ?

"Sue Hoegemeier" wrote:

Try using bcp instead. However, If the database is suspect,
you may not be able to get all the data out.
The best thing to do with suspect databases is to restore
after you have determined what has caused the database to go
suspect.

-Sue

On Sun, 27 Mar 2005 07:15:01 -0800, khcrookie
khcrookie (AT) discussions (DOT) microsoft.com> wrote:

When using DTS to copy Tables/Views from one SQL to another, some of the
tables/views start to copy but error out.

Is there anyway to fix/rebuild the existing tables/views before copying or
worst, is there anyway to let as many copy before it fails. I understand
this would not get me a complete set but if I can't do the above, I need
something to move forward with.




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.