borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (VBA word spacing)Next Topic (Alternate Row Sum) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Run SQL Job from Access Solved Topic
Poster Message
gosamerone
Level: Big Cheese

Registered: 22-03-2005
Posts: 27

icon Run SQL Job from Access

Is there a way to run a job from SQL 2000 from Access 2003? I have tables that need to be renamed and re-imported in SQL from a txt file. SQL tables are then linked and used in Access. The txt file is short, but the SQL tables are too large for Access.

[Edited by gosamerone on 27-05-2008 at 07:19 AM GMT]

27-05-2008 at 12:17 PM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 1032
icon Re: Run SQL Job from Access

hi
what do you mean a SQL job?
Why trigger from Access?
you can use a sql passthrough query in access to exec an SP. is that what you need?
alternatively, you can exec a DTS package using VBScript (google), or you can shell to the Dulk import program (BPC).
any of these will acomplish what you need, however, I would question the need for any of these if the actual table cannot be accessed from Access.
regards
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

28-05-2008 at 09:56 PM
View Profile Send Email to User Show All Posts | Quote Reply
gosamerone
Level: Big Cheese

Registered: 22-03-2005
Posts: 27
icon Re: Run SQL Job from Access

I asked about a job because that is what I have set up in SQL already. Also, I would need to trigger from Access because that is the front end.

The table is far too large for Access to handle effectively, but by running the txt file into the SQL table, then populating a temp table in SQL from a view that will reduce the data to what is needed, I can then link the temp table into Access. This process works, but is manual at this point.

I will research and try your suggestions. As always, I appreciate you response and help.

29-05-2008 at 12:56 PM
View Profile Send Email to User Show All Posts | Quote Reply
gosamerone
Level: Big Cheese

Registered: 22-03-2005
Posts: 27
icon Re: Run SQL Job from Access

I was able to use the sql passthrough query and this should be enough to solve the problem.

Also able to run DTS - don't forget to add the
Microsoft DTSPackage Object Library


Thanks again.

[Edited by gosamerone on 02-06-2008 at 07:56 AM GMT]

30-05-2008 at 01:13 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Run SQL Job from Access Solved Topic
Previous Topic (VBA word spacing)Next Topic (Alternate Row Sum) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder