New Server (Brinkster) doesn't support DSN connection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bkorg
    New Member
    • Dec 2012
    • 1

    New Server (Brinkster) doesn't support DSN connection

    Hello

    I must migrate my website.

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

    Thanks
    MBento
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    You should be able to change your connection string to look like this (just remove the DSN part)

    Code:
    <add name="ConnectionString" connectionString="SERVER=localhost;DATABASE=YourDBName;UID=sqladmin;PWD=sql1024"
       providerName="System.Data.Odbc" />

    Comment

    Working...