我已将SQL Server Express 2008数据库部署到托管服务器。在我的本地机器上一切正常,但在远程主机上我收到错误:
>应用程序中的服务器错误。无法将值NULL插入列'Id',表中 'mttrnv_12.dbo.Customer';列不允许空值。 INSERT失败。 声明已经终止。
表格结构:
Id int Unchecked
CustomerGuid uniqueidentifier Unchecked
Username nvarchar(1000) Checked
Email nvarchar(1000) Checked
Password nvarchar(MAX) Checked
PasswordFormatId int Unchecked
PasswordSalt nvarchar(MAX) Checked
AdminComment nvarchar(MAX) Checked
LanguageId int Checked
CurrencyId int Checked
TaxDisplayTypeId int Unchecked
IsTaxExempt bit Unchecked
VatNumber nvarchar(MAX) Checked
VatNumberStatusId int Unchecked
SelectedPaymentMethodSystemName nvarchar(MAX) Checked
CheckoutAttributes nvarchar(MAX) Checked
DiscountCouponCode nvarchar(MAX) Checked
GiftCardCouponCodes nvarchar(MAX) Checked
UseRewardPointsDuringCheckout bit Unchecked
TimeZoneId nvarchar(MAX) Checked
AffiliateId int Checked
Active bit Unchecked
Deleted bit Unchecked
IsSystemAccount bit Unchecked
SystemName nvarchar(MAX) Checked
LastIpAddress nvarchar(MAX) Checked
CreatedOnUtc datetime Unchecked
LastLoginDateUtc datetime Checked
LastActivityDateUtc datetime Unchecked
BillingAddress_Id int Checked
ShippingAddress_Id int Checked
Unchecked