DDL SqlServer default value newid()?

Posts   
 
    
Rushmore
User
Posts: 125
Joined: 27-Jan-2005
# Posted on: 18-Apr-2011 14:55:57   

Hello,

I am missing the following line in my create/update script:

ALTER TABLE [dbo].[Contact] ADD CONSTRAINT [DF_Contact_ContactId] DEFAULT (newid()) FOR [ContactId] GO

Im using Visual Studio 2010 and the latest LLBLGen v3.1 Version (April, 14th 2011).

Regards, Carlo

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 18-Apr-2011 16:54:56   

Please add more description to your issue, and if possible a repro llblgen project. Why do you expect such line to be created?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 18-Apr-2011 21:10:19   

default constraints aren't generated into the DDL.

Frans Bouma | Lead developer LLBLGen Pro