|
-
Apr 21st, 2003, 03:22 PM
#1
Thread Starter
Frenzied Member
MSDE + autonumbers
We have clients with Access databases. We are currently upgrading to MSDE and I have to come up with a data conversion program. Now, I can easily upsize it (but no data, it must be done at customer's site). However, how would I transfer the records with autonumber fields?? The records must be transferred by my conversion application.
Thanks,
Don't anthropomorphize computers -- they hate it
-
Apr 21st, 2003, 03:52 PM
#2
in MSSQL the field is defined as Type = Integer, Allow Nulls = No, Identity = True.
You'll want to make sure that you SET IDENTITY INSERT ON first, before inserting the rows, that way the old Autonumber will come over proeprly.
-
Apr 21st, 2003, 03:58 PM
#3
Thread Starter
Frenzied Member
Thanks,
Can I change it after that, so autonumber resumes?
Don't anthropomorphize computers -- they hate it
-
Apr 21st, 2003, 04:00 PM
#4
Thread Starter
Frenzied Member
Also, I only have MSDE installed and it doesn't come with Enterprise manager. How can I alter the Field's properties?
Thanks,
Don't anthropomorphize computers -- they hate it
-
Apr 21st, 2003, 04:02 PM
#5
Frenzied Member
The identity in MSSQL is basically the same thing as Access's Autonumber...so you wouldn't want to turn it off.
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Apr 21st, 2003, 04:10 PM
#6
Thread Starter
Frenzied Member
Then how would I transfer the records preserving the autonumber values?
Don't anthropomorphize computers -- they hate it
-
Apr 22nd, 2003, 10:47 AM
#7
Frenzied Member
Try setting the field to an integer datatype...once the data has been transferred...then click the identity for that field so it will continue to increment the values.
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|