Solved

ADP - VBA Functions vs SQL UDFs

Posted on 2006-06-13
2
747 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

627 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