September 27, 2017 at 12:20 pm
CREATE TABLE [EmailDeployment](
[EmailDeploymentKey] [bigint] NULL,
[ProgramID] [int] NULL,
[CampaignID] [int] NULL,
[EmailAssetID] [int] NULL,
[ProgramName] [varchar](255) NULL,
[EmailAssetName] [varchar](255) NULL,
[EmailType] [varchar](100) NULL,
[SendDate] [datetime] NULL,
[StartDate] [datetime] NULL,
[Channel] [varchar](100) NULL,
[TagType] [varchar](100) NULL,
[TagValue] [varchar](100) NULL,
[ProcessedInd] [char](1) NULL,
[Reporting_period] [varbinary](6) NULL,
[Activity_Month] [int] NULL,
[Activity_Year] [int] NULL
)
And this is the error I get
Cannot insert the value NULL into column 'ID'. table 'dbo.NewFarmreachTables'; column does not allow nulls. INSERT fails.
September 27, 2017 at 12:27 pm
Are there any DDL triggers defined on the instance you are trying to create the table?
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
September 27, 2017 at 12:43 pm
newdba2017 - Wednesday, September 27, 2017 12:20 PMCREATE TABLE [EmailDeployment](
[EmailDeploymentKey] [bigint] NULL,
[ProgramID] [int] NULL,
[CampaignID] [int] NULL,
[EmailAssetID] [int] NULL,
[ProgramName] [varchar](255) NULL,
[EmailAssetName] [varchar](255) NULL,
[EmailType] [varchar](100) NULL,
[SendDate] [datetime] NULL,
[StartDate] [datetime] NULL,
[Channel] [varchar](100) NULL,
[TagType] [varchar](100) NULL,
[TagValue] [varchar](100) NULL,
[ProcessedInd] [char](1) NULL,
[Reporting_period] [varbinary](6) NULL,
[Activity_Month] [int] NULL,
[Activity_Year] [int] NULL
)And this is the error I get
Cannot insert the value NULL into column 'ID'. table 'dbo.NewFarmreachTables'; column does not allow nulls. INSERT fails.
And how does the table above relate to the error?
Never mind, brain was not in gear.
September 27, 2017 at 1:03 pm
Phil Parkin - Wednesday, September 27, 2017 12:27 PMAre there any DDL triggers defined on the instance you are trying to create the table?
After disabling triggers, it's working.
September 27, 2017 at 2:13 pm
newdba2017 - Wednesday, September 27, 2017 1:03 PMPhil Parkin - Wednesday, September 27, 2017 12:27 PMAre there any DDL triggers defined on the instance you are trying to create the table?After disabling triggers, it's working.
You would be better troubleshooting the trigger though, rather than disabling it. The trigger will be there for a reason, and if you can't create tables, it would seem it's miss performing.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
October 1, 2017 at 7:23 pm
newdba2017 - Wednesday, September 27, 2017 1:03 PMPhil Parkin - Wednesday, September 27, 2017 12:27 PMAre there any DDL triggers defined on the instance you are trying to create the table?After disabling triggers, it's working.
Why, on this good green Earth, would you disable a trigger that you know nothing about?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply