Join Slack
Powered by
sql server, is it possible to determine how much s...
# sql
w
websolete
10/23/2023, 5:29 PM
sql server, is it possible to determine how much storage a particular column in a table is consuming (rather than the table as a whole)?
p
Patrick
10/23/2023, 5:39 PM
Yea I believe its
SELECT DATALENGTH(yourcolumn) AS daSize
w
websolete
10/23/2023, 5:48 PM
thanks, was hoping there was a dmv for it
websolete
10/23/2023, 5:48 PM
the table is 15gigs and most of it is in one col
s
Scott Steinbeck
10/23/2023, 5:55 PM
is it a json column?
w
websolete
10/23/2023, 5:56 PM
varchar(max) but used for json storage. not json datatype per se
Open in Slack
Previous
Next