I have a query that I try in Microsoft SQL Server Management Studio, and this query work fine:
DECLARE @tableVariable TABLE (fecha DATE, valor Float);
INSERT @tableVariable SELECT fecha, valor FROM table1;
SELECT * FROM @tableVariable
When I go to VisualStudio and paste this query in sqldatasource, not work.
Anybody can help me?
Thanks
SOLVED
Finally, the problem is solved remove the tag <SelectParameters> <asp:Parameter Name = "tableVariable" /> </SelectParameters>
into sqldatasource.
Thanks to all!
SELECT fecha, valor FROM table1
in SqlDataSource? I don't think it supports multiple SQL statements. – w0lf Jan 30 '13 at 8:22