Partitioned Views

Posts   
 
    
Posts: 3
Joined: 01-Dec-2008
# Posted on: 01-Dec-2008 19:33:40   

Can LLBLGen Pro handle INSERTS, UPDATES, and DELETES on Partitioned Views (PV) in SQL Server 2000/2005. Keep in mind that I am specifically referring to "Partitioned Views", and not "Partitioned Tables" available only in SQL 2005 EE, DE.

The INSERT and UPDATE statements on PVs have certain requirements. For example, all columns must be explicitly stated in INSERT statements, even columns that allow NULLs and columns that have default values.

I suppose this issue could be circumvented by the developer making sure to explicitly write all column-value pairs prior to calling the save() method of the DataAccessAdapter, but I just wanted to make sure.

Thanks,

Mike

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 02-Dec-2008 04:39:22   

ARITHABORT has to be switched on (check this) and indeed you have to make sure all fields have a value set.

David Elizondo | LLBLGen Support Team