Wie kann ich ein Dataset mit mehreren DataTables mit einem Datenbankzugriff füllen, also mit "einer SQL Abfrage"? SqlDataAdapter da=new SqlDataAdapter("SELECT * FROM Orders;SELECT * FROM Employees",sqlconn); Einfach die verschiedenen Select Statements durch Strichpunkte getrennt aneinanderreihen. Come popolare un Dataset usando piu query con una sola istruzione ? - Tips & Tricks - dotNetHell: "SqlDataAdapter da=new SqlDataAdapter('SELECT * FROM Orders;SELECT * FROM Employees',sqlconn);"
Latest Posts
Popular Posts
-
It's easy I thought, just select the Property of the EntityType and set the Default Value in the Properties window to: DateTime.Now ...
-
Had some discussions about Lists and controls, like Listbox and Listview, and sometimes its difficult to distinguish those. System.Win...
-
*Updated* 26. September 2010: Updated with comments from Adam Cogan *Updated* 27. September 2010: Updated the comparison between anonymo...


No comments:
Post a Comment