RE: MSDASQL and ImportMixedTypes
- From: v-wywang@xxxxxxxxxxxxxxxxxxxx (WenYuan Wang [MSFT])
- Date: Thu, 20 Sep 2007 08:22:32 GMT
Hello Mac,
Thanks for your reply.
I reviewed your code again and reproduced the issue on my side.
I noticed your web application using OdbcConnection rather than
OleDBconnection. I'm afraid the key word "Extended Properties" is not
supported in ODBC Connect string. It is only available in OleDB Connect
string.
Therefore, the OdbcConnection will ignore the Extened Property (IMEX=1).
The text cells are empty in your application. Changing the schema of
DataTable doesn't help in this case. It is the because that the drive ( not
net application) eats the data.
The way to resolve this issue is using OleDb.
Would you please try the OleDbConnection (if it is possible for you)?
ocn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Ntt\MTC-WebApp\MTC\Daily.xls;Extended Properties=""Excel
8.0;HDR=Yes;IMEX=1""";
Hope this helps. Please try the OleDbConnection (if it is possible for you)
and let me know the result. We are glad to assist you.
Have a great day,
Best regards,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- References:
- RE: MSDASQL and ImportMixedTypes
- From: WenYuan Wang [MSFT]
- RE: MSDASQL and ImportMixedTypes
- Prev by Date: RE: MSDASQL and ImportMixedTypes
- Next by Date: RE: MSDASQL and ImportMixedTypes
- Previous by thread: RE: MSDASQL and ImportMixedTypes
- Next by thread: RE: MSDASQL and ImportMixedTypes
- Index(es):
Relevant Pages
|
|