SqlDataAdapter.FillSchema with stored procedure that has temporary table -
i'm running problem similar question here (display datatype , size of column sql server query results @ runtime) has not had solid solution.
i wonder if has found solution or work around it. can use sqldataadapter.fill() no problem, .fillschema() report error temp table create in stored procedure doesn't exist.
my goal able fill datatable data , schema source.
if not need dataset, 1 datatable, can use
datatable dt= new datatable(); dt.load(cmd.executereader());
for dataset, must @ least tell names of tables (this means number) sp returning.
dataset ds = new dataset(); sqldatareader sdr = cmd.executereader(); ds.load(sdr, loadoption.overwritechanges,"table1");
Comments
Post a Comment