Forum Replies Created

Viewing 15 posts - 1,726 through 1,740 (of 7,164 total)

  • RE: Synonyms and performance

    SW21_Bob (3/6/2013)


    How does the use of synonyms effect performance?

    More specifically, are synonyms replaced with fully qualified names in execution plans? It would seem to me that any synonym has to...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Custom print?

    Here's how I usually handle it:

    DECLARE @long_string NVARCHAR(MAX) = N'Hello world!';

    SELECT @long_string AS [processing-instruction(long_string)]

    FOR XML PATH(''),

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Granting Explicit View Definition Permissions on Stored Procedure to dbo

    Is there a way that a developer with dbo rights in a database can explicitly grant themselves view definition permissions on a stored procedure they create as dbo?

    What JeremyE showed...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Virtualization reviews

    Managing SQL Server on VMware[/url]

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Type conversions and Nulls

    David Conn (3/6/2013)


    C. This was my first encounter with uninitialised variables.

    Thanks. I am pretty sure that aspect of C "fell off my memory queue" a long time ago 😛

    At least...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Droping or moving old tables

    You can check the dependencies of the table using the Catalog Views:

    USE AdventureWorks2008R2;

    GO

    SELECT referencing_schema_name,

    referencing_entity_name,

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Type conversions and Nulls

    David Conn (3/6/2013)


    The ones that don't tend to just leave the Variable with whatever is in its memory location.

    Yikes, not sure I know (or knew or remember) which might do...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Query hangs on table variable

    I'll second that. I almost exclusively favor traditional temporary tables over the use of table variables. Performance is one reason, which you may be experiencing first hand, and ease of...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: how to move ssis packages developed with sql 2012 in one server to sql 2008 in another server

    SSIS Packages are not backward compatible. You could rewrite the packages in 2008 format or you could install SQL 2012 in the production environment. SSIS 2012 Packages will happily communicate...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Resolving a deadlock

    You would modify your proc to set CONTEXT_INFO before you did the UPDATE.

    SET CONTEXT_INFO 0x1256698456

    Then in your trigger you would check CONTEXT_INFO and if you found it had the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: The EXECUTE permission was denied on the object 'xp_sqlagent_enum_jobs', database 'mssqlsystemresource', schema 'sys'.

    ddg8885 (10/20/2010)


    I searched the error for a while and saw a lot of things about certificates differing between msdb and master. But I checked the certificates and they were identical....

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Resolving a deadlock

    Just had this same question on another thread with a trigger and doing a large insert...almost verbatim from the other thread:

    One thing I can say is that if you were...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Resolving a deadlock

    These are the two indexes involved in the deadlock:

    CREATE UNIQUE CLUSTERED INDEX [CI_Patient_PracticeID_PatientID] ON [dbo].[Patient]

    (

    [PracticeID] ASC,

    [PatientID] ASC

    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Resolving a deadlock

    I still don't think we have seen the code for object 1945422350.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Resolving a deadlock

    Oooh, a GOTO, haven't seen one of those in a while 😀

    What else is going on in the TRIGGER? code?

    And can you post the tables and all indexes of the...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 1,726 through 1,740 (of 7,164 total)