sql server - Getting empty data when trying to access database from sqlserver using vb.net -


i kind of new vb.net... please excuse me if noob question... have been trying access data database create crystal report.. unfortunately, when trying access data database, returning nothing... @ report.setdatasource(ds), returning exception, "the report have no tables..." have searched lot in web.. couldnt solve issue...

sample code given below

 using cs = new sqlconnection("connectionstring")             dim sql = "select barcode dbo.productrqst"             using cmd = new sqlcommand(sql, cs)             cmd.commandtype = commandtype.text             cs.open()             dim da sqldataadapter = new sqldataadapter(cmd)             dim ds new dataset             da.fill(ds)             dim report new rptproductrqst()             report.setdatasource(ds)             crystalreportviewer1.reportsource = report             crystalreportviewer1.refresh()             end using         end using 


Comments