Web and Mobile Apps Codeware
asp.net, mvc, sql server, android, JavaScript, Jquery, AngularJS, php
Pages
(Move to ...)
Home
HTML Q&A
Dotnet Q&A
Sql Server Q&A
▼
Tuesday, August 6, 2013
Check Data-length of the all the data in the column in Sql Server | query to check size of all the data present in the column
Taking an Example , Suppose we want to check the data-size of all the data present in a column for a Employee table :
Query :
SELECT DATALENGTH(CUSTOMER_ID) AS EMP_ID_LENGTH ,
DATALENGTH(EMPLOYEE_NAME) AS EMPLOYEE_LENGTH,
*
FROM EMPLOYEE_TABLE
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment