Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Delinda
Constraint Violating Yak Guru
315 Posts |
Posted - 2009-12-14 : 01:27:47
|
From my SQL statement,declare @tEmployee table(TrnxID int primary key identity(1,1),Nme varchar(100),RowID rowversion)insert into @tEmployee(Nme) values('Mike Tyson')insert into @tEmployee(Nme) values('Hollyfield')SQL 1 - select * from @tEmployeethe result as follow,1 Mike Tyson 0x00000000000007FA2 Hollyfield 0x00000000000007FBSQL 2 - select TrnxID,Nme,cast(RowID as BigInt) from @tEmployeethe result as follow,1 Mike Tyson 20422 Hollyfield 2043My question, is that SQL 1 and SQL 2 is equal? I convert RowVersion to BigInt because i want to make it my front-end (ASP.NET) can read it easily. |
|
|
|
|