您好我正在通過Salesforce從Data Manager中獲取數據,因此數據類型和限制在Salesforce中設置,我無法控制。我想知道如何限制進入和插入MS SQL的數據量。這是錯誤:SQL超出允許的最大錯誤
[42000]Microsoft SQL Server Native Client 10.0
The size (32000) given to the column 'Description' exceeds the maximum allowed for any data type (8000).
這是我的查詢其拉數據:
SELECT "Id",
"IsDeleted",
"Name",
"ParentId",
"Type",
"Status",
"StartDate",
"EndDate",
"CurrencyIsoCode",
"ExpectedRevenue",
"BudgetedCost",
"ActualCost",
"Description",
"ExpectedResponse",
"NumberSent",
"IsActive",
"NumberOfLeads",
"NumberOfConvertedLeads",
"NumberOfContacts",
"NumberOfResponses",
"NumberOfOpportunities",
"NumberOfWonOpportunities",
"AmountAllOpportunities",
"AmountWonOpportunities",
"OwnerId",
"CreatedDate",
"CreatedById",
"LastModifiedDate",
"LastModifiedById",
"SystemModstamp",
"LastActivityDate",
"CampaignMemberRecordTypeId",
"Date_of_Event__c",
"Venue__c"
FROM "SF Schema"."Campaign"
反正是有限量的「說明」最大是8000
謝謝!
你可能要重新考慮該列您取得進一步進展之前。 – noel
您在表模式中設置的列大小是多少? – Prasanna
模式來自salesforce,所以我無法將varchar修改爲varchar(max),所以無論如何我可以對上面的SQL查詢進行一些修改,以將描述站點限制爲小於8000? – user1383080