I am getting message whenever i want to add new data into the database that either the database or object is not ready to upload new data. I can do the same with sql querry but not through asp. Will someone solve this for me please
This is regarding asp programming with database?
heres some code from a old ASP.NET application I found (the database connection string should be 1 line)
Dim Public DBS as String = "PROVIDER=Microsoft.Jet.OLEDB.
4.0; DATA Source=c:\DataBase.mdb"
Dim myconnection as oleDbConnection = new oleDbconnection(DBS)
myConnection.open()
Dim myCommand as oleDbCommand = New OleDbCommand("Select * from Threads", myConnection)
Dim myDataReader as oleDbDataReader = myCommand.ExecuteReader()
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment