Yeah my guess is that the size does indeed have something to do with the
issues. Try creating the table (under a diff name) with only a partial list
of columns and see if they all work in smaller pieces. But I would spend my
time on normalizing that table in the first place. That will cause you
nothing but trouble in the long run.
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
[quoted text, click to view] "Mark Assousa" <massousa@netscape.net> wrote in message
news:eLVlsQM7HHA.1444@TK2MSFTNGP05.phx.gbl...
> Andrew J. Kelly wrote:
>> Do you get an error? Can you post the DDL for the table? Are you using
>> any reserved words for any of the object names?
>>
> No error is generated. I simply get "Scripting was completed
> successfully." I don't believe I'm using any reserved words. The only
> column names in the table that don't have underscore in them (and thus
> *might* be reserved) are common to other tables which don't exhibit the
> problem to the best of my knowledge. The DDL is attached. It's bloody
> huge. Come to think of it, could the shear size of the table be giving
> the script generating logic a problem?
>
> Thanks for your time.
>
--------------------------------------------------------------------------------
[quoted text, click to view] > CREATE TABLE [dbo].[ExMICHOICE] (
> [AsmtID] [int] IDENTITY (1, 1) NOT NULL ,
> [ClientID] [int] NOT NULL ,
> [ParentType] [tinyint] NULL ,
> [ParentID] [int] NULL ,
> [dtCreated] [datetime] NOT NULL ,
> [dtModified] [datetime] NOT NULL ,
> [dtUploaded] [datetime] NULL ,
> [dtNext] [datetime] NULL ,
> [dtAnalyzed] [datetime] NULL ,
> [Deleted] [bit] NOT NULL ,
> [Locked] [bit] NOT NULL ,
> [Completeness] [tinyint] NOT NULL ,
> [WorkStateID] [smallint] NOT NULL ,
> [iA0a] [tinyint] NOT NULL ,
> [iA0b] [nvarchar] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
> [iA0c] [nvarchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [iA1a] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [iA1b] [nvarchar] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [iA1c] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [iA1d] [nvarchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [iA2] [tinyint] NULL ,
> [iA3] [datetime] NULL ,
> [iA4] [tinyint] NULL ,
> [iA5a] [nvarchar] (13) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [iA5b] [nvarchar] (13) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [iA5c] [nvarchar] (14) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [iA99] [uniqueidentifier] NOT NULL ,
> [iU1] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [iU2] [datetime] NULL ,
> [Notebook] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [Status] [smallint] NULL ,
> [StatusDate] [datetime] NULL ,
> [RUGCategory] [smallint] NULL ,
> [ADL] [smallint] NULL ,
> [RUG] [real] NULL ,
> [CPS] [smallint] NULL ,
> [HsdpStatus] [smallint] NULL ,
> [Score] [smallint] NULL ,
> [CAP_Adherence] [tinyint] NULL ,
> [CAP_ADL] [tinyint] NULL ,
> [CAP_AlcoholAbuse] [tinyint] NULL ,
> [CAP_Behavior] [tinyint] NULL ,
> [CAP_BowelManagement] [tinyint] NULL ,
> [CAP_BrittleSupportSystem] [tinyint] NULL ,
> [CAP_CardioRespiratory] [tinyint] NULL ,
> [CAP_Cognition] [tinyint] NULL ,
> [CAP_CommunicationDisorders] [tinyint] NULL ,
> [CAP_Dehydration] [tinyint] NULL ,
> [CAP_DepressionAnxiety] [tinyint] NULL ,
> [CAP_ElderAbuse] [tinyint] NULL ,
> [CAP_EnvironmentalAssessment] [tinyint] NULL ,
> [CAP_Falls] [tinyint] NULL ,
> [CAP_HealthPromotion] [tinyint] NULL ,
> [CAP_IADL] [tinyint] NULL ,
> [CAP_InstitutionalRisk] [tinyint] NULL ,
> [CAP_MedicalDayCare] [tinyint] NULL ,
> [CAP_MedicationManagement] [tinyint] NULL ,
> [CAP_NursingFacility] [tinyint] NULL ,
> [CAP_Nutrition] [tinyint] NULL ,
> [CAP_OralHealth] [tinyint] NULL ,
> [CAP_Pain] [tinyint] NULL ,
> [CAP_PalliativeCare] [tinyint] NULL ,
> [CAP_PressureUlcers] [tinyint] NULL ,
> [CAP_PreventiveHealth] [tinyint] NULL ,
> [CAP_PsychotropicDrugs] [tinyint] NULL ,
> [CAP_ReductionOfServices] [tinyint] NULL ,
> [CAP_SkinFootCondition] [tinyint] NULL ,
> [CAP_SocialFunction] [tinyint] NULL ,
> [CAP_UNAI] [tinyint] NULL ,
> [CAP_UrinaryIncontinence] [tinyint] NULL ,
> [CAP_VisualFunction] [tinyint] NULL ,
> [CAP_NFLOC] [tinyint] NULL ,
> [CAP_NH] [tinyint] NULL ,
> [CAP_IR] [tinyint] NULL ,
> [CAP_HC] [tinyint] NULL ,
> [CAP_PC] [tinyint] NULL ,
> [CAP_HM] [tinyint] NULL ,
> [CAP_LA_PW1] [tinyint] NULL ,
> [CAP_LA_PW2] [tinyint] NULL ,
> [CAP_LA_PW6] [tinyint] NULL ,
> [AA_2] [nvarchar] (18) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [AA_3_b] [nvarchar] (18) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [BB_3_a] [bit] NULL ,
> [BB_3_b] [bit] NULL ,
> [BB_3_c] [bit] NULL ,
> [BB_3_d] [bit] NULL ,
> [BB_3_e] [bit] NULL ,
> [BB_3_f] [bit] NULL ,
> [BB_5] [tinyint] NULL ,
> [BB_5_Other] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [BB_6] [tinyint] NULL ,
> [BB_7_a] [bit] NULL ,
> [BB_7_b] [bit] NULL ,
> [CC_1] [datetime] NULL ,
> [CC_2] [tinyint] NULL ,
> [CC_3_a] [bit] NULL ,
> [CC_3_b] [bit] NULL ,
> [CC_3_c] [bit] NULL ,
> [CC_3_d] [bit] NULL ,
> [CC_3_e] [bit] NULL ,
> [CC_3_f] [bit] NULL ,
> [CC_4] [tinyint] NULL ,
> [CC_5] [tinyint] NULL ,
> [CC_6] [tinyint] NULL ,
> [CC_7] [bit] NULL ,
> [CC_8] [bit] NULL ,
> [A_1] [datetime] NULL ,
> [A_2] [tinyint] NULL ,
> [A_3] [tinyint] NULL ,
> [A_4] [tinyint] NULL ,
> [B_1_a] [bit] NULL ,
> [B_1_b] [bit] NULL ,
> [B_2] [tinyint] NULL ,
> [B_3_a] [tinyint] NULL ,
> [B_3_b] [bit] NULL ,
> [C_1_a] [bit] NULL ,
> [C_1_b] [bit] NULL ,
> [C_2] [tinyint] NULL ,
> [C_3_a] [tinyint] NULL ,
> [C_3_b] [bit] NULL ,
> [D_1_a] [bit] NULL ,
> [D_1_b] [bit] NULL ,
> [D_1_c] [bit] NULL ,
> [D_1_d] [bit] NULL ,
> [D_1_e] [bit] NULL ,
> [D_1_f] [bit] NULL ,
> [D_1_g] [bit] NULL ,
> [D_1_h] [bit] NULL ,
> [D_2_a] [bit] NULL ,
> [D_2_b] [tinyint] NULL ,
> [D_3_a] [tinyint] NULL ,
> [D_3_a_1] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [D_3_b] [tinyint] NULL ,
> [D_3_b_1] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [D_3_c] [bit] NULL ,
> [D_3_d] [bit] NULL ,
> [D_3_e] [bit] NULL ,
> [D_3_f] [bit] NULL ,
> [D_3_g] [bit] NULL ,
> [D_3_h] [bit] NULL ,
> [D_3_i] [bit] NULL ,
> [D_3_j] [bit] NULL ,
> [D_3_k] [bit] NULL ,
> [D_4_a] [bit] NULL ,
> [D_4_b] [bit] NULL ,
> [D_4_c] [bit] NULL ,
> [D_4_d] [bit] NULL ,
> [D_4_e] [bit] NULL ,
> [D_4_f] [bit] NULL ,
> [D_4_g] [bit] NULL ,
> [D_4_h] [bit] NULL ,
> [D_4_i] [bit] NULL ,
> [D_4_j] [bit] NULL ,
> [D_4_k] [bit] NULL ,
> [D_4_l] [bit] NULL ,
> [D_4_m] [bit] NULL ,
> [D_4_n] [bit] NULL ,
> [D_4_n_1] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [E_1_a] [bit] NULL ,
> [E_1_b] [bit] NULL ,
> [E_2_a] [tinyint] NULL ,
> [E_2_b] [bit] NULL ,
> [E_3_a] [bit] NULL ,
> [E_3_b] [bit] NULL ,
> [F_1] [tinyint] NULL ,
> [F_2] [tinyint] NULL ,
> [F_3] [tinyint] NULL ,