Forum Replies Created

Viewing 11 posts - 16 through 27 (of 27 total)

  • RE: Off IF...ELSE Behavior

    My apologies, I should have been more specific.

    The first piece of code runs fine and effectively drops the table.

    When the second batch of code is run, that's when...

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

  • RE: Remove Characters from String

    Thank you, that worked!

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

  • RE: sqlquery

    Check out this blog, I believe it will give you what you are looking for:

    http://cf-bill.blogspot.com/2007/01/select-specific-row-in-sql-server-2005.html

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

  • RE: Conversion failed when converting datetime from character string

    Do not cast the string values in the between clause as datetime. SQL Server already assumes the string is datetime. So when you cast those as datetime, it throws errors.

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

  • RE: Conversion failed when converting datetime from character string

    siweb, try this:

    You didn't mention whether or not the values in the between clause are hardcoded, so based on your example I am assuming they are. This works with hard...

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

  • RE: Conversion failed when converting datetime from character string

    Try this:

    declare @value varchar(64)

    set @value = '2008-08-26 00:00:00'

    select @value, CONVERT(datetime, @value)

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

  • RE: Help me to remove index fragmentation

    I created this script a few months ago to show me internal and external fragmentation. The script also shows which options you should run on your indexes, either REBUILD or...

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

  • RE: CONVERT DECIMAL values to HH:MM:SS

    Exactly what I was looking for. Thanks Gary.

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

  • RE: How to improve insert performance

    1. Make sure your stored procedure is not recompiling every time it is run. (RECOMPILE = ON).

    2. Check the index fragmentation using sys.dm_db_index_physical_stats.

    3. Check out this post on...

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

  • RE: How do YOU use VIEWs?

    Stored procedures are in my opinion a better choice for security purposes, because they hide the code from the users. So in that respect, implementing a view over a stored...

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

  • RE: Question of the Day for 15 Nov 2006

    Instead of dropping the index and rebuilding it, SQL Server 2005 offers a disable option on indexes which is much more efficient.

    http://msdn2.microsoft.com/en-us/library/ms177456.aspx

    Even though this wouldn't be used for...

    _______________________________
    [font="Tahoma"]Jody Claggett
    SQL Server Reporting Analyst
    [/font][/size]

Viewing 11 posts - 16 through 27 (of 27 total)