MSSQL - Useful query for my reference
This will me my reference of SQL statement. I will update this post if I find anything that I feel useful for me..and for you.
1. Check for temporary table and Drop table if exist.
IF object_id(’tempdb..#myTempTable’) IS NOT NULL drop table #myTempTable
2. Convert SQL string to HEX
select CONVERT(varbinary(100),’select getdate() as MyDateInHex’)
If you’re new [...]
