Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kakali
 
Posts: n/a
Default Error when getting External data in Excel

I am trying to populate multiple cells in an excel sheet with the results of
a query executed on a sybase database.
I get the query parameters, which I get from some pre-defined cells in the
Excel sheet. Obviously, the parameter values vary and accordingly the query
executed gets different results.
This works perfectly or some cells, but for other cells I get this error:
[INTERSOLV][ODBC SQL Server driver] Timestamp parameters with zero scale
must have a precision of 13, 16, or 19. Parameter number: 3, precision:34.

Parameter #3 is a date and I am passing values like '4/1/2005' etc to it.
Not sure why it fails selectively, and does not even consistently fail for a
given value for the parameter - i.e. it can pass for one cell where
param3='4/1/2005' and fail for another cell where param3 is the same, but
param2 is different. Checked the db - the date field corresponding to param3
a null precision & null scale.

Query executes fine if executed directly on the sql db.
Thanks for any suggestions.


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
Getting Excel Data from One Sheet to Another.... Robin Excel Discussion (Misc queries) 2 April 21st 05 01:15 PM
Merging data from an excel worksheet into an excel template pkasler Excel Worksheet Functions 1 March 13th 05 04:36 AM
Excel: Use a name with external workbook reference for data valida Fishyken Excel Worksheet Functions 3 March 11th 05 10:24 PM
How do I create a list in excel that contains external data? bill@bb Excel Discussion (Misc queries) 1 February 15th 05 02:45 AM
How do i copy columns of data in notepad into microsoft excel? JP New Users to Excel 2 February 10th 05 09:47 PM


All times are GMT +1. The time now is 07:03 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"