Hallo,
> Set RS = Server.CreateObject("ADODB.Recordset")
> RS.ActiveConnection = MM_User_STRING
> RS.Source = "SELECT * FROM Mitarbeiter WHERE ID <> 1"
> RS.CursorType = 0
> RS.CursorLocation = 2
> RS.LockType = 1
> RS.Open()
>
> WHILE not RS.eof and not RS.BOF
> ..........
> ..........
> WEND
>
nein, das ist abgeschafft.
Ein einfaches Beispiel, um Northwind tabellarisch auszugeben:
string strConn ="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\somepath\Northwind.mdb";
string strSQL ="SELECT Productname, CompanyName, UnitPrice FROM Suppliers
INNER
JOIN Products ON (Suppliers.SupplierID = Products.SupplierID) WHERE
UnitPrice <= $70";
OleDbConnection MyNWConn = new OleDbConnection(strConn);
DataSet MyDataSet = new DataSet();
OleDbDataAdapter oCommand = new OleDbDataAdapter(strSQL,MyNWConn);
oCommand.Fill(MyDataSet,"Lieferanten");
MyNWConn.Close();
//DataGrid dg
dg.DataSource = MyDataSource;
dg.DataBind();
Gruss
Alex
_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net