Results 1 to 7 of 7

Thread: MSDE + autonumbers

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    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.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    Thanks,

    Can I change it after that, so autonumber resumes?
    Don't anthropomorphize computers -- they hate it

  4. #4

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    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

  5. #5
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    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

  6. #6

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    Then how would I transfer the records preserving the autonumber values?
    Don't anthropomorphize computers -- they hate it

  7. #7
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    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
  •  



Click Here to Expand Forum to Full Width