T
Teo
Hi! Sorry for my many postings on this Newsgroup. I am new to ADO.NET and I
got Sceppa's book on ADO.NET. It's a great book but covers a lot on the
DataAdapter and Offline Data. Now, if I want to Insert Data into my MSDE
Database, can I do it without using the DataAdapter?
Here are the steps I use to insert the data.
Open Connection
Add Parameters, set direction and specify value.
Call my connection.ExecuteNonQuery()
Close the Connection.
Now, I keep getting this error on the Execute reader. I am in no point
calling a Reader for the table. I just specify my stored procedure (that
only have INSERT statements) and I just want to insert the values, not
retrieve anything.
This is the error I get "Additional information: ExecuteReader: Connection
property has not been initialized."
Do you know what might be causing this? I am using a SQLConnection and
SQLCommand. That's all.
Teo
got Sceppa's book on ADO.NET. It's a great book but covers a lot on the
DataAdapter and Offline Data. Now, if I want to Insert Data into my MSDE
Database, can I do it without using the DataAdapter?
Here are the steps I use to insert the data.
Open Connection
Add Parameters, set direction and specify value.
Call my connection.ExecuteNonQuery()
Close the Connection.
Now, I keep getting this error on the Execute reader. I am in no point
calling a Reader for the table. I just specify my stored procedure (that
only have INSERT statements) and I just want to insert the values, not
retrieve anything.
This is the error I get "Additional information: ExecuteReader: Connection
property has not been initialized."
Do you know what might be causing this? I am using a SQLConnection and
SQLCommand. That's all.
Teo