Forum Replies Created

Viewing 15 posts - 2,401 through 2,415 (of 2,894 total)

  • RE: How to get a substring between two characters?

    Personally, I wouldn't use UDF for the requested task, even it's look neater, it will be slower than just doing it in-line...

    However, if you will go into using UDF, remember...

  • RE: Alter PK to Cluster

    Jeff Moden (8/15/2010)


    jeff.mason (8/9/2010)


    Yep, this is why I NEVER use PRIMARY KEY CLUSTERED even IF I intend to cluster on that column. I am willing to burn the index...

  • RE: sql trigger using cte - need help

    Sorry, mate, but placing such code into trigger, is not very good design move.

    If you need to use atrigger, you should try making it as lightweight as possible. Systems where...

  • RE: stopping index generation

    DROP INDEX ...

    Strange, requirement. Why you want disable index? What is you trying to do? Single update/insert/delete? Batch process?

  • RE: Insert enddate using startdate

    Aspg (8/13/2010)


    ...

    I was posting these posts while at work and gave you the wrong data

    ...

    Can anybody tell me how to do this update using loop ,or cursor or...

  • RE: optimise avoid using loop

    Next time, please supply DDL of your objects and some test data (as per link found in the bottom of my signature).

    You will need to change you table-valued function to...

  • RE: Max count of rows per hour and minute (concurrent sessions)

    Actually, the posted query need more work, as it should count concurrent sessions only within the same hour... (check one for 12)

  • RE: Max count of rows per hour and minute (concurrent sessions)

    I'm not sure if the following will be fast enough for you, bt it should do what you're asking for. Note: next time, please follow the advise which will be...

  • RE: I need a better way to do this

    I hope you understand the differnece between your two examples.

    The first one tells to SQLServer to recompile query which is executed by sp_executesql. You can use this option for some...

  • RE: I need a better way to do this

    scott.pletcher (8/12/2010)


    SQL Server will cash plan for any query, no matter where it's coming from.

    That's not true.

    Wrong wording used: MS will cash anything it possibly can.:-D

    Ok, SQLServer will cache the...

  • RE: I need a better way to do this

    DataDog (8/12/2010)


    I'd like to know how the server handles large quantities of distinct SQL statements with SP_EXECUTESQL

    seems to me that all those cached plans will end up pushing out plans...

  • RE: How do i use "orelse" in sql server, "orelse" similar to VB.net

    Mike Nuessler (8/12/2010)


    Nothing fancy there it evaluates the conditions in order.

    So the first condition (a=0) of the OR is evaluated and it will not look at second condition...

  • RE: How do i use "orelse" in sql server, "orelse" similar to VB.net

    Ather M (8/12/2010)


    How do i use "orelse" in sql server, "orelse" similar to VB.net

    example:

    select a,b from table where a=0 or b=0

    here if a=0 then sql should never check for b=0

    This...

  • RE: I need a better way to do this

    Actually, the data modifications is much rare form of SQL Injection used by hackers. Mostly they whould be interesting just in basic selects...

    For example: calssical injecting of "1=1; select *...

  • RE: Insert enddate using startdate

    Aspg (8/12/2010)


    HI ,

    While updating this data , the update is going in endless loop .

    It doesnt found the rownt-1 row when rowcnt is 1

    1-1 = 0

    Endless loop in...

Viewing 15 posts - 2,401 through 2,415 (of 2,894 total)