Skip to main content
Nintex Community Menu Bar

SQL Request control error: Login failed for user... (Trying to access SQL Server that isn't for SP)

  • October 8, 2020
  • 7 replies
  • 136 views

Forum|alt.badge.img+4

Hello!  I am trying to access a table in a SQL Server that isn't the SharePoint SQL Server Database Engine.  I am able to use the SQL Request control to access our SharePoint SQL Server Database Engine but not any other one.  Is there something I'm missing?  I know the control has found the server, but it is giving me a "Login failed" error.  Is this something I have to change within the SQL Server itself or in the control settings?

Any help is appreciated!!!

Owen

7 replies

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 9, 2020
Hi,

The error is very clear that this is a permissions issue.
Add the webapplication service to the database that you want to access by the control and see if that helps.

Forum|alt.badge.img+4
  • Author
  • Novice
  • October 9, 2020

Hello @SimonMuntz,

Thank you for the response!  I'm a little new to SQL Server, so I apologize for asking further questions.  Do you add the webapplication service in SQL Server Management Studio?  Or is there a different way to add it?

Thank you!

Owen


Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 13, 2020
Yes, add the user via SQL management studio to the permissions section of the database you want to access.

Forum|alt.badge.img+4
  • Author
  • Novice
  • October 15, 2020

Thank you @SimonMuntz!  I really appreciate the help.  I have added the user to the database and have granted them the "Connect" permission, but I'm still getting the same error.  Is there another specific permission that the user needs to be given?  Also, why did I need to create the user?


Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 15, 2020
Hi,

What happens if you give the account full control?

Forum|alt.badge.img+4
  • Author
  • Novice
  • October 19, 2020

@SimonMuntz,

I do not have full control (I'm not allowed), so I've had to ask someone else to do things for me.  When they added the new user, I saw that they had the user in their list but I cannot see them...


Forum|alt.badge.img+4
  • Author
  • Novice
  • October 20, 2020

Turns out, it was an issue with my Secure Store target application.  I had to make a new one to apply it to the user in the new SQL Server I was trying to connect to.  the user that had the failed login only existed in the previous SQL Server. Thanks!