Solved

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

Posted on 2009-07-09
16
315 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
 

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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now