-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: LiveLifeKingSize11
Message 1 in Discussion
HI,
I am trying to reading a .csv file from a remote desktop. the connection
string that i am using is as follows: strConn = "Provider=MS Remote;"+"Remote
Server=//<ComputerName>/<FolederName>;" + " Remote
Provider=Microsoft.Jet.OLEDB.4.0;"+"Data
Source="+@"d:/trial/try1.csv"+";"+"Extended
Properties='text;HDR=Yes;FMT=Delimited'"; With this connection string i am
able to open the connection but when i try to fill the data set it gives me the
error: "Specified Cast is not valid" the line is da.Fill(ds); where 'da' is
the OleDbDataAdapter and 'ds' is the dataset The complete Block of code is as
follows: string strConn;
OleDbConnection conn ;
OleDbDataAdapter da; strConn = "Provider=MS Remote;"+"Remote
Server=//ind-spz4dxp612/trial;" + " Remote
Provider=Microsoft.Jet.OLEDB.4.0;"+"Data
Source="+@"d:/trial/try1.csv"+";"+"Extended
Properties='text;HDR=Yes;FMT=Delimited'"; conn = new OleDbConnection(strConn);
da = new OleDbDataAdapter("SELECT * FROM [TRY1.CSV]",conn);
da.Fill(ds);========== This Is The line which gives this error. Your help and
inputs will be appreciated.
Thanks.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]