Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Executing a Package from Visual Basic Expand / Collapse
Author
Message
Posted Sunday, January 20, 2002 12:00 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: Moderators
Last Login: Wednesday, June 4, 2014 12:29 PM
Points: 1,931, Visits: 234
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/bknight/executingpackagefromvisualbasic.asp

Brian Knight
Free SQL Server Training Webinars
Post #2301
Posted Friday, July 18, 2003 10:59 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, July 18, 2003 12:00 AM
Points: 1, Visits: 1
This article is a good start for my project..I am transforming data from a query to a .csv file and I need to programatically change the name of the results filename. I feel that I can utilize the Global Variable function to do this...I need to control the name of the textfile via ASP.




Post #26602
Posted Friday, January 23, 2004 6:08 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Today @ 11:15 AM
Points: 26, Visits: 135

good for start, but if I have more complex dts...may be I can create a job and after execute it from vb.exe with

"sp_start_job @job_name = 'My Job'"

using and ADO connection and execute it.




Post #96859
Posted Saturday, January 24, 2004 2:18 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, February 20, 2007 3:57 AM
Points: 22, Visits: 1

Excellent !!!

Good job to describe in few lines

Can I use this variables as a parameter to my SQL server Query for downloading the data

Thanks again

AMIT




Post #97059
Posted Monday, January 26, 2004 7:17 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, July 19, 2006 1:31 AM
Points: 9, Visits: 1

Hi Brian,

Thanks for the great website.

I have a Vb program which needs to call a DTS to load some data into SQL server from a text file. I managed to execute the DTS, but I couldn't get any return from DTS, so don't know if my data is loaded correctly unless I check from SQL server. Could you please explain how to solve this problem? Thank you very much!

Tina from Singapore




Post #97328
Posted Monday, June 7, 2004 8:57 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, March 10, 2005 8:09 AM
Points: 1, Visits: 1

Hi Brian,

I have many long running dts packages and need a way to notify the client of how many rows have been read.  I have played with the On Progress event but my package just freezes up when I check this event. 

Another nice feature that I want to add is the ability to cancel a package once it starts. 

Any ideas.....

Thanks for your help

Post #119598
Posted Sunday, January 23, 2005 12:00 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, March 31, 2005 12:05 AM
Points: 8, Visits: 1
Hi Brian,

Example is really great to get kick off with DTS package stuff.

Can you explain further, [Global Input Paramerter in DTS] which we set ,,,,,, instead of passing it through VB application can i make it pass through SQL itself (lookup from another table) so tat i can use specified DTS package at schedule. instead of making an exe and running it as service.




Kindest Regards,

Mohd Haneef

Haneef@AFG.COM.KW
Post #157152
Posted Friday, August 18, 2006 7:29 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 28, 2010 5:55 PM
Points: 5, Visits: 11

If your process is long time running process maybe you can send email to client when it is done. DTS package has this possibility or you can use SQL command inside DTS package to send e-mail from SQL server

Thanks

Janusz

Post #302583
Posted Friday, August 18, 2006 9:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 30, 2014 12:28 PM
Points: 6, Visits: 26
This is just a general question. This example may work if you are using VB6 but what about us that use c# and the .NET 2.0 framework? If there is a way to execute an SQL 2000 DTS Package in .NET 2.0 I have yet to figure it out.
Post #302642
Posted Monday, August 21, 2006 5:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 28, 2010 5:55 PM
Points: 5, Visits: 11

Create your DTS package and save it as VB script, next open it in VS2003 or VS2005 and allow VS to convert it. After that you will have all you need to run package from .Net language. You will have some error to fix because the conversion is not fully valid but they are very easy to fix. You can use this created code to not only run package from your application but you can also create it from your application.

Thanks

 

Post #302836
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse