Ask a questionAsk a question
 

AnswerHow do I connect/

  • Saturday, November 07, 2009 9:18 PMmreynol6 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    This has to be the dumbest question of all time however it is bugging me.  I have built a web service application using C# and connecting to my development SQL 2008 Express engine.  Now I want to port the dll to the production environment and connect to the production database.  How the heck does the dll know to connect to the production db now and not to my development db???

    Sorry.  I said it was dumb...

Answers

  • Sunday, November 08, 2009 2:05 AMMike Wachal - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    It doesn't know to connect to your production db, you have to change the connection string so that it points to the correct database server.

    Regards,
    Mike
    If this post answers your question, please mark it as an Answer - it will help others searching the forum. This posting is provided "AS IS" with no warranties, and confers no rights.

All Replies

  • Sunday, November 08, 2009 2:05 AMMike Wachal - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    It doesn't know to connect to your production db, you have to change the connection string so that it points to the correct database server.

    Regards,
    Mike
    If this post answers your question, please mark it as an Answer - it will help others searching the forum. This posting is provided "AS IS" with no warranties, and confers no rights.