What is the correct connection string for SQL 2000 server in entity framework
Posted
by
M-Askman
on Stack Overflow
See other posts from Stack Overflow
or by M-Askman
Published on 2013-06-25T03:55:43Z
Indexed on
2013/06/25
4:21 UTC
Read the original article
Hit count: 173
I success to use entity framework for MySQL but reverse code can not be used with SQL Server 2000, then i guess to change connection string to connect SQL Server 2000, however, got error
<add name="BetterContext" connectionString="Data Source=server2;Initial Catalog=GoodDB;User ID=sa;Password=hello;MultipleActiveResultSets=True;"
providerName="System.Data.SqlClient" />
An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct
public partial class BetterContext : DbContext
{
static BetterContext()
{
Database.SetInitializer<BetterContext>(null);
}
public livefeedContext()
: base("Name=BetterContext")
{
}
© Stack Overflow or respective owner