Viewing 15 posts - 1,771 through 1,785 (of 7,164 total)
I recommend having a clustered PK on all TVPs. I enforce this in code reviews too. 1) it keeps data transfer to a minimum by forcing sloppy development from passing...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 3, 2013 at 9:02 am
Anytime, thanks for the feedback.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 3, 2013 at 8:54 am
aviadavi (3/3/2013)
OK.chance that NOLOCK will be ignored is other thing than NOLOCK to be harmful. so I can keep this NOLOCK anyway, what do I have to lose here?
In this...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 3, 2013 at 8:51 am
You're updating the table you're selecting from and trying to use NOLOCK on so chances are the NOLOCK will not be respected.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 3, 2013 at 8:29 am
NULL variable-length columns are returned as NULL based on the metadata of the table (and the NULL-bitmap of the record) when the result set is constructed but occupy no space...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 3, 2013 at 8:25 am
For one, NOLOCK is ignored for updates. Think about it.
Also, even if data is not overlapping it does not mean that pages may not overlap. Page splits from updating records...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 3, 2013 at 8:18 am
Because of how NULL variable-length columns are stored you should not see a difference in your two sample tables.
Try changing one of the columns to fixed-length though and you'll...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 3, 2013 at 8:08 am
Shcherbunov Neil (3/3/2013)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 3, 2013 at 7:57 am
I am assuming you altered the graph before posting since the first query has a syntax error in it:
WITH TableA_CTE
...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 3, 2013 at 7:52 am
Here is what I use to monitor Database Mail. Run it in your environment and see if it turns up any useful information.
DECLARE @days_ago_start INT
---------------------------------------------------------------------------------------
SET @days_ago_start = 7
---------------------------------------------------------------------------------------
SELECT fi.send_request_date...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 3, 2013 at 7:16 am
I am assuming the PK on the parent is an IDENTITY column? In those cases I use an OUTPUT clause on the INSERT...SELECT to capture the new IDENTITY value for...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 2, 2013 at 11:53 am
What comes to mind initially is that @cmd is sometimes ending up NULL due to @c1 or @t1 (coming from the cursor-select) being NULL since anything+NULL=NULL. Try adding some logging...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 2, 2013 at 4:39 am
Nah, see my last post.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 1, 2013 at 5:58 pm
If you connect to the Dedicated Admin Connection (DAC) you can run this query against the restored copy of master to retrieve the previous setting:
SELECT value AS [max server...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 1, 2013 at 5:48 pm
Was curious so just tried it myself but no dice. sys.configurations uses a rowset and a system view that eventually point back to the real master.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 1, 2013 at 5:35 pm
Viewing 15 posts - 1,771 through 1,785 (of 7,164 total)