Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access a SQL job or package from Access

Status
Not open for further replies.

fmientjes

Programmer
Mar 27, 2002
55
NL
Can someone help me with the rigt vba code for starting a job or a local package within SQL-server?

I have made a local package and from that package I created a job.
I would like to start the local package or the job from Access.

Frans
 
If you have enterprise manager on your computer, hook up the reference to the Microsoft SQLDMO Object Library. I can't give you any specific code, I just know that a guy that worked for us used it in an asp page (vbscript) to automate the backups of our SQL Data.

Have a scout around on the microsoft site for methods and that.

(I know you should start off something like this...
Dim oSQL As SQLDMO.SQLServer
oSQL.Connect
)
Hope this helps any
 
You don't need Enterprise Manager, just the SQLDMO libraries.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top