I have a button script running to list some info from AP Invoice History Header. It works in Std, but not Premium. What are we missing with the ODBC settings or permissions?
We have the ODBC setup & testing successfully on the app server.
The ODBC has a name of SOTAMAS90, the user is setup in Sage as ""SCRIPT"" with password of ""script, & the company code in both ODBC & the script is 001.
The Sage service is running as a domain admin.
It gets to where it needs to open the connection & errors out:
Dim Input
Input = AP_Invoice_bus_VendorNo
strConnectionString = ""DSN=SOTAMAS90;UID=SCRIPT|001;PWD=script""
Set connection = CreateObject(""ADODB.Connection"")
connection.open strConnectionString
Set RS = CreateObject(""ADODB.RecordSet"")
strSQL = ""SELECT * FROM AP_InvoiceHistoryHeader WHERE AP_InvoiceHistoryHeader.VendorNo = '"" & Input & ""'""
RS.Open strSQL, connection
-----------------------------------------------------------------
Error:
OLE Error Number : -2147217843.
Description : [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'SCRIPT|001'.
Language : VBScript
Script Line : 41
Script Column : 0