You need to use the DATALENGTH T-SQL function:
SELECT DATALENGTH(myTextField) AS lengthOfMyTextField
SELECT DATALENGTH(myTextField) AS lengthOfMyTextField
DELETE
FROM MyTable
WHERE ColumnID NOT IN
( SELECT MIN(ColumnID)
FROM MyTable
GROUP BY Column1, Column2, ..., ColumnN )
select top 10 *
from MyTable
-- duh!
select top 10 *
from MyTable
order by NEWID()
select top 5 *
from MyTable
order by ColumnID desc
select top 5 *
from ( select *
from MyTable
order by newId() desc)
The author didn't appreciate my comment - meant to be a joke - and canceled it mentioning in another comment that some retard posted an inappropriate comment forcing him to moderate his blog.This is a very nice post, short enough to be readable and useless enough for me to be able to enjoy it.I really like the concept behind this site - I'll probably start another blog and call it "Fags and The Military Got My .NET", instead of horror movies I'll post military posters with subtle homosexual hints.
REM US Operating System: set yyyymmdd=%date:~10%%date:~4,2%%date:~7,2%
REM EU Operating System: set yyyymmdd=%date:~6,4%%date:~3,2%%date:~0,2%
REM EU Operating System
set yyyymmdd=%date:~6,4%%date:~3,2%%date:~0,2%
ECHO myConsoleApp output: >> myLog_%yyyymmdd%.txt
myConsoleApp.exe >> myLog_%yyyymmdd%.txt
I heard Papa tell MamaLet that boy copy paste from SQLServer2005 to Excel
It's in himAnd it got to come out
John Lee Hooker - Boogie Chillen (1948)