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

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
dubisteamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrei TeodorescuBusiness OwnerCommented:
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
dubisteamAuthor Commented:
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
Andrei TeodorescuBusiness OwnerCommented:
please post a screenshot with the Data Connection Wizard again
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

dubisteamAuthor Commented:
Here is screen shot
InfoPath-error-message-2.bmp
0
Andrei TeodorescuBusiness OwnerCommented:
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
dubisteamAuthor Commented:
Hi Andrei,

I have already tried without the domain and \ but I'm still getting the same error message.
0
Andrei TeodorescuBusiness OwnerCommented:
then you mistyped the password or something like this; reset the password of the SQL login and start over
0
dubisteamAuthor Commented:
I have reset the password and am still getting the same error message
0
Andrei TeodorescuBusiness OwnerCommented:
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
dubisteamAuthor Commented:
I can't connect to SQL with that login using SSMS but they are there under security -> logins. How come ?
0
Andrei TeodorescuBusiness OwnerCommented:
provide a screenshot with the SSMS login box
0
dubisteamAuthor Commented:
Screenshot attached
SSMS-error-screenshot.bmp
0
Andrei TeodorescuBusiness OwnerCommented:
this is weird ...
pls, another one with the SQL login (expand Security -> Logins ...)
0
dubisteamAuthor Commented:
Thought you would want that
Security-logins.bmp
0
Andrei TeodorescuBusiness OwnerCommented:
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
Andrei TeodorescuBusiness OwnerCommented:
right click on logins and ...
untitled.PNG
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
InfoPath

From novice to tech pro — start learning today.