Can't Get Sql Connection

  • Thread starter Thread starter Steven C
  • Start date Start date
S

Steven C

Hello:

I have a C# app that has a class called DataAccess that handles the
SqlClient based connection to a MSDE instance on my laptop (MSDE
Release A). I can access the database that I created from a Foxpro
app, but when I try to access it from the C# app, I get an error "Sql
Server doesn't exist," etc. This very same code works on my box at
work, but I can't make the connection on the laptop. The application
appears to be using old connection string (built into a dll), instead
of the new one.

Does anyone have any ideas here?

Thanks!
Steven
 
Steven,
Aside from the obvious, which is "don't hard-code connection strings into
compilable code, read them from a configuration file", I can't think of
anything you might do here other than try to Reflectorize your DLL back into
the language of your choice and refactor it.
Peter
 
Back
Top