dbTalk Databases Forums  

Compact

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


Discuss Compact in the microsoft.public.sqlserver.dts forum.



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

Default Compact - 08-12-2003 , 12:26 PM






I have the following code. is it any way to make this more
compact?
DTSDestination("QVPIDS") = "EV"
DTSDestination("QVPIDT")="EV"
IF DTSLookups("Find_PKey").Execute((DTSDestination
("QVUSER")))<>0 Then
If DTSSource("Add_Change_Delete")="D" Then
Main = DTSTransformstat_DeleteQuery
Else DTSSource("Add_Change_Delete")="C"
Main = DTSTransformstat_UpdateQuery
End if
Else
If DTSSource("Add_Change_Delete")="A" Then
Main = DTSTransformstat_InsertQuery
End if
End if
DTSDestination("QVPIDS") = "ER"
DTSDestination("QVPIDT")="ER"
IF DTSLookups("Find_PKey").Execute((DTSDestination
("QVUSER")))<>0 Then
If DTSSource("Add_Change_Delete")="D" Then
Main = DTSTransformstat_DeleteQuery
Else DTSSource("Add_Change_Delete")="C"
Main = DTSTransformstat_UpdateQuery
End if
Else
If DTSSource("Add_Change_Delete")="A" Then
Main = DTSTransformstat_InsertQuery
End if
End if

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.