dbTalk Databases Forums  

Exluding Row while insert

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


Discuss Exluding Row while insert in the microsoft.public.sqlserver.dts forum.



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

Default Exluding Row while insert - 09-19-2005 , 11:56 AM






Hello,
Is it possible to exlude some rows during insert in DTS? or is it possible
to exlude last row from insert batch
Thx


Reply With Quote
  #2  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Exluding Row while insert - 09-19-2005 , 12:17 PM






You can do this in the transform script of your data pump.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
..
"kailux4" <kailux4 (AT) discussions (DOT) microsoft.com> wrote

Hello,
Is it possible to exlude some rows during insert in DTS? or is it possible
to exlude last row from insert batch
Thx


Reply With Quote
  #3  
Old   
kailux4
 
Posts: n/a

Default Re: Exluding Row while insert - 09-19-2005 , 01:03 PM



Hi Tom,
as i am new to DTS Programming,it will be great if you tell me how?
Thanks

"Tom Moreau" wrote:

Quote:
You can do this in the transform script of your data pump.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
..
"kailux4" <kailux4 (AT) discussions (DOT) microsoft.com> wrote in message
news:E77393DE-80E1-4F6E-A9E0-7ECB89B4F566 (AT) microsoft (DOT) com...
Hello,
Is it possible to exlude some rows during insert in DTS? or is it possible
to exlude last row from insert batch
Thx



Reply With Quote
  #4  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Exluding Row while insert - 09-19-2005 , 01:10 PM



Here's a snippet from the BOL:

Function Main()
If DTSGlobalVariables("LoadComplete").Value = True Then
Main = DTSTransformStat_SkipRow
Else
Main = DTSTransformStat_OK
End if
End Function
Basically, if your return code is DTSTransformStat_OK
, then it will insert the row. If it is DTSTransformStat_SkipRow, it will
skip the insert.
--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
..
"kailux4" <kailux4 (AT) discussions (DOT) microsoft.com> wrote

Hi Tom,
as i am new to DTS Programming,it will be great if you tell me how?
Thanks

"Tom Moreau" wrote:

Quote:
You can do this in the transform script of your data pump.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
..
"kailux4" <kailux4 (AT) discussions (DOT) microsoft.com> wrote in message
news:E77393DE-80E1-4F6E-A9E0-7ECB89B4F566 (AT) microsoft (DOT) com...
Hello,
Is it possible to exlude some rows during insert in DTS? or is it possible
to exlude last row from insert batch
Thx




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.