Forum Replies Created

Viewing 15 posts - 151 through 165 (of 1,132 total)

  • RE: Complex Hierarchies in SQL Server

    I naturally leaned towards the idea that the groups for sets and the awards form sets of groups so would go for a set based approach. Other guys in the...

  • RE: table Variables as Parameters

    The table datatype can be used as a function parameter, but defining the table type is a prerequisite to using it as a variable datatype.

    Here is an example of...

  • RE: Split string using XML

    This technique was documented by Erland Sommarskog, SQL Server MVP in 2004. The XML and other methods can be found in the classic article "Arrays and Lists in SQL...

  • RE: Problem with trigger

    Agree that the SQL for an after trigger appears simplier but try with a schema change and the after trigger.

    Alter TABLE [dbo].[cnsmr_accnt]

    add constraint cnsmr_accnt_PK primary key ( cnsmr_id )...

  • RE: Problem with trigger

    Figured out the problem with the trigger not matching the expected results as this requirement was missing:

    When new rows for case_feed = '7' then:

    The next sequence should begin after the...

  • RE: Adding Filegroups

    The CPU Usage (%Processor Time) overall is at ~ 10% daily. Core 3 and 7 are at ~40%. The other 6 are all under 3%.

    I think if you look further,...

  • RE: Are the posted questions getting worse?

    Paul, did not see this post until after I replied but we are getting the same result. I am going to start a new post thread.

  • RE: Problem with trigger

    For the record, the script Carl posted runs fine and produces the expected output on my 2005 and 2008 servers.

    Paul, thanks for checking.

    My newly rebuilt business laptop has...

  • RE: Are the posted questions getting worse?

    Does anyone have an idea why row_number() in a trigger does not appear to work ? The exact same code in a batch works fine (substituting a temporary table...

  • RE: Shrink Master database

    This is a WAG, but if a user database has any indexed views, the following options must be set before running DBREINDEX. Should not hurt to set the options...

  • RE: Problem with trigger

    the use of Instead of trigger as opposed to for/after insert in my code.

    When an insert occurs, the following actions occur and if there is an error in any of...

  • RE: sql server tree delete over multiple tables issue

    Ahha - a colleague 😀

    Just for fun, I created the same schema in SQLAnywhere but without the trigger and defined the foreign key constraints with the "on delete cascade" specification....

  • RE: Problem with trigger

    You can try the below code but there may be a bug. If you run the first SQL, the row_number functions gives the expected result but not when included...

  • RE: Expect an Attack

    Just in today's news:

    $9.75 million settlement related to a massive data theft that occurred at the parent company of T.J. Maxx and Marshall's more than two years ago. ...

  • RE: Problem with trigger

    Can you post the create table statement please ?

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

Viewing 15 posts - 151 through 165 (of 1,132 total)