Top "Connection-string" questions

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

EntityFramework code-first custom connection string and migrations

When I create a context with a default connection string (as read from the app.config) the database is created …

entity-framework ef-code-first connection-string entity-framework-migrations
Why does an Entity Framework Connection require a metadata property?

I switched my DAL from using LINQ over to Entity Framework. Because my application connects to different databases depending on …

database entity-framework connection connection-string data-access-layer
C# Retrieving correct DbConnection object by connection string

I have a connection string being passed to a function, and I need to create a DbConnection based object (i.…

.net ado.net connection-string dbconnection
ADODB Connection String: Workgroup Information file is Missing?

I have a few data sources in access that I need to connect to programatically to do things with behind …

ms-access passwords connection-string adodb
pyodbc + MySQL + Windows: Data source name not found and no default driver specified

I am trying to connect to MySQL 5.6 on a Windows Server 2008 R2 localhost with pyodbc. I used the full installation …

mysql windows odbc connection-string pyodbc
Get the Server Name from Connection string Defined in App.config File?

I want to get IP Adress of ConnectionString's serverName from my app.config file and then ping it. Actually i …

c# connection-string
What is the difference between Trusted_Connection and Integrated Security in a connection string?

I'm curious what the difference between the token "Trusted_Connection" and "Integrated Security" in SQL Server connection strings (I believe …

sql-server connection-string
How to get connection string out of Azure KeyVault?

A hypothetical web-site currently connects using: public SqlConnection CreateConnection() { DbConnection connection = new SqlConnection(); connection.ConnectionString = GetConnectionString(); connection.Open(); return connection; } …

c# azure security connection-string azure-keyvault
Entity Framework Code First and Connection String Issue

I am getting this error when using Entity Framework 4.1 code first. I can not find any sources of what exactly …

entity-framework entity-framework-4.1 ef-code-first connection-string
The entry has already been added

All my Razors views have this error: The pre-application start initialization method Start on type WebMatrix.WebData.PreApplicationStartCode threw an …

c# asp.net asp.net-mvc connection-string webmatrix