Solved

ADP - VBA Functions vs SQL UDFs

Posted on 2006-06-13
2
691 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 500 total points
Comment Utility
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
Comment Utility
You might have more luck in SQL 2005 - and writing .NET equivalents?
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now