By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,882 Members | 2,082 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,882 IT Pros & Developers. It's quick & easy.

New Server (Brinkster) doesn't support DSN connection

P: 1

I must migrate my website.

In the old server I had on web.config file the following connection:
Expand|Select|Wrap|Line Numbers
  1. <connectionStrings>
  2.   <add name="ConnectionString" connectionString="Dsn=ecm_sql;SERVER=localhost;UID=sqladmin;PWD=sql1024"
  3.    providerName="System.Data.Odbc" />
  4.  </connectionStrings>
Now, my new server (brinkster), does not support DSN connection.
Can someone tell me how can i make the connection?

Dec 19 '12 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 100+
P: 465
You should be able to change your connection string to look like this (just remove the DSN part)

Expand|Select|Wrap|Line Numbers
  1. <add name="ConnectionString" connectionString="SERVER=localhost;DATABASE=YourDBName;UID=sqladmin;PWD=sql1024"
  2.    providerName="System.Data.Odbc" />
Dec 20 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.