Solved

ADP - VBA Functions vs SQL UDFs

Posted on 2006-06-13
2
732 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

713 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