New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

DNN 7.1 Connecting to External DB

Return to previous page

  • 12/27/2013
  • 2354 Views

Question:

Mark Hollas long time ago
I am trying to connect to an external db using IDataContext ctx = DataContext.Instance(connectionString)

But I get an error saying

Can't find a connection string with the name 'Data Source=myServerIP;Initial Catalog=myDBName;User ID=myUserName;Password=myPassword'

I am able to connect via SQL server using the credentials but not through dnn. What am I doing wrong?

DNN 7.1 Connecting to External DB

Mark Hollas
Mark Hollas long time ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member