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 |
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2008-04-08 : 10:50:00
|
| Hi,I cant understand what is the meaning of & ~. I have seen the same in following query. Could any one explain me please.select p.action & ~convert(int, 0x10000000), N'column' = col_name(p.id, p.colid), p.uid, N'username' = user_name(p.uid), p.protecttype, o.name, N'owner' = user_name(o.uid), p.id, N'grantor' = user_name(p.grantor) from #output p, dbo.sysobjects o where o.id = p.id order by p.uid, p.id, p.protecttype, p.actionThanks-- Krishna |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-04-08 : 10:51:48
|
They are bitwise operators (bitwise AND &, or |, NOT ~, XOR ^). Please consult Books Online for more information. E 12°55'05.25"N 56°04'39.16" |
 |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2008-04-08 : 10:54:36
|
| Thanks Peso!! Let me check with BOL!!!Thanks-- Krishna |
 |
|
|
|
|
|
|
|