Forum Replies Created

Viewing 15 posts - 5,251 through 5,265 (of 6,486 total)

  • RE: Stored Procedure Parameters Majorly Slowing Execution Down!

    Try looking up "Parameter sniffing"

    You might have a shot at getting it to behave better with this simple change:

    create procedure [dbo].[CalculateActivityTotal] (

    @periodstartdate datetime = '2007-01-01',

    @periodenddate datetime = '2007-01-08',

    @hsgradyearstart int...

  • RE: Rewriting this Query with joins

    Try:

    select twd.*

    from

    TransWorkDetail twd

    INNER JOIN TransLineItem TLI on twd.SalesLineItemId =tli.SalesLineItemId

    INNER JOIN TransHeader th on th.TransHeaderID...

  • RE: Query for work shift differential

    Jeff Moden (1/15/2008)


    Adam Haines (1/10/2008)


    Adam... just so you know, that function doesn't actually work... it returns a zero for positive numbers AND returns a "domain error" if @NBR happens to...

  • RE: I need to change database and or table and or server collation in SQL2005.

    Ray (1/15/2008)


    Did you use RedGate tools? If so i have them as well.

    Ray - take a little closer look at Andras' signature....:D

    I'd say it's a fair bet that he has...

  • RE: Clearing the Bar

    Steve Pitt (1/15/2008)


    I don't want to hire the best candidate if it's obvious that they'll only be with me until they'll find something better - I don't have time to...

  • RE: Tracking Illicit Users

    Michael Valentine Jones (1/15/2008)


    Joseph Hicks (1/15/2008)


    You should be aware that the MAC address can be changed dynamically, so a restriction based on MAC address is not foolproof.

    The old DECnet protocol...

  • RE: Naming Convension

    Nope - still wouldn't use periods. The fact that it would only rarely end up in T-SQL doesn't much change what others have already mentioned in my mind.

    Of course...

  • RE: Temporary tables within an IF statement

    Are you continually testing this thing using Query analyzer or SSMS? If you are - you might simply be getting that because the temp table isn't being cleaned up...

  • RE: Help with Dynamic SQL error

    I call that "changing the bag on the coffee infusion"....:w00t:

  • RE: Autogrow Timeout Expired

    The only downside I've heard is something about a "security flaw" which when described seemed a bit far-fetched to me. Because the file doesn't reinitialize the data - it...

  • RE: Clearing the Bar

    A few thoughts:

    - If you can't fill the position for long periods of time, or you seem to only get marginally qualified people, perhaps it's time to either change...

  • RE: dynamically create insert statements, help !

    Now keeping in mind that dynamic SQL can be very dangerous when you use it around GUI system (SQL injection ,etc....) You could try something like this

    Declare @myTable sysname

    declare @columnnames...

  • RE: Rollback

    In short - at any time between the BEGIN TRAN and the COMMIT.

    So -

    BEGIN TRAN

    (do whatever you need to do)

    (test that it did what you want)

    COMMIT TRAN

    or

    ROLLBACK

    Keep in...

  • RE: Subquery Help needed...

    Try rewriting it as a dervied table instead of a CSQ and see if you get more results. If you don't - skip the highlight criteria, turn that oin...

  • RE: LTRIM linked field

    Jeff Moden (1/14/2008)


    Heh... it's always an option if the nail in the bat is large enough and you can find the designers that put the screws to your data 😉

    Jeff...

Viewing 15 posts - 5,251 through 5,265 (of 6,486 total)