Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Integrated Security is required Error When using SQL Authentication in Connection String

Posted on by 60

I'm Getting the following error when creating transaction using eConnect in GP, with SQL Server Authentication in connection String.

Integrated Security is required. \r\n Please ensure that the ConnectionString input parameter is valid.\r\n Examples:SQLCLIENT Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=TWO;Data Source=MySQLServerName \r\n Examples:SQLOLEDB Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=TWO;Data Source=MySQLServerName

I'm using GP 2016, and eConnect 16.0

Categories:
  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    Beat Bucher GP Gee... 28,021 Super User 2024 Season 1 on at
    RE: Integrated Security is required Error When using SQL Authentication in Connection String

    Hi Vaidh,

    Why don't you want to use Integrated Security for the eConnect connection ? this is the most secure way of establishing a data connection to a SQL server..  Anything else is unsecure and could be just looked up by anyone who could access the application or the data connection..

    I typically mention as example the Excel workbook data connection to Dynamics GP data.. you can use a SQL user for the authentication string, but then anyone who has access to the Excel workbook would be able to lookup that SQL user (which can't be a GP user by the way, as the pwd is encrypted on the SQL side).

    Using SSPI allows for secured access control on the SQL server data side, since you can specify which user or group has access to which data.

  • Vaidh Profile Picture
    Vaidh 60 on at
    RE: Integrated Security is required Error When using SQL Authentication in Connection String

    I dont want to use : Integrated Security=SSPI

  • RE: Integrated Security is required Error When using SQL Authentication in Connection String

    An example of a connection string I've used with eConnect is here:

    "data source=SQLInstanceName;initial catalog=TWO;integrated security=SSPI;persist security info=False;packet size=4096"

    The data source would be the SQL Server instance name. If you have a named SQL instance, enter the entire name such as ServerName\SQLInstanceName.

    The TWO would be whatever company database for GP you're running against.

    See if this example doesn't work for you.

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans