User Profile

Collapse

Profile Sidebar

Collapse
pkoeppe
pkoeppe
Last Activity: Dec 20 '07, 07:03 AM
Joined: Dec 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • pkoeppe
    replied to Problem with DB2
    in .NET
    Does nobody have an idea?

    That's the way I do my requests now, but also there is the problem that for each request a new real connection is opened and not really closed. My DBA says there are x connections after x requests. How can I avoid this? How can I clear the connection to the DB really???

    Code:
    public DataTable Request()
    {
      try
      {
        using (OleDbConnection connection = new OleDbConnection(Constants.DB2_CONNECTION_STRING))
    ...
    See more | Go to post

    Leave a comment:


  • pkoeppe
    replied to Problem with DB2
    in .NET
    But why it works in the first 8 minutes? In the first 8 minutes I also send requests and it works, after 8 minutes (the request is 100% the same) I get the error. Why???

    For a work around I open a new connection for each request and close the connection after the request. But here the connection seems not to be closed really. The connection state is closed but the database says there is still a connection. After some request I get...
    See more | Go to post

    Leave a comment:


  • pkoeppe
    started a topic Problem with DB2
    in .NET

    Problem with DB2

    Hello

    I have the following problem. When I start my program (C#) I create an OleDbConnection to a DB2 and use this connection for different requests. But after about 8 minutes I get the following error: "OleDbExcep tion System.Data.Ole Db.OleDbExcepti on: [DB2/6000] SQL0551N "xxx" does not have the privilege to perform operation "EXECUTE" on object "NULLID.yyy ". SQLSTATE=42501" . What does that mean???...
    See more | Go to post
No activity results to display
Show More
Working...