Database connection lost

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Naseer
    New Member
    • Feb 2008
    • 1

    Database connection lost

    Hi All
    I am building an application using web services for database manipulation.Wh en i call functions of webservice it always makes database connection and makes a new one.
    example:

    if obj is object of webservice.

    obj.Method1();
    obj.Method2();
    it loses the connection made in first method call and i have to make a new connection in second call.
    how can i maintain database connection.

    Regards:
    Naseer
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Do you have a common connection object (i.e. SqlConnection)?

    Comment

    Working...