+ Reply to Thread
Results 1 to 4 of 4

How to use ADO to issue query that more than 250 characters?

  1. #1
    Registered User
    Join Date
    07-21-2005
    Posts
    28

    How to use ADO to issue query that more than 250 characters?

    Hi!

    I am using ADO to retrieve data from ACCESS DB. However, my sql is more than 250 characters long but the .commandText field in ADODB.Command can only take 250 characters. My question is: with use of ADO, how can I issue query that is longer than 250 characters long?

    Please help me with this.

    Thanks,

    Aijun.

  2. #2
    Patrick Molloy
    Guest

    RE: How to use ADO to issue query that more than 250 characters?

    write a query in Access then just execute the query from your ADO


    "Ai_Jun_Zhang" wrote:

    >
    > Hi!
    >
    > I am using ADO to retrieve data from ACCESS DB. However, my sql is more
    > than 250 characters long but the .commandText field in ADODB.Command can
    > only take 250 characters. My question is: with use of ADO, how can I
    > issue query that is longer than 250 characters long?
    >
    > Please help me with this.
    >
    > Thanks,
    >
    > Aijun.
    >
    >
    > --
    > Ai_Jun_Zhang
    > ------------------------------------------------------------------------
    > Ai_Jun_Zhang's Profile: http://www.excelforum.com/member.php...o&userid=25474
    > View this thread: http://www.excelforum.com/showthread...hreadid=395967
    >
    >


  3. #3
    Dick Kusleika
    Guest

    Re: How to use ADO to issue query that more than 250 characters?

    Aijun

    I just executed a Command with a CommandText that was 412 characters long.

    --
    **** Kusleika
    Excel MVP
    Daily Dose of Excel
    www.*****-blog.com

    Ai_Jun_Zhang wrote:
    > Hi!
    >
    > I am using ADO to retrieve data from ACCESS DB. However, my sql is
    > more than 250 characters long but the .commandText field in
    > ADODB.Command can only take 250 characters. My question is: with use
    > of ADO, how can I issue query that is longer than 250 characters long?
    >
    > Please help me with this.
    >
    > Thanks,
    >
    > Aijun.




  4. #4
    Registered User
    Join Date
    07-21-2005
    Posts
    28

    Thank you.

    **** and Patrick,

    Thank you very much for let me know that the limitation for .Commantext is not 250 characters. It works now.

    Regards,

    Aijun.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1