Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AY Xu
 
Posts: n/a
Default Sqlrequest only return one value

Excel 2003 SP2, xlodbc.xla installed. use sqlrequest connect to ms sql
7.0

In one excel cell, I put bellow formula:
=SQLREQUEST("DSN=sql-sg;UID=scala;PWD=scala;Database=scalaDB",
"select SC11003, SC11007, SC11004, SC11005, SC11015 from SC115300 where
SC11001 = '33552000' order by SC11001",,2,FALSE)

If I run above sql query from SQL Query Analysis, it returns:
0053900060 Water Technology AG & CO KG 76 -768.0 1
0000001997 76 1728.0 A
0053900061 Water Technology AG & CO KG 76 -1920.0 1
0000001998 76 1920.0 A
0000002010 76 2400.0 A
0053900041 Water Technology AG & CO KG 76 -2400.0 1
0053900062 Water Technology AG & CO KG 76 -1920.0 1

But in excel only return 0053900060. it looks like Excel can't display
whole recordsets.
Any clue?

thanks in advance

Xu Zuoyin

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
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Huge problem with "if" formula's [email protected] Excel Discussion (Misc queries) 16 July 20th 05 07:20 PM
Excel - return a picture or range rows as the result of a formula juststarting Excel Worksheet Functions 1 July 4th 05 12:59 AM
How do create a formula to evalute a # to return 1 of 4 conditions Larry Excel Worksheet Functions 4 May 29th 05 12:58 AM
if the value of a cell in a range is not blank, then return the v. kvail Excel Worksheet Functions 2 April 8th 05 10:07 PM


All times are GMT +1. The time now is 12:04 AM.

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"