Viewing 15 posts - 3,001 through 3,015 (of 13,461 total)
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...
August 1, 2013 at 3:36 pm
I think you will need to update the table against a version of itself featuring row_number().
August 1, 2013 at 2:57 pm
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...
August 1, 2013 at 2:32 pm
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...
August 1, 2013 at 2:22 pm
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...
August 1, 2013 at 2:14 pm
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...
August 1, 2013 at 1:31 pm
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...
August 1, 2013 at 12:54 pm
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,...
August 1, 2013 at 12:51 pm
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...
August 1, 2013 at 12:17 pm
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...
August 1, 2013 at 11:57 am
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 ...
August 1, 2013 at 11:50 am
EamonSQL (8/1/2013)
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...
August 1, 2013 at 10:53 am
dzoll (8/1/2013)
Msg 14624, Level 16, State 1, Procedure sp_send_dbmail, Line 260
At least one of the following parameters must be...
August 1, 2013 at 6:53 am
prakashr.r7 (8/1/2013)
The Texas A& M is superb. This site has an option of Batch processing. It just made me curious, how many addresses...
August 1, 2013 at 5:12 am
Ed Wagner (7/31/2013)
July 31, 2013 at 2:12 pm
Viewing 15 posts - 3,001 through 3,015 (of 13,461 total)