I am trying to create a table with the below query
Create Table PerformaceReport
(
campaignID int,
keywordID bigint,
keyword varchar(8000),
avgPosition decim
The total size of all fields in the table is more than the limit, 65535, that's why you are getting this error.
You should use text
type instead of varchar
for long strings. Replace all varchar(8000)
with text
, and it should work.
Or, even better, use appropriate data types instead of the "too large" ones. You don't really need 8000 characters to store currency
, do you?