Forum Replies Created

Viewing 15 posts - 1,771 through 1,785 (of 7,168 total)

  • RE: Guidance on table valued types.

    One other question came to mind: In what order are the uniqueidentifiers being added to the TVP as they are sent to the SQL Server? If you're using .NET then...

  • RE: Guidance on table valued types.

    I recommend having a clustered PK on all TVPs. I enforce this in code reviews too. 1) it keeps data transfer to a minimum by forcing sloppy development from passing...

  • RE: Not seeing savings in sparse columns

    Anytime, thanks for the feedback.

  • RE: unexplained deadlock

    aviadavi (3/3/2013)


    OK.

    chance that NOLOCK will be ignored is other thing than NOLOCK to be harmful. so I can keep this NOLOCK anyway, what do I have to lose here?

    In this...

  • RE: unexplained deadlock

    You're updating the table you're selecting from and trying to use NOLOCK on so chances are the NOLOCK will not be respected.

  • RE: Not seeing savings in sparse columns

    NULL variable-length columns are returned as NULL based on the metadata of the table (and the NULL-bitmap of the record) when the result set is constructed but occupy no space...

  • RE: unexplained deadlock

    For one, NOLOCK is ignored for updates. Think about it.

    Also, even if data is not overlapping it does not mean that pages may not overlap. Page splits from updating records...

  • RE: Not seeing savings in sparse columns

    Because of how NULL variable-length columns are stored you should not see a difference in your two sample tables.

    Try changing one of the columns to fixed-length though and you'll...

  • RE: partition_id VS. hobt_id

    Shcherbunov Neil (3/3/2013)


    So - these 2 values can ever be NOT equal?? As I said I had never see this in practical. Can you please give the example of table...

  • RE: unexplained deadlock

    I am assuming you altered the graph before posting since the first query has a syntax error in it:

    WITH TableA_CTE

    ...

  • RE: Problem with Database mail

    Here is what I use to monitor Database Mail. Run it in your environment and see if it turns up any useful information.

    DECLARE @days_ago_start INT

    ---------------------------------------------------------------------------------------

    SET @days_ago_start = 7

    ---------------------------------------------------------------------------------------

    SELECT fi.send_request_date...

  • RE: Insert to Parent/Child tables

    I am assuming the PK on the parent is an IDENTITY column? In those cases I use an OUTPUT clause on the INSERT...SELECT to capture the new IDENTITY value for...

  • RE: Issue with OSQL

    What comes to mind initially is that @cmd is sometimes ending up NULL due to @c1 or @t1 (coming from the cursor-select) being NULL since anything+NULL=NULL. Try adding some logging...

  • RE: SQL Max server memory settings

    Nah, see my last post.

  • RE: SQL Max server memory settings

    If you connect to the Dedicated Admin Connection (DAC) you can run this query against the restored copy of master to retrieve the previous setting:

    SELECT value AS [max server...

Viewing 15 posts - 1,771 through 1,785 (of 7,168 total)