?
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
?
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 

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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

719 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