Hi All,
I am building a function in NAV using automation ADO. I need to get the user password who login in NAV and use it for the connectionstring to open SQL ADO connection but i know password in NAV is encrypted so error is raised when attemping to connect. Is there any way i can do this? Need your advise.
ltxt_ConnectionString := ‘Driver={SQL Server};’
-
‘Server=’ + ptxt_ServerName + ‘;’
-
‘Database=’ + ptxt_DatabaseName + ‘;’
-
‘Uid=’ + ptxt_Login + ‘;’
-
‘Pwd=’ + ptxt_Password + ‘;’;
lADOConnection.ConnectionString := ltxt_ConnectionString;
Thanks,
Richard