CodeSmith Community
Your Code. Your Way. Faster!

Insert does not override table field default value

Latest post 11-15-2007 4:30 AM by Eudoxus. 0 replies.
  • 11-15-2007 4:30 AM

    • Eudoxus
    • Top 500 Contributor
    • Joined on 06-09-2006
    • Posts 17
    • Points 290

    Insert does not override table field default value

    Hi,

    I've got a table which has a GUID field type, with the default value set to newid().

    However, when I perform an insert I am deliberately setting the value of that field myself.

    The problem is that if I perform a get for the same row immediately after the insert, the value of that field has changed to the value generated by the default value setting.

    Is this a change in feature or a bug?

    Cheers,

     Matt.

    • Post Points: 5
Page 1 of 1 (1 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems