Should there be Foreign Key contraints in OLTP database for SSRS
we have reporting system based on sql 2008r2 , ssrs.
have source database, tables have foreign keys between tables.
have generated reporting database based on design of source data database model. let source db , reporting db is identical.
i try truncate tables , import tables contents ssis. have plan update reporting data once in night.
error "cannot truncate table 'lindorffera' because being referenced foreign key constraint"
should there foreign key contraints in oltp database ssrs @ all? should remove them?
if foreign keys there, best way empty , import data ssis?
kenny_i
hello kenny ,
foreign key constraints used enforce referential integrity between tables. in point in view , keeping referential integrity in oltp system usefull , idea too.
tables on having foreign costraint , not able use truncate. instead can use delete. , deletion needs done on the child table , parent table needs deleted.
please take below script , may help
http://gallery.technet.microsoft.com/scriptcenter/5ec149a1-a808-440c-a5c9-19fb083e4441
best regards sorna
SQL Server > SQL Server Reporting Services, Power View
Comments
Post a Comment