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)

  • Oct 8, 2020 4:30 PM UTC
  • 7 replies
  • 161 views
  • Translate All

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
  • Oct 9, 2020 3:03 AM UTC
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.
Translate

Forum|alt.badge.img+4
  • Author
  • Novice
  • Oct 9, 2020 12:34 PM UTC

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

Translate

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

Forum|alt.badge.img+4
  • Author
  • Novice
  • Oct 15, 2020 4:01 PM UTC

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?

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Oct 15, 2020 10:28 PM UTC
Hi,

What happens if you give the account full control?
Translate

Forum|alt.badge.img+4
  • Author
  • Novice
  • Oct 19, 2020 8:58 PM UTC

@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...

Translate

Forum|alt.badge.img+4
  • Author
  • Novice
  • Oct 20, 2020 8:05 PM UTC

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!

Translate