Web and Mobile Apps Codeware
asp.net, mvc, sql server, android, JavaScript, Jquery, AngularJS, php
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment