dbTalk Databases Forums  

importing Tables from one SQLDB to another SQLDB, HOWTO import the PrimaryKey property?

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


Discuss importing Tables from one SQLDB to another SQLDB, HOWTO import the PrimaryKey property? in the microsoft.public.sqlserver.dts forum.



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

Default importing Tables from one SQLDB to another SQLDB, HOWTO import the PrimaryKey property? - 02-24-2005 , 02:58 AM






Hello NG,

i really like the DTS, but why one earth cant the
DTS copy the primary key property?

I always have to edit the importetd tables manually and set
the primary key propertie on the correct column.
Why does this information get lost?

It cant be so hard to check if a column has the primary key property and
than create the column in the target with the primary key property.

Is their any hidden way to do this automaticly without editing the skript?

Regards

Michael Brockhoff



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

Default Re: importing Tables from one SQLDB to another SQLDB, HOWTO import the PrimaryKey property? - 02-24-2005 , 02:04 PM






What are you using to take across the data?

If it is the DataPump task this behaviour is correct as ALL it does is
move data
You could use the Transfer Objets task to do this and you can select to
move Keys, indexes etc etc.

Allan

"Michael Brockhoff" <spammichzu (AT) aol (DOT) com> wrote

Quote:
Hello NG,

i really like the DTS, but why one earth cant the
DTS copy the primary key property?

I always have to edit the importetd tables manually and set
the primary key propertie on the correct column.
Why does this information get lost?

It cant be so hard to check if a column has the primary key property and
than create the column in the target with the primary key property.

Is their any hidden way to do this automaticly without editing the
skript?

Regards

Michael Brockhoff


Reply With Quote
  #3  
Old   
Michael Brockhoff
 
Posts: n/a

Default Re: importing Tables from one SQLDB to another SQLDB, HOWTO import the PrimaryKey property? - 02-25-2005 , 01:11 AM




"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag news:OBxcatqGFHA.3648 (AT) TK2MSFTNGP09 (DOT) phx.gbl...

Quote:
You could use the Transfer Objets task to do this and you can select to move Keys, indexes etc etc.
At the Moment i alway use the wizard to move one Table to another DB.
Wherer would i find the "Transfer Objects task"?

Regards

Michael




Reply With Quote
  #4  
Old   
Michael Brockhoff
 
Posts: n/a

Default Re: importing Tables from one SQLDB to another SQLDB, HOWTO import the PrimaryKey property? - 02-25-2005 , 01:22 AM




"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag news:OBxcatqGFHA.3648 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Quote:
What are you using to take across the data?

If it is the DataPump task this behaviour is correct as ALL it does is move data
You could use the Transfer Objets task to do this and you can select to move Keys, indexes etc etc.
Ok I found it. But is their a way to copy only certain Tables?
I did not found any selection wich Tables i want to move frrm one db to another.

At the moment i could only move all Tables from one db to another db

Regards

Michael




Reply With Quote
  #5  
Old   
Michael Brockhoff
 
Posts: n/a

Default Re: importing Tables from one SQLDB to another SQLDB, HOWTO import the PrimaryKey property? - 02-25-2005 , 01:29 AM




"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag news:OBxcatqGFHA.3648 (AT) TK2MSFTNGP09 (DOT) phx.gbl...

Ok me again

Well i just have to uncheck copy all objects than i can copy
certain tables



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.