Classic ASP DatabasesDiscuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I am currently finding a solution to a problem i have and i was hoping the great minds of the forums could help. The problem goes as fallows: I am wondering if there is a way to access a function called getUserPoints() stored in a COM object within an MS SQL Statement. For instance,
in a programming manner i want to do something like this:
"Update [table] Set Points = " & getUserPoints(param1, param2) & " WHERE ID=9". I know you can do this with PL/SQL, but is there a solution for MS SQL????
Well, the COM OBJECT is written in VB 6.0. I believe you can do this with an MS SQL Function, but i want to do my functionality within a com object written in visual basic. thanks for replying so quickly!
Take a look in SQL Server BOL at stored procs beginning sp_OA..., especially sp_OACreate and sp_OAMethod. They allow you to create COM objects and call methods, properties. Watch out for the permissions you need to run these though.