Results 1 to 3 of 3
  1. #1
    cbuechler is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    2

    Defaults Values Missing After DB Move

    Hi,



    I have several SQL databases on two SQL servers (2000 and 2005) and when I move them to a new SQL 2005 server via detach and attach all of the "Default Values or Bindings" I have set on fields dissapear.

    I noticed this first when I opened one and added a new record and my date created field that should fill with getdate() didn't populate. Checking the table design I can see that getdate() is missing from the default value. I checked other fields and they were missing from there as well and one of the db's wasn't my design so I don't look forward to replacing them all by hand.

    Any ideas on what I need to do to move these without losing those settings? Even reattaching the db's back to the same server doesn't help as the default settings are gone now from there as well. I had to revert to a backup to get things functioning again on the old servers.

    Thanks!

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,171
    Hi,

    SQL server does handle defaults in a different way since version 2005: default definitions. And although the old default object is still supported for now, MS states in its help function this feature will be removed in later versions. So this could be the cause of loosing the default objects when moving the database to a new format.
    However you can replace them by creating default definitions.

    success
    NG

    btw: as this is an Access forum, you will get more answers to questions about SQl server if you put them on the proper SQL server forums.

  3. #3
    cbuechler is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    2
    Thanks for the reply.

    I went ahead and restored a copy of the database from backup to the new server rather than follow up with another Detach/Attach attempt and the restore carried over the defaults while the D/A actions didn't; so all is well.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Move fields to the right in a report
    By degras in forum Reports
    Replies: 1
    Last Post: 01-20-2011, 08:40 AM
  2. On Mouse Move, Flickering
    By 95DSM in forum Programming
    Replies: 1
    Last Post: 01-04-2011, 08:35 AM
  3. Missing object references after move to Win7
    By Gdm in forum Programming
    Replies: 3
    Last Post: 07-26-2010, 07:03 AM
  4. Move to next field command...
    By mvolpone in forum Forms
    Replies: 1
    Last Post: 07-06-2010, 09:30 PM
  5. Move data from one table to another
    By rebyrd in forum Queries
    Replies: 2
    Last Post: 12-24-2009, 12:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums