DateTime Precision and Scale

Posts   
 
    
takb
User
Posts: 150
Joined: 12-Mar-2004
# Posted on: 09-Nov-2005 14:12:20   

Just wondering, when creating FieldPersistenceInfo for DateTime, why do you set Scale and Precision to 3, 23? If I create a DateTime in SQLServer, scale and precision are set to 0, 0 automatically. Or are these values for another database type?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 09-Nov-2005 17:15:16   

I just pass on what the views in sqlserver offer me simple_smile . I use every value always, to avoid having logic in the code which first checks the type and then sets the parameters required. I just set all the parameters and let sqlparameter figure it all out. simple_smile

Frans Bouma | Lead developer LLBLGen Pro