Viewing 15 posts - 3,001 through 3,015 (of 13,469 total)
ok, you have a requirement that is a little scary for me (ALL bit flas no matter what/all varchars no matter what)
*note this is changing ALL CURRENT DEFAULT VARCHAR FIELDS...
August 2, 2013 at 7:40 am
halifaxdal (8/2/2013)
Then how do I loop each field and find if there is a constraint on it? and get the constraint's name if I have to put the name there...
August 2, 2013 at 7:18 am
basic example:
CREATE TABLE [dbo].[SALESDATES] (
[ID] INT IDENTITY(1,1) ...
August 2, 2013 at 7:12 am
halifaxdal (8/2/2013)
I...
August 2, 2013 at 7:01 am
i'm not sure what you are after here, might need a little clarification.
Are you talking about Data Masking like this article? Where you obfuscate/replace sensitive data on a copy of...
August 2, 2013 at 6:09 am
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
Viewing 15 posts - 3,001 through 3,015 (of 13,469 total)