Forum Replies Created

Viewing 15 posts - 3,001 through 3,015 (of 13,461 total)

  • RE: Easy (I hope) join question

    here's my best guess for you: in this case,note how i provided a CREATE TABLE and sample data via INSERT INTO?

    if you can do the same in future posts, you'll...

  • RE: update records based on condition

    I think you will need to update the table against a version of itself featuring row_number().

  • RE: Find potential locks caused by joined queries

    Donnie Carvajal (8/1/2013)


    Thanks again.

    Is the goal to get the actual number of rows and estimated number of rows to be equal?

    Donnie

    within the same order of magnitude or so, doesn't have...

  • RE: Find potential locks caused by joined queries

    yes that is correct; find the underlying tables of those views, and update stats on them;

    you could also use something like this to blindly update all stats for all...

  • RE: Find potential locks caused by joined queries

    thre you go Donnie;

    actual rows 3, but the estimated rows is almost a quarter million.

    run this for the three tables involved in this query:

    UPDATE STATISTICS [dbo].[VW_DirectReports] WITH FULLSCAN ;

    UPDATE...

  • RE: update records based on condition

    you DID NOT post readily consumable sample data.

    your sample headers had five columns, but the data only appears in three.

    how is anyone supposed to be able to use that?

    i ran...

  • RE: Find potential locks caused by joined queries

    Donnie Carvajal (8/1/2013)


    Thanks for the quick responses. What is a .sqlplan? Is it the estimated execution plan from ssms?

    both the estimated execution plan and the actual execution...

  • RE: Executing an SP in a new SPID?

    ok, it sounds like a single service broker would work, but that you would call it 100 times, once for each table, for example.

    if we can help with the details,...

  • RE: Find potential locks caused by joined queries

    agreeing with Steve, here; All SELECT queries take out Shared Locks for the period of time it takes to get the data; those shared locks might delay an update/insert/delete, but...

  • RE: Executing an SP in a new SPID?

    it really depends on what you are doing to give you a solid answer.

    service broker calls run asynchronously; (sending mail via sp_send_dbmail is one common example) so you'd need to...

  • RE: View index not being used

    andybellenie (8/1/2013)


    CREATE UNIQUE CLUSTERED INDEX [IX_campaignContacts] ON [dbo].[campaignContacts]

    (

    campaignId ASC,

    contactId ASC

    )

    The index you created above would be used if you had a statement like this:

    SELECT contactId

    FROM campaignContacts

    WHERE campaignId ...

  • RE: How to capture a SP embedded in a bespoke app

    EamonSQL (8/1/2013)


    Thanks for this.

    The reason I know is that this is an old app which the vendor isn't supporting anymore.

    Sometimes a data issue occurs and we've been told that a...

  • RE: Bizarre Database Mail problem

    dzoll (8/1/2013)


    Here is the message I get when I manually run the SP:

    Msg 14624, Level 16, State 1, Procedure sp_send_dbmail, Line 260

    At least one of the following parameters must be...

  • RE: How to separate the address?

    prakashr.r7 (8/1/2013)


    Hi Lowell,

    The Texas A& M is superb. This site has an option of Batch processing. It just made me curious, how many addresses...

  • RE: How to separate the address?

    Ed Wagner (7/31/2013)


    Lowell - Thank you! Having address validation is a very good tool to have. I can't tell you how many times we do it and the...

Viewing 15 posts - 3,001 through 3,015 (of 13,461 total)