Forum Replies Created

Viewing 15 posts - 56,941 through 56,955 (of 59,067 total)

  • RE: @@rowcount Returns 0

    Dunno about Juan, but some folks can be pretty tough on even unrelated code.  Lookup some of Celko's replies for an example of what I mean... the intentions are good...

  • RE: xp_CDMShell ''''Path''''

    Doh!  I missed that part of the question.  Yes, Ron is correct but do remember what I said... It's session specific from SQL Server.

  • RE: Can''''t revoke permissions from views and tables

    Thanks for posting your own solution... Lordy, I hope someone comes up with a different way... I really have bad gut feeling about updating system tables...

  • RE: Long Running Update

    Not only do what SQLBill suggested, but why 23 indexes?  And, are any of them clustered?  Are any of them affected by the update?

  • RE: @@rowcount Returns 0

    That should work but I haven't tried it that way...

    And, yep, the code I posted up to the "AS" was from Books OnLine... the rest is from some code...

  • RE: xp_CDMShell ''''Path''''

    PATH is session specific... and each use of xp_CmdShell creates a new session.  The only way to do this is to make sure that whatever code you are running contains...

  • RE: @@rowcount Returns 0

    Yep... that would be correct and that would also be why most folks think it doesn't work in the trigger as capturing the number of rows inserted, updated, or deleted...

  • RE: Day Range Caluculations

    Perfect... using the same function I used previously, adding quarter to this is easy...

    DECLARE @StartDate DATETIME

    DECLARE @EndDate   DATETIME

    DECLARE @Days      INT

    DECLARE @BinSize   INT

        SET @StartDate = '01/01/2006'...

  • RE: Simple Query Problem Well!

    I do it the same way that Lowell and Michael do to maintain the ability to use indexes if one exists.  The only difference is, I don't trust users even...

  • RE: @@rowcount Returns 0

    Juan,

    Post your trigger code... we're only guessing until we see the code...

  • RE: @@rowcount Returns 0

    Not true in a trigger folks... if @@ROWCOUNT is either the very first thing or the first thing after variable declarations, it will identify if any rows have been affected.

    The...

  • RE: Day Range Caluculations

    Thanks Farrell,

    That's a high compliment coming from folks like yourself.

    Vamsi,

    On my way to work so can't answer in detail just now but, I need to know, what are the boundaries...

  • RE: Time Difference

    Nicely done, Robert.

    I'm still waiting for the original poster to definitely describe the datatype of the column he named "TimeStamp" (instead of guessing ).

  • RE: Day Range Caluculations

    Ok, here's some sample code using Michael's function that I renamed as "fnTally" and changed the "Numbers" column to just an "N" to match what I also have in my...

  • RE: Day Range Caluculations

    1) WHERE Name IS NULL - is that specific to your Master.dbo.spt_Values table? 

    It is specific to the Master.dbo.spt_Values table... however, the table isn't "my" table, it's part of...

Viewing 15 posts - 56,941 through 56,955 (of 59,067 total)