Forum Replies Created

Viewing 13 posts - 16 through 29 (of 29 total)

  • RE: March 13, 2010: PSSUG SQL Camp, pre-Call For Speakers

    I can tell you that PASS now supports non-PASS branded events. The person to talk to at HQ is Blythe Morrow, she's the community coordinator. There's been discussion around this...

  • RE: Does the physical position of FK columns matter?

    Thanks for clarifying that for me.

  • RE: Re: User defined functions

    Garadin (10/3/2008)


    What criteria do you use to evaluate the best option? Examine the query execution plan and select the one with the lowest overall subtree cost? Or something else?

    I personally...

  • RE: Re: User defined functions

    jlp3630 (10/3/2008)


    What criteria do you use to evaluate the best option? Examine the query execution plan and select the one with the lowest overall subtree cost? Or something else?

    Typically I...

  • RE: Re: User defined functions

    In order to do what you're describing, you'll have to use sp_executesql to execute your statement at run time. You might run into binding issues using a function that...

  • RE: Re: User defined functions

    Are you saying that results may vary? If so, are there any rules of thumb for determining UDF's use? Or do I just need to try the stored procedure using...

  • RE: Re: User defined functions

    UDFs, in the same way as sprocs, reduce the compilation cost in T-SQL by caching the execution plan and saving them for repeated executions. You take a performance hit...

  • RE: Stored Procedure Ownership Chaining

    Thank you! While I haven't tested this at work, I re-created the same situation at home using multiple databases and was not able to EXEC any stored procedures until...

  • RE: Stored Procedure Ownership Chaining

    rbarryyoung (9/30/2008)


    Have you set your Web database to be TRUSTED?

    I have not. Do you mean that I should set the TRUSTWORTHY option? That is the only thing I...

  • RE: Stored Procedure Ownership Chaining

    I'm clearly not understanding something with ownership chaining.

    I have created a database login, Processor, and given processor data_reader and data_writer permissions to both my datamart and web databases.

    I then created...

  • RE: Stored Procedure Ownership Chaining

    From BOL:

    Server or database principals other than sa or dbo can call EXECUTE AS.

    The user that calls the EXECUTE AS statement must have IMPERSONATE permissions on the target principal.

    So, the...

  • RE: Stored Procedure Ownership Chaining

    Michael Earl (9/29/2008)


    You either need to give the user access to the objects in both databases, or you need to enable cross-database ownership chaining.

    In this case, dbo owns both databases...

  • RE: Can't understand the problem with this SP

    A co-worker recently ran into a similar issue with parameter sniffing. The solution he came up with was to copy his input parameters into local variables inside the procedure...

Viewing 13 posts - 16 through 29 (of 29 total)