Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

InfoPath error when connecting to SQL server 2003 - not associated with a trusted SQL server connection

Posted on 2009-07-09
16
Medium Priority
?
325 Views
Last Modified: 2012-06-21
Dear All,

I have a SharePoint 2007 enterprise edition x64 environment that I am using for WorkFlows. The SharePoint databases are held on a SQL Server 2005. There is also another database on the same sever that holds information such as departments, active users and job titles. I'm trying to get the infoPath forms to retrieve these details and populate them into a drop down box. I want to use stored credentials in the SQL connection from Infopath to the database but I keep getting an error "Login failed for user ??????. The user is not associated with a trusted SQL server connection", see attached. Can anyone tell me how to setup a trusted connection between the infoPath forms on the SharePoint Server and a SQL Server ?
InfoPath-error-message.bmp
0
Comment
Question by:dubisteam
  • 9
  • 7
16 Comments
 
LVL 11

Expert Comment

by:Andrei Teodorescu
ID: 24825895
I cannot see what option you selected for sql authentication, because of the error prompt, but it seems that you have filled the password textbox, this meaning that you selected 'Use the following user name and Password'

for that option you should provide a SQL login and not a domain user
0
 

Author Comment

by:dubisteam
ID: 24841307
Dear All,

I have provided an SQL login with the following permissions to the database:

db_accessadmin
db_datareader
db_owner
db_securityadmin

and I'm still getting the error message.
0
 
LVL 11

Expert Comment

by:Andrei Teodorescu
ID: 24843600
please post a screenshot with the Data Connection Wizard again
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

Author Comment

by:dubisteam
ID: 24847662
Here is screen shot
InfoPath-error-message-2.bmp
0
 
LVL 11

Expert Comment

by:Andrei Teodorescu
ID: 24847702
Just as I thought; delete everything before \, including it; when you provide a SQL login as authentication it's not needed to specify the server name
0
 

Author Comment

by:dubisteam
ID: 24847856
Hi Andrei,

I have already tried without the domain and \ but I'm still getting the same error message.
0
 
LVL 11

Expert Comment

by:Andrei Teodorescu
ID: 24847866
then you mistyped the password or something like this; reset the password of the SQL login and start over
0
 

Author Comment

by:dubisteam
ID: 24849612
I have reset the password and am still getting the same error message
0
 
LVL 11

Expert Comment

by:Andrei Teodorescu
ID: 24849687
Is the instance of the SQL named?
Do you have SQL Studio Management istalled on you workstation? Can you connect to the SQL with SSMS using that SQL login?
0
 

Author Comment

by:dubisteam
ID: 24859484
I can't connect to SQL with that login using SSMS but they are there under security -> logins. How come ?
0
 
LVL 11

Expert Comment

by:Andrei Teodorescu
ID: 24859765
provide a screenshot with the SSMS login box
0
 

Author Comment

by:dubisteam
ID: 24859896
Screenshot attached
SSMS-error-screenshot.bmp
0
 
LVL 11

Expert Comment

by:Andrei Teodorescu
ID: 24859925
this is weird ...
pls, another one with the SQL login (expand Security -> Logins ...)
0
 

Author Comment

by:dubisteam
ID: 24859950
Thought you would want that
Security-logins.bmp
0
 
LVL 11

Expert Comment

by:Andrei Teodorescu
ID: 24859980
so, that is not an SQL login, but an domain account (it's login has the same name - but this si not important)

please define a new login, this time should be a SQL account
0
 
LVL 11

Accepted Solution

by:
Andrei Teodorescu earned 2000 total points
ID: 24859997
right click on logins and ...
untitled.PNG
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question