Sage 100

 View Only
  • 1.  I've created a link server from SQL 2014 to Sage 1

    Posted 07-15-2015 19:36
    I've created a link server from SQL 2014 to Sage 100 v2014. Works great. I've also created a DSN to the SQL tables and stored procedures using Windows Authentication. I can create linked tables in my Access front-end using the DSN. Now, I'm attempting to run a stored procedure and if I define the connection string with a user ID and password, all is good. I want to use a Trusted Connection instead of supplying the user ID and password but, for the life of me, I can't get it to work. Any assistance would be greatly appreciated.


  • 2.  RE: I've created a link server from SQL 2014 to Sage 1

    Posted 07-15-2015 20:54
    Have you assigned execute permissions to the stored procedure to the windows users?


  • 3.  RE: I've created a link server from SQL 2014 to Sage 1

    Posted 07-15-2015 21:31
    Assuming the users have connect and execute rights for the stored procedure, you should be able to just use a connection string like 'Server=SQLSERVER\INSTANCENAME;Database=DATABASENAME;Trusted_Connection=True;'. If you're running it from Access, then you would use an ADO.command where CommandText = ""sp_name"" and CommandType = adCmdStoredProc, and then Execute


  • 4.  RE: I've created a link server from SQL 2014 to Sage 1

    Posted 07-16-2015 12:58
    It always helps to actually read the error message. Turns out the error is referencing the Sage 100 DSN I used to create the linked server. The DSN uses a Sage login, not a unified login. The SQL connection string only works with the sa user and password, even though that is not the Sage login. Stumped.


  • 5.  RE: I've created a link server from SQL 2014 to Sage 1

    Posted 07-16-2015 13:35
    Soooooo easy to take on client characteristics!!! Happens to us all!