Solved

ADO.Net sql connection to a SQL Sever 2012

Posted on 2014-09-11
2
144 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 45

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

706 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

20 Experts available now in Live!

Get 1:1 Help Now