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.
AskSQLTeam Ask SQLTeam Question
0 Posts
madhivanan Premature Yak Congratulator
22864 Posts
Kristen Test
22859 Posts
DECLARE @intOutput int, @strSQL nvarchar(4000), @strHEX varchar(100)SELECT @strHEX = 'AB' -- Some hex number to testIF LEFT(@strHEX, 2) <> '0x' SELECT @strHEX = '0x' + @strHEXSELECT @strSQL = 'select @intOutput = CAST(' + @strHEX + ' as int)'EXEC sp_ExecuteSQL @strSQL, N'@intOutput int OUTPUT', @intOutput OUTPUTselect @intOutput
SQLTeam.com Articles via RSS
SQLTeam.com Weblog via RSS
- Advertisement -
Articles
Forums
Blogs
Contact Us
About the Site