Solved

ADO.Net sql connection to a SQL Sever 2012

Posted on 2014-09-11
2
149 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
[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
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 49

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

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…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

730 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