>
> Grins - das ist ja auch die richtige Art - wenn du nen
> SqlServer nimmst - und auch eindeutig - die typsichere Art
> das zu machen!
;-)
das Sample funktioniert auch problemlos mit OleDbParametern/-Commands.
I.d.R. habe ich die Queries au�erdem im Access gespeichert und �bergebe
dann die Parameter - als CommandType nehme ich dann .StoredProcedure,
CodeBeispiel:
OleDbConnection MyNWConn =
new OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source="
+ Server.MapPath("../data/Nwind.mdb"));
DataSet MyDataSet = new DataSet();
OleDbDataAdapter oCommand = new OleDbDataAdapter();
OleDbCommand oledbcmd = new OleDbCommand();
oledbcmd.CommandType = CommandType.StoredProcedure;
oledbcmd.CommandText = "[Product Sales for 1995]";
oledbcmd.Connection = MyNWConn;
//hier ggf.
//oledbcmd.Parameters.Add(....);
//in der richtigen Reihenfolge
oCommand.SelectCommand = oledbcmd;
oCommand.Fill(MyDataSet,"Orders");
MyNWConn.Close();
return MyDataSet;
Gruss
Alex
Kommt zur .NET Community Conference in Karlsruhe
http://www.dotnetcommunityconference.com
*************************
_______________________________________________
This ASP.NET email is sponsored by:
UDEX ProMenu.Net - Die Software f�r Navigation - Jetzt kostenlos testen!
Tree- Style, Horizontal- Slide, Vertical- Slide. http://www.udexnet.com
_______________________________________________
Asp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net
*************************