CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    5

    CRecordset probelem

    Hello ,
    I create a CDatabase object in thread1 , I open a connection to data base in thread1 , I create a Recordset in thread one using this database object , all is success.
    I use the same database object in thread 2 , the connection was alreadu made in thread1 , I create a RecorSet object using this CDatabase in thread2 , I say
    RecordSet.Open() it hangs .

    WHy ?
    What should I do , WHat is wrong ?





  2. #2
    Join Date
    Jul 2001
    Location
    MA, USA
    Posts
    3

    Re: CRecordset probelem

    if you are using oracle, oracle allows only one query per connection at any point of time.
    so you are trying to use the same database connection in both the threads which translates to more queries per connection and oracle will
    process the queries in that db connection serially.


  3. #3
    Join Date
    Jul 2001
    Location
    MA, USA
    Posts
    3

    Re: CRecordset probelem

    provided your query in thread1 is still in progress and you are trying to open another recordset in thread2


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured