dbTalk Databases Forums  

Re: dts in vb6

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


Discuss Re: dts in vb6 in the microsoft.public.sqlserver.dts forum.



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

Default Re: dts in vb6 - 07-15-2004 , 01:36 PM






In article <B73C6C2E-EDF6-45CC-8776-DA32049FA83D (AT) microsoft (DOT) com>, Bala wrote:
Quote:
Hi,

i have created the dts package and saved as vb module. the package created for exporting access db values to sql server. and then i try to run the vb project. its execute complete code. but its not exporting the data. whats the problem?

thanks
bala

It is unclear whether you have commented out the line that saves it to SQL Server or the line that fires the package.

Supposing you are actually executing the package then you can add another line to your code to make sure any errors are raised to VB and that line is

pkg.FailOnError = TRUE


Why are you firing the package like this? Effectively you are rebuilding the package every time which for me has to be a
performance hit


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
www.konesans.com - for all your consultancy needs





Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: dts in vb6 - 07-15-2004 , 02:03 PM






In message <D79670E9-33F5-4B87-9CAB-3A150504A736 (AT) microsoft (DOT) com>, Bala
<Bala (AT) discussions (DOT) microsoft.com> writes
Quote:
i have created the dts package and saved as vb module. the package
created for exporting access db values to sql server. and then i try
to run the vb project. its execute complete code. but its not
exporting the data. whats the problem?

Bala

Have a look at this recent thread for a discussion this very problem-

http://groups.google.co.uk/groups?hl...EjoZYFBME9AFwQ
D%40sqldts.com
Or
http://tinyurl.com/58ey4
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: dts in vb6 - 07-15-2004 , 02:06 PM



Yes but in that code will be lines like this


'goPackage.SaveToSQLServer "(local)", "sa", ""
goPackage.Execute


Which one is uncommented?

Did you add the line I spoke about?


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
www.konesans.com - for all your consultancy needs




Reply With Quote
  #4  
Old   
Bala
 
Posts: n/a

Default Re: dts in vb6 - 07-15-2004 , 04:25 PM



Hi,

when the user try to run the package once again i am getting error. how to resolve this error?
-2147217900
DTS Package 'New Package' already exists with a different ID in this category.

thanks
bala

"Allan Mitchell" wrote:

Quote:
In article <B73C6C2E-EDF6-45CC-8776-DA32049FA83D (AT) microsoft (DOT) com>, Bala wrote:
Hi,

i have created the dts package and saved as vb module. the package created for exporting access db values to sql server. and then i try to run the vb project. its execute complete code. but its not exporting the data. whats the problem?

thanks
bala


It is unclear whether you have commented out the line that saves it to SQL Server or the line that fires the package.

Supposing you are actually executing the package then you can add another line to your code to make sure any errors are raised to VB and that line is

pkg.FailOnError = TRUE


Why are you firing the package like this? Effectively you are rebuilding the package every time which for me has to be a
performance hit


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
www.konesans.com - for all your consultancy needs





Reply With Quote
  #5  
Old   
Bala
 
Posts: n/a

Default Re: dts in vb6 - 07-15-2004 , 05:21 PM



No problem. i solved it. thanks for ur responses.

bala

"Bala" wrote:

Quote:
Hi,

when the user try to run the package once again i am getting error. how to resolve this error?
-2147217900
DTS Package 'New Package' already exists with a different ID in this category.

thanks
bala

"Allan Mitchell" wrote:

In article <B73C6C2E-EDF6-45CC-8776-DA32049FA83D (AT) microsoft (DOT) com>, Bala wrote:
Hi,

i have created the dts package and saved as vb module. the package created for exporting access db values to sql server. and then i try to run the vb project. its execute complete code. but its not exporting the data. whats the problem?

thanks
bala


It is unclear whether you have commented out the line that saves it to SQL Server or the line that fires the package.

Supposing you are actually executing the package then you can add another line to your code to make sure any errors are raised to VB and that line is

pkg.FailOnError = TRUE


Why are you firing the package like this? Effectively you are rebuilding the package every time which for me has to be a
performance hit


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
www.konesans.com - for all your consultancy needs





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.