dbTalk Databases Forums  

Using DRI vs Triggers

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Using DRI vs Triggers in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ngan
 
Posts: n/a

Default Using DRI vs Triggers - 09-22-2004 , 04:53 PM






When I did the upsize wizard, for the relationships, I
thought it was set to DRI. However, it was set to
Triggers.

I have since moved my access XP tables to SQL 2k tables
and the data.

Should it be an issue that the relationships are in
Triggers, not DRI?

Should I try to fix that? If so, what's the easiest way?

I was thinking of creating a new sql db (dbnew) and
upsizing the access tables without the data and making
sure it uses DRI. Then I would use DTS to import data
from the current SQL db (dbcurrent) to the new one. Then
I would delete the current SQL db (dbcurrent).

Finally, I would again create another SQL db with the
original name (dbcurrent), upsize the tables without hte
data...and then re-import the data back from dbnew. Then
deleting the dbnew. Therefore, I have the dbcurrent with
the DRI and my data would be current.

A lil crazy, but is there an easier way of doing this?

Reply With Quote
  #2  
Old   
Jacco Schalkwijk
 
Posts: n/a

Default Re: Using DRI vs Triggers - 09-23-2004 , 09:01 AM






DRI would definitely be easier to maintain, and most likely perform better
as well.

I think the easiest scenario is to use the upsize wizard to create a new
database with DRI without the data. Then generate a script in Enterprise
Manager for the tables in the new database with all options on (third tab in
the wizard) and remove everything except the statements that create the
foreign keys. Next generate a script on the original database for all tables
and triggers with the option "generate the DROP command for each object".
Remove everything from that that doesn't relate to triggers. Finally run the
triggers script and then the foreign keys script. (And back up your original
database before you start).

--
Jacco Schalkwijk
SQL Server MVP


"Ngan" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
When I did the upsize wizard, for the relationships, I
thought it was set to DRI. However, it was set to
Triggers.

I have since moved my access XP tables to SQL 2k tables
and the data.

Should it be an issue that the relationships are in
Triggers, not DRI?

Should I try to fix that? If so, what's the easiest way?

I was thinking of creating a new sql db (dbnew) and
upsizing the access tables without the data and making
sure it uses DRI. Then I would use DTS to import data
from the current SQL db (dbcurrent) to the new one. Then
I would delete the current SQL db (dbcurrent).

Finally, I would again create another SQL db with the
original name (dbcurrent), upsize the tables without hte
data...and then re-import the data back from dbnew. Then
deleting the dbnew. Therefore, I have the dbcurrent with
the DRI and my data would be current.

A lil crazy, but is there an easier way of doing this?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.