web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

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

(0) ShareShare
ReportReport
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:
I have the same question (0)
  • Derek Albaugh Profile Picture
    Microsoft Employee on at

    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

  • Vaidh Profile Picture
    60 on at

    I dont want to use : Integrated Security=SSPI

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans