Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
5
Reply
Some time the same message. Need to resolv...
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Israel
7y
256
1
Reply
Hi,
I wrote these codes but why some time I receive this message and how can to resolv it please forever:
The connection was not closed. The connection's current state is open.
conn.Open();
OleDbCommand cmd = conn.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "select * from cadastramento order by ID";
cmd.ExecuteNonQuery();
DataTable dt = new DataTable();
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
da.Fill(dt);
conn.Close();
dGVCons.DataSource = dt;
dGVCons.CurrentCell = dGVCons.Rows[dGVCons.Rows.Count - 1].Cells[0];
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
Csharp and sql 2012
Encrypt and dECFRYPT THROUGH J QUERY AND ACTIONS