Afternoon Folk ...
have a query that is bombing out w/ an error message that read:
Server: Msg 1540, Level 16, State 1, Line 1
Cannot sort a row of size 8550, which is greater than the allowable maximum of 8094.
This is the Query:
SELECT DISTINCT p.Alias, p.Name, p.Description, m.Keywords,
s.store_image
FROM Partner p
NNER JOIN MerchantKeywordsAgr m ON p.PartnerId =
m.PartnerIdMerch
INNER JOIN StoresNew.dbo.stores_master_lo s ON p.Alias =
REPLACE(s.store_link, 'usb/ProxyFrameset.jsp?Vendor=', '')
Here is the table structure:
CREATE TABLE [dbo].[MerchantKeywordsAGR] (
[PartnerIdMerch] [numeric](12, 0) NOT NULL ,
[Keywords] [varchar] (8000) COLLATE
SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[Nbr_Of_Keywords] [numeric](18, 0) NULL
) ON [PRIMARY]
we do have records with over 7900 bytes in the Keywords field, so i cannot reduce the size of the field.
Any pointers would be great!
Thanks
have a query that is bombing out w/ an error message that read:
Server: Msg 1540, Level 16, State 1, Line 1
Cannot sort a row of size 8550, which is greater than the allowable maximum of 8094.
This is the Query:
SELECT DISTINCT p.Alias, p.Name, p.Description, m.Keywords,
s.store_image
FROM Partner p
NNER JOIN MerchantKeywordsAgr m ON p.PartnerId =
m.PartnerIdMerch
INNER JOIN StoresNew.dbo.stores_master_lo s ON p.Alias =
REPLACE(s.store_link, 'usb/ProxyFrameset.jsp?Vendor=', '')
Here is the table structure:
CREATE TABLE [dbo].[MerchantKeywordsAGR] (
[PartnerIdMerch] [numeric](12, 0) NOT NULL ,
[Keywords] [varchar] (8000) COLLATE
SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[Nbr_Of_Keywords] [numeric](18, 0) NULL
) ON [PRIMARY]
we do have records with over 7900 bytes in the Keywords field, so i cannot reduce the size of the field.
Any pointers would be great!
Thanks