I'm trying to run a Stored Procedure from the GP VBA. It will be used for data entry validation so it will be run a lot (hundreds of times per day).
Using ADO, I can create a connection and get a recordset back, but as far as I can tell this requires that I either (a) hardcode a userid and password for the connection or (b) get the user to enter a login and password every time it runs. The first option is a fairly big security risk and the second is just a real drag for the person that would have to type in the password hundreds of times a day.
My questions:
Is there some way I can run a stored procedure using the existing connection that GP has with the SQL server, or some way of using the login/password data the user enters when they logon to Great Plains?
If not, Is there any other way I can run the stored procedure without the login/password (perhaps using the NT user's existing network connection or a specific ODBC connection)?
Thanks,
Mark Handford
Using ADO, I can create a connection and get a recordset back, but as far as I can tell this requires that I either (a) hardcode a userid and password for the connection or (b) get the user to enter a login and password every time it runs. The first option is a fairly big security risk and the second is just a real drag for the person that would have to type in the password hundreds of times a day.
My questions:
Is there some way I can run a stored procedure using the existing connection that GP has with the SQL server, or some way of using the login/password data the user enters when they logon to Great Plains?
If not, Is there any other way I can run the stored procedure without the login/password (perhaps using the NT user's existing network connection or a specific ODBC connection)?
Thanks,
Mark Handford