Warum muss das immer so kompliziert sein : S
Also sonst verwende ich :
C#-Quelltext
1: 2: 3:
| OleDbConnection Connection = null; String connectionString = "Provider=OraOLEDB.Oracle; Data Source=localhost/xe; User Id = SCOTT ;Password = tiger; OLEDB.NET=True;"; Connection = new OleDbConnection(connectionString); |
Warum ich das jetzt anders mache ?
SqlCommand braucht man um Proceduren aufzurufen, folgedessen auch die SqlConnection
C#-Quelltext
1: 2: 3:
| SqlCommand cmd = new SqlCommand(); cmd.Connection = Connection; cmd.CommandType = CommandType.StoredProcedure; |
Heist das ich kann mit Oracle keine SqlCommands verwenden ohne Oracle Data Provider for .NET zu installieren ?
Mfg
Moderiert von
Th69: Quote- durch C#-Tags ersetzt