views:

146

answers:

1

How can I cast a bigint variable to a string?

DECLARE @id bigint
+5  A: 
select CAST(@id as varchar(max))
RedFilter