Re: SQL Server Error When trying to upload multiple files.

  •  09-15-2010, 11:02 AM

    Re: SQL Server Error When trying to upload multiple files.

    /****** Object: Index [IX_Files_FileGuid] Script Date: 09/15/2010 08:45:21 ******/

    Hi Eric,
     
    I finally was able to get the system to work. The issue was within the Index itself. The scripts are below. I made one change and then everything was working correctly. I just thought I would let you know.
    IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[UploaderFiles]') AND name = N'IX_Files_FileGuid')

    DROP INDEX [IX_Files_FileGuid] ON [dbo].[UploaderFiles] WITH ( ONLINE = OFF )

    GO

    --/****** Object: Index [IX_Files_FileGuid] Script Date: 09/15/2010 08:45:21 ******/

    --CREATE UNIQUE NONCLUSTERED INDEX [IX_Files_FileGuid] ON [dbo].[UploaderFiles]

    --(

    -- [FileGuid] ASC

    --)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

    --GO

    /****** Object: Index [IX_Files_FileGuid] Script Date: 09/15/2010 08:45:21 ******/

    CREATE UNIQUE NONCLUSTERED INDEX [IX_Files_FileGuid] ON [dbo].[UploaderFiles]

    (

    [FileGuid] ASC

    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = ON, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

    GO

View Complete Thread