Forum Replies Created

Viewing 13 posts - 61 through 73 (of 73 total)

  • RE: Using INSERT/DELETE/UPDATE within a stored procedure called from INSTEAD OF

    The table in question contains detail records for a master which need a custom sort order determined by the user. Regardless of the specific physical order of the records, the...

  • RE: Return Value as Well as Records from a Stored Procedure

    Looks like @@RowCount is what I was looking for thanks.

  • RE: Updating Records

    Oh yeah, that's fine. I won't complain. But you do have to admit that it will significantly contribute to the general knowledge base.

  • RE: Updating Records

    Table Structure. Note the default.

    [Code]

    CREATE TABLE [dbo].[Delegates](

    [Id] [int] IDENTITY(1000,1) NOT NULL,

    [ContactId] [int] NOT NULL,

    [DelegateContactId] [int] NOT NULL,

    [ExpirationDate] [date] NULL,

    [Priority] [decimal](7, 1) NOT NULL

    ) ON [PRIMARY]

    GO

    ALTER TABLE [dbo].[Delegates] ADD CONSTRAINT...

  • RE: Updating Records

    Uhh....CTE?

    Also, I replaced the INDEX hint with an ORDER BY but it didn't work properly.

    BEGIN

    DECLARE @id_start decimal(7,1)

    SET @id_start = .1

    BEGIN

    WITH RecordSet AS (Select TOP 100 Percent Row_number() Over(Order By ContactId,...

  • RE: Updating Records

    So other than switching the INDEX to an ORDER BY, things look pretty on target? My experience with SQLServer is along the lines of advanced beginner.

  • RE: PIVOT vertical table without Aggregating

    The fields in the parent table will be in the partent Repeater or Gridview with the childs nested if that's not obvious. It also lays the groundwork for the user...

  • RE: PIVOT vertical table without Aggregating

    For the record, while the project got shelved temporarily, once it starts up we'll be using a asp:repeater nested within another control to generate CSS which pivots the data as...

  • RE: PIVOT vertical table without Aggregating

    Been busy...

    For the record, the discussion groups that I have been apart of do not have stringent rules as to what needs to be included and what does not. Within...

  • RE: PIVOT vertical table without Aggregating

    If I could write the T-SQL then I'd post it. I am presented the data as it exists in the tables and as I need it displayed. Either help or...

  • RE: PIVOT vertical table without Aggregating

    My bad. Let's just pretend that that post was never posted as I now realize that it was way screwed up.

    The Vertical table is

    100001 ...

  • RE: Moving from SQL Server 2005 to 2008

    Looks like that did it, I just kicked it off. Seems to easy that MS would actually add text to the window to enter the name of a new database...

  • RE: Moving from SQL Server 2005 to 2008

    So how do I do a restore if the database doesn't exist already exist on the server? When I right click on the Database parent node and select 'RESTORE', the...

Viewing 13 posts - 61 through 73 (of 73 total)