Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default I need to execute the SQL.Request with SQL strings larger than 512

The SQL.Request external function in Excel 2003 has an SQL string too short.
I need to execute the SQL.Request with SQL strings larger than 512 or more.

Is there a way to do it?
How can I do it?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default I need to execute the SQL.Request with SQL strings larger than 512

Hi Xavier,

Xavier wrote:
The SQL.Request external function in Excel 2003 has an SQL string too
short. I need to execute the SQL.Request with SQL strings larger than
512 or more.

Is there a way to do it?
How can I do it?


You could change your methodology to use a QueryTable instead of worksheet
functions. To do this, select Data | Import External Data -- New Database
Query, then follow the prompts. It's pretty easy and powerful. If you need
more than that will do, you may have to look into programmatically
retrieving your data using VBA code.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default I need to execute the SQL.Request with SQL strings larger than 512

What database? Look into ADO.

Tim


"Xavier" wrote in message
...
The SQL.Request external function in Excel 2003 has an SQL string too

short.
I need to execute the SQL.Request with SQL strings larger than 512 or

more.

Is there a way to do it?
How can I do it?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default I need to execute the SQL.Request with SQL strings larger than 512

Have you tried making the argument for the sql string be a reference to
multiple cells (continuous block) and broken up your sql string so that each
part is less than 155 characters.

I haven't tested this, but it seems to me it does work.

--
Regards,
Tom Ogilvy

"Xavier" wrote in message
...
The SQL.Request external function in Excel 2003 has an SQL string too

short.
I need to execute the SQL.Request with SQL strings larger than 512 or

more.

Is there a way to do it?
How can I do it?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default I need to execute the SQL.Request with SQL strings larger than

Thanks Tom for your answer, but I have another problem right now, becasue I
tray to ejecute the commnad with a simple select statement and I received a
syntax error message. As a mather of fact, I am not sure if the syntax that I
am Using is ok.

"Tom Ogilvy" wrote:

Have you tried making the argument for the sql string be a reference to
multiple cells (continuous block) and broken up your sql string so that each
part is less than 155 characters.

I haven't tested this, but it seems to me it does work.

--
Regards,
Tom Ogilvy

"Xavier" wrote in message
...
The SQL.Request external function in Excel 2003 has an SQL string too

short.
I need to execute the SQL.Request with SQL strings larger than 512 or

more.

Is there a way to do it?
How can I do it?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find and replace numeric strings in larger text strings Mr Molio Excel Worksheet Functions 8 November 9th 11 05:17 PM
How to find number of pairs of strings from list of strings? greg_overholt Excel Worksheet Functions 5 January 27th 06 10:42 PM
How can I count strings within strings Paul W Excel Worksheet Functions 4 June 14th 05 12:39 PM
Finding strings within strings Rod[_6_] Excel Programming 1 December 2nd 03 05:34 PM
Finding strings within strings Rod[_6_] Excel Programming 1 December 2nd 03 05:19 PM


All times are GMT +1. The time now is 04:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"