Forum Replies Created

Viewing 15 posts - 22,186 through 22,200 (of 26,484 total)

  • RE: Are the posted questions getting worse?

    And then you have this. I don't think the desert is big enough to hide in anymore.

    And, am I still Saint?

    Edit: The original post linked here has been...

  • RE: "Answered" Posts

    Mangal Pardeshi (3/4/2009)


    Steve Jones - Editor (3/3/2009)


    Marking something as "answered my question" is something we're considering.

    Sooner the better.

    The rating thing, hard to know. I think if you consistently answer poorly,...

  • RE: Table Value Function

    Jeff Moden (3/3/2009)


    nwinningham (2/17/2009)


    I have just spoken with the person who created this function. He said that he runs this report at night. So, since he runs this...

  • RE: Deleting data from large tables.

    Here is some code you may want to try in a test environment. You will need to finish the code as the BACKUP LOG statement is incomplete.

    declare @RowsDeleted int,

    ...

  • RE: column to calculate the balance stock dynamically

    Jeff Moden (3/3/2009)


    Lynn Pettis (3/3/2009)


    Oh, wow. Looks like I may have beat Jeff. But of course, he is probably setting up a million row example to demonstrate his...

  • RE: column to calculate the balance stock dynamically

    Oh, wow. Looks like I may have beat Jeff. But of course, he is probably setting up a million row example to demonstrate his code, where I just...

  • RE: column to calculate the balance stock dynamically

    Samuel Vella (2/26/2009)


    mh, your solution is fine but when you test it with a lot of data against a cursor, the cursor is orders of magnitude faster

    I adapted your query...

  • RE: utilize dual processors each for different SPs

    The simple answer, no. You can't tell SQL Server which processor to use when a stored procedure is run.

  • RE: comma delimited list problem

    Bevan keighley (3/3/2009)


    I should have tidied that up a bit...

    select systemID, locations = substring((select ',' + Locations from #Address WHERE systemID = A1.systemID FOR XML PATH('')),2,1024)

    from #Address A1

    Slightly...

  • RE: HELP ME

    I have to agree with both of you, little bit demanding. I'd say that Jeff is also correct in that the OP wants to audit all INSERT/UPDATE/DELETE activity on...

  • RE: Query Help

    barunpathak (3/2/2009)


    Outer APPLY worked guys. Thats a bunch for your help.

    I know you said you had a solution, but I think you should also give the following a try:

    CREATE TABLE...

  • RE: How to find Week start date and Week end date

    Michael

    If you read post numbers 666817, 666826, and 667164 above, you will see that on Moday you return the previous Monday through Friday. On Tuesday through Friday...

  • RE: How to find Week start date and Week end date

    Yep, your right, I had a slight mistake in my code. Here is the corrected code:

    declare @pDate datetime;

    set @pDate = getdate();

    select

    dateadd(wk, datediff(wk, 0, @pDate -...

  • RE: Restore script

    Have you tried turning your script into a stored procedure that you can then execute in a scheduled job?

  • RE: Resotre Database with partition tables

    If your partitioned tables are in separate filegroups you can do filegroup backups. You should check out BOL for more information on this.

Viewing 15 posts - 22,186 through 22,200 (of 26,484 total)