Solved

ADO.Net sql connection to a SQL Sever 2012

Posted on 2014-09-11
2
147 Views
Last Modified: 2014-09-18
I have a sql server installed in my pc and I'm trying to get some help with the following connection string... I'm getting an error on myConnection.Open()

            // String conString = @"Data Source=YGUYON-PC\YGUYON28;Initial Catalog=BobTaper;Persist Security Info=True;User ID=xx;Password=xx;Pooling=false;";

           //

            myConnection.Open();

Database screen shotDatabase screen shotDatabase screen shot 2Database screen shot 3
0
Comment
Question by:yguyon28
2 Comments
 
LVL 7

Assisted Solution

by:Camillia
Camillia earned 250 total points
ID: 40317922
I think since you have Windows Authentication, you need to either have Trusted_Connection=Yes attribute or  Integrated Security=SSPI,
0
 
LVL 47

Accepted Solution

by:
Vitor Montalvão earned 250 total points
ID: 40318685
Camilla is right. With Windows Authentication you don't need to provide a user and a password. Will run with the current user credentials. But still miss the provider.
0

Featured Post

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.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

823 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