What is the correct format to add a db2 connection string in a web.config

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karen2900
    New Member
    • Jul 2010
    • 1

    #1

    What is the correct format to add a db2 connection string in a web.config

    would the web.config/machine.config connection string look something like this:-


    <connectionStri ngs>
    <add name="DB2dbname " connectionStrin g="Data Source=Db2serve rname;uid=my userId;pwd=myus eridpawd;mode=S HARE;dbalias=DB 2TEST" providerName="S ystem.Data.OleD b.OleDbConnecti on"/>
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Create your connection string according to how the DB2 database is expecting it to be formatted (IBM DB2 9.5 info).

    Check out this article on the connectionStrin gs element in asp.net web.config for more information on how to correctly format this element.

    -Frinny

    Comment

    Working...