Quantcast
Channel: Silk Test - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 625

Not able to read data from excel

$
0
0

 Hello,

 

I was able to read data from an excel upto friday but from today the same script is giving the error as

*** Error: (HY000) [Microsoft][ODBC Excel Driver] Reserved error (-5016); there is no message for this error.

Not able to figure out where is the problem.

 

 

Below is the snippet

        [ ] List of List of String lslsData
        [ ] int i
        [ ] List of String lsData
        [ ] HDATABASE hdbc
        [ ] HSQL hstmnt
        [ ] String Sheet_name="Credentials"
        [ ]
        [ ] hdbc = DB_Connect ("DRIVER=Microsoft Excel Driver (*.xls); DBQ={sInputFile}")
        [ ] hstmnt = DB_ExecuteSql(hdbc,"Select * from [{Sheet_name}$]")
        [-] while(DB_FetchNext(hstmnt,lsData))
            [ ] ListAppend(lslsData,lsData)

 

Thanks

Kumar


Viewing all articles
Browse latest Browse all 625

Trending Articles



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