/* Sample to find the length of Data in each Column of a Table*/ SELECT DATALENGTH(NAME) as 'Name', DATALENGTH(VALUE) AS 'Record Value', DATALENGTH(TYPE) AS 'Type' FROM Sample_table |
/* Sample to find the Maxmimum length data in each Column of Table*/ SELECT MAX(DATALENGTH(NAME)) as 'Name', MAX(DATALENGTH(VALUE)) AS 'Record Value', MAX(DATALENGTH(TYPE)) AS 'Type' FROM Sample_table |
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
Subscribe by RSS
Subscribe by Email
|
|||
|
|
Subscribe by RSS
Subscribe by Email
0 comments :