question related to sqldataadapter.

  • Thread starter Thread starter archana
  • Start date Start date
A

archana

hi all

I have some doubts related to database handling in .net.

I am using sqldataadapter to update and insert rows into database.

What i want to know is at a time of inserting rows using
sqlqueryanalyser, is their any locking system used internally.

if yes what it is.

any help will be truely appreciated.

thanks in advance.
 
I assume you mean SqlDataAdapter vs "SQLQueryAnalyzer" in the last part of
your post.

I am not aware of any specific locking mechanism in using the Update method
of a SQLDataAdapter. If you are concerned about concurrency issues, one
solution is to use a timestamp (in SQL Server, "rowversion") column and
include this in the WHERE clause of your insert or update query / stored
proc. Then you can examine the RowErrors and other properties after the
update to see which rows were not inserted / updated.
Hope that helps.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top