If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > SQL Identity attribute drops when importing a table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-31-03, 12:11
rmetz rmetz is offline
Registered User
 
Join Date: Nov 2003
Posts: 39
Question SQL Identity attribute drops when importing a table

Hi all,

I am importing SQL 2000 tables from a developer install of SQL 2000. There are no destination tables to append just new tables being brought in.

I use the All Tasks > Import (DTS) service to do this. I have noticed that the Identity columns do not maintain the Identity attributes. I have to reset them after I import new tables. Is this normal? or is there a bug here?

I checked the MS KB with no success.
Anyone have some info on this?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 12-31-03, 12:22
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,322
Yeah, and you wont get any contraints or RI...

Did you look at the transfer database task?
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #3 (permalink)  
Old 12-31-03, 12:25
rmetz rmetz is offline
Registered User
 
Join Date: Nov 2003
Posts: 39
Quote:
Originally posted by Brett Kaiser
Yeah, and you wont get any contraints or RI...

Did you look at the transfer database task?
Thanks for the relpy.
I'll check it out.

RM
Reply With Quote
  #4 (permalink)  
Old 12-31-03, 12:28
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
If you want to copy the entire database you can also use the copy database wizard, backup/restore, detach/attach ... Did you use copy tables or copy objects ?
Reply With Quote
  #5 (permalink)  
Old 12-31-03, 12:30
rmetz rmetz is offline
Registered User
 
Join Date: Nov 2003
Posts: 39
Quote:
Originally posted by rnealejr
If you want to copy the entire database you can also use the copy database wizard, backup/restore, detach/attach ... Did you use copy tables or copy objects ?
Just copying tables with the wizard...
Reply With Quote
  #6 (permalink)  
Old 12-31-03, 12:41
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Use copy objects.
Reply With Quote
  #7 (permalink)  
Old 12-31-03, 13:11
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,322
I did not know that...very cool...

still I'd think I'd rather script my objects and use bcp..

MOO
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #8 (permalink)  
Old 12-31-03, 13:28
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
It does:

Look in C:\Program Files\Microsoft SQL Server\80\Tools
Reply With Quote
  #9 (permalink)  
Old 12-31-03, 13:39
rmetz rmetz is offline
Registered User
 
Join Date: Nov 2003
Posts: 39
Smile

Quote:
Originally posted by rnealejr
It does:

Look in C:\Program Files\Microsoft SQL Server\80\Tools
Thanks all! You have been most helpful!

This is a great forum...glad I joined.

RM
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On