+ Reply to Thread
Results 1 to 2 of 2

Thread: VB6 Connection COM Object

  1. #1
    Super Sarcasm Mistress mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere's Avatar
    Join Date
    Mar 2008
    Location
    Wide Awake In Dreamland
    Posts
    830
    Rep Power
    8

    VB6 Connection COM Object

    I use a .dll COM Object for my connection/recordset for SQL Server in an ASP Web application. We currently have an app that the query takes a bit to run, so we're getting a lot of TimeOut errors. Is there a way to increase the timeout without having to edit the COM Object, recompile and re-register the DLL on the webserver?

    This com object contains a recordset function as well as the connection string. So in our ASP page we just use
    Code:
    set obj = server.CreateObject("DataAccess.clsDataAccess")
    strSQL = "SELECT * FROM tbl_TableName"
    set rs = obj.fnSQL_RS(strSQL)
    set obj = nothing
    
    I wasn't sure whether to post this in VB or ASP, so here it is.
    Quote of the Month:
    INSIGHT: When the going gets tough, the tough get going. The smart left a long time ago.

    Questions to Ponder:
    Are people more violently opposed to fur rather than leather because it's much easier to harass rich women than motorcycle gangs?

    iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
    copyright © 2008 sbenj69

    Sarchasm: The gulf between the author of sarcastic wit and the person who doesn't get it.

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    After reviewing the code, I don't see any properties that are made available for you to do this. Having said that, I would edit the COM object and provide such properties so you can may pass the connection timeout as a parameter to your methods for queries you need more time for.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


+ Reply to Thread

Similar Threads

  1. Connection Time-out
    By harish in forum SQL Server Reporting Services Help
    Replies: 10
    Last Post: May 29th, 2009, 01:30 AM
  2. Database Connection Problem
    By todd2006 in forum .NET Development
    Replies: 1
    Last Post: April 7th, 2009, 02:08 PM
  3. Object reference not set to an instance of an object
    By Shem in forum .NET Development
    Replies: 4
    Last Post: July 22nd, 2008, 05:59 AM
  4. Object reference not set to an instance of an object
    By jmurrayhead in forum .NET Development
    Replies: 1
    Last Post: May 29th, 2008, 11:16 AM

Bookmarks

Posting Permissions

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

SEO by vBSEO