Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Data (Time) returned as 0 for SQL database connections

$
0
0

Hi

I have a workbook connection to an SQL server, extracting 3 columns. The SQL shows the timestamp of all individuals passing through an entry point.

1) ID number (Tagged to individuals)

2) Date (of entry)

3) Time (of entry)

I'm using Showcase Query 8.0 match the data. 

When I was using Excel 2007, the time column was returned with the correct information. (eg, 6:26AM). However, when my excel was upgraded to 2010, the time column returned 0.

I tried using IMEX=1 but it didn't work.

The connection string is as follows:

"

DRIVER={iSeries Access ODBC Driver};SIGNON=;SSL=;CONNTYPE=2;QRYSTGLMT=-1;PKG=QGPL/DEFAULT(IBM),2,0,1,0,512;LANGUAGEID=ENU;DFTPKGLIB=QGPL;DBQ=QGPL;SYSTEM=SBSYSI-HOST;HDR=YES;IMEX=1;Extended Properties=Excel 12.0 Xml;

"

The command text is as follows (edited):

"

SELECT 
CRID,
CRDATE,
CRTIME 
FROM 
SMSDTA.VFPA VFPA
WHERE 
ID = ?

"

Please help. Thanks. 


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>