Solved

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

Posted on 2009-07-09
16
317 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Move SQL 2005 Express to Server 2012R2 19 125
Error when saving to sql table a '/' 5 27
Set cookies HttpOnly and Secure 4 154
Sql query 107 59
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…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

786 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