Groups | Blog | Home
all groups > dotnet ado.net > march 2008 >

dotnet ado.net : TIMESTAMP parameter: SqlDbType.Timestamp or SqlDbType.VarBinary?


TR
3/18/2008 12:37:03 PM
When using VB.Net, what type do you choose for a TIMESTAMP parameter?

SqlDbType.Timestamp

OR

SqlDbType.VarBinary


And what size do you enter? 8?


Regards
Jim Rand
3/19/2008 2:37:11 PM
If you are using a MS SQL Server timestamp for concurrency conflict
checking, cast the timestamp as an int.

AddThis Social Bookmark Button