Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Limit of "8060" bytes per table row

$
0
0

I thought I understand the notion in the Title until I ran the query below. This query inserts a 5000 byte value into two columns in the same record and sql (2008) doesn't complain.  Please advise what is going on!  TIA, edm2

-- drop table table_1

create table table_1(
	[mychar1] [varchar](8000) NULL,
	[mychar2] [varchar](8000) NULL
)


insert into table_1 ( mychar1, mychar2)
values (replicate('a', 5000) , replicate('b', 5000))

select * from table_1

--  truncate table table_1

* Update* I just noticed that using   Replicate ('a', 50000) doesn't cause an issue either. I'll be reviewing the replicate documentation too.





Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>