Error connecting to a SQL database

Tags:
Connection Issues
SQL Database
I receive the following errors when I attempt to connect to a SQL Server database on my home computer: 1) Keyword not supported: 'intigreted security'? 2) An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) This is the code of ado.net that I want to connect with: SqlConnection connection = new SqlConnection(); connection.ConnectionString = "Data Source=Local Host;Initial Catalog=AdventureWorks;"; connection.Open(); SqlCommand cmd = new SqlCommand("Select * from emp_", connection); SqlDataReader myReader = cmd.ExecuteReader(); while(myReader.Read()) { comboBox1.Items.Add(myReader[0].ToString());

Answer Wiki

Thanks. We'll let you know when a new response is added.

<b>intigreted </b>security’

Try integrated

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: