Coffeehouse Post

Single Post Permalink

View Thread: Why keep ConnectionString in Web Tier
  • User profile image

    Why keep it in web.config, I can not access it in my business layer (seperate class library). I am using data access block and SQL Helper asks for connection string as input param. I dont wan to supply this everywhere as it is going to be the same through out the application. 

    so where do i store my connection string ? I dont want to pass it though my web layer, why should web layer know anything about data base connections.