esb01
01-10-2005, 03:54 AM
I need to fill a dataset with multiple resultsets. I found online examples like this -
SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM customers;" + "SELECT * FROM products", connectionString);
da.Fill(ds,"MyTable");
But they all have been written in C# for SQL Server.
When I try it in VB.NET using OleDB -
OleDBDataAdapter da = new OleDBDataAdapter("SELECT * FROM customers;" + "SELECT * FROM products", connectionString)
da.Fill(ds,"MyTable")
I get an error "Characters found after the end of the SQL statement"
Does anybody know how to make it working? Thanks
SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM customers;" + "SELECT * FROM products", connectionString);
da.Fill(ds,"MyTable");
But they all have been written in C# for SQL Server.
When I try it in VB.NET using OleDB -
OleDBDataAdapter da = new OleDBDataAdapter("SELECT * FROM customers;" + "SELECT * FROM products", connectionString)
da.Fill(ds,"MyTable")
I get an error "Characters found after the end of the SQL statement"
Does anybody know how to make it working? Thanks