vijithamar
Programmer
HI
i am trying to read sql server records exclusive...
but it is not working (sql server 2005 and vb.net)
this is my code
dim cmd As New OleDb.OleDbCommand
cmd.Connection = Conn
cmd.CommandText = "select batch.Stock from Batch WITH (XLOCK) order by BatchId"
dim dataredr As OleDb.OleDbDataReader = cmd.ExecuteReader
i am getting the records but not exclusive.
please help me.
i am trying to read sql server records exclusive...
but it is not working (sql server 2005 and vb.net)
this is my code
dim cmd As New OleDb.OleDbCommand
cmd.Connection = Conn
cmd.CommandText = "select batch.Stock from Batch WITH (XLOCK) order by BatchId"
dim dataredr As OleDb.OleDbDataReader = cmd.ExecuteReader
i am getting the records but not exclusive.
please help me.