Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many bytes in a varbinary field?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01284601
Message ID:
01284615
Vues:
11
>How can I find out how many bytes there are in a varbinary field using T-SQL code?
>Thanks,
>Einar
DECLARE @test varbinary(max)
SET @test = CAST('aaaa' as varbinary(max))
SELECT LEN(@test)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform