Solved

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

Posted on 2009-07-09
16
321 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
Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part

 

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 500 total points
ID: 24859997
right click on logins and ...
untitled.PNG
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
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 this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

626 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