Code:
declare @Temp Table(data text)
Insert Into @Temp Values(replicate('1',5000))
select datalength(data) from @temp
go
this returns 5000
now if we replicate 50000 what does this return?
Code:
declare @Temp Table(data text)
Insert Into @Temp Values(replicate('1',50000))
select datalength(data) from @temp
go
Denis The SQL Menace
--------------------
SQL Server Code,Tips and Tricks, Performance Tuning
SQLBlog.com, Google Interview Questions