I’m trying to figure out how to get the name of the DataSource (Server) that is selected on the the Login form. I’m trying to do this before the user has logged into the system so Globals.SqlDataSourceName is not set yet. I can get the value as a SingleSelectList index, but can’t figure out how to turn that into the string representation of the DataSource name.
—————————— Matthew Arp Business Systems Developer Hunton Group Houston TX ——————————
Joshua Pelkola
Member
March 13, 2018 at 12:11 PM
This is in the Registry: hkey_local_machine > software > wow6432node > odbc > odbc.ini
All the connections are listed by name. There is a value stored for the SQL instance under the name “Server”
—————————— Joshua Pelkola Managing Consultant BKD Technologies San Antonio TX —————————— ——————————————-
the end goal is I am using the the AlterLogin?? function on the EnterUserNames form to sync passwords between various GP environments. This function appears to require the DataSource name as the first parameter. I am using .NET with some injected SANScript. After recommended referencing the ODBC config, I just used a .NET wrapper to odbc32.dll? to iterate over the data sources. This does appear to work, but I’m still curious if there was a easier way to translate the selected DataSource index to the text that’s actually displayed in the UI.
—————————— Matthew Arp Business Systems Developer Hunton Group Houston TX —————————— ——————————————-
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!