Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ADP - VBA Functions vs SQL UDFs

Posted on 2006-06-13
2
Medium Priority
?
764 Views
Last Modified: 2013-12-05
Hi,

I've moved most of my databases now to ADP as the performance with the SQL backend is superb, though one of my dBs has a large number of VBA functions programmed within it.  These VBA functions were used within update queries within the db when it was a mdb, and I'll need to use them in the same context within the ADP.  Anyone able to help out on the below questions on this or provide any useful tips?

- Can VBA functions be accessed from a SQL Server Query/SP?
- Are there any performance benefits from converting them into SQL UDFs?
- As the VBA functions are fairly large and complex, is it fairly easy to convert them into T-SQL based UDF?

Thanks for any help or guidance,

Simon
0
Comment
Question by:simon_kirk
  • 2
2 Comments
 
LVL 44

Accepted Solution

by:
Leigh Purvis earned 1500 total points
ID: 16894607
1) No - SQL Server is not VBA aware
2) Yes - in that they won't work otherwise.  But sometimes there's benefit to be had in taking some load off the server and onto the client. (In mdb files).
3) Not particularly.  Depends on what they do.  VBA is a programming language.  Not as rich as some - but leagues ahead of T-SQL for maniuplation, which as a data set language, simply isn't designed to do that.

If you want to give some more details - we can try to also ;-)
0
 
LVL 44

Expert Comment

by:Leigh Purvis
ID: 16894622
You might have more luck in SQL 2005 - and writing .NET equivalents?
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question