Solved

ADP - VBA Functions vs SQL UDFs

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…

734 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