Top "Connection-string" questions

A string containing information necessary for connecting to a service, usually database.

Keyword not supported: "data source" initializing Entity Framework Context

I'm initializing Entity Framework Object context, and this gives me the keyword not supported error: metadata=res://*/MainDB.csdl|res://*/…

entity-framework connection-string
What is the point of "Initial Catalog" in a SQL Server connection string?

Every SQL Server connection string I ever see looks something like this: Data Source=MyLocalSqlServerInstance;Initial Catalog=My Nifty Database; …

sql-server database sql-server-2005 connection-string database-connection
System.Data.SqlClient.SqlException: Login failed for user

Working with my project in debug I have no issues. However running it in IIS I am getting this error: …

c# iis sql-server-2012 connection-string
keyword not supported data source

I have an asp.net-mvc application with the default membership database. I am accessing it by ADO.NET Entity Framework. …

asp.net entity-framework connection-string
Entity Framework change connection at runtime

I have a web API project which references my model and DAL assemblies. The user is presented with a login …

c# entity-framework asp.net-web-api connection-string
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'

I been strugling with this for 2 days now without comming any closer to solution. I have read 20-30 threads alteast …

asp.net sql-server-2008 iis-7 web-config connection-string
How should I edit an Entity Framework connection string?

I recently had to edit my app.config file to change the connection string for an Entity Framework data model (.…

entity-framework entity-framework-4 connection-string app-config
Escape quote in web.config connection string

I have a connection string in my web config: <add name="MyConString" connectionString="Server=dbsrv;User ID=myDbUser;Password=…

asp.net escaping web-config connection-string
SQL providerName in web.config

We are using ASP.NET (Framework 2) and setting database connection strings (SQL2005) in web.config. We are currently using "providerName=…

asp.net sql-server-2005 connection-string
Get Connection String from Web.config in asp.net

I want to know the ways to get connection string from web.config file in asp.net. I just only …

c# asp.net database connection-string