Viewing 15 posts - 1,771 through 1,785 (of 7,168 total)
One other question came to mind: In what order are the uniqueidentifiers being added to the TVP as they are sent to the SQL Server? If you're using .NET then...
March 3, 2013 at 10:08 pm
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...
March 3, 2013 at 9:02 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...
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.
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...
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...
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...
March 3, 2013 at 8:08 am
Shcherbunov Neil (3/3/2013)
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
...
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...
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...
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...
March 2, 2013 at 4:39 am
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...
March 1, 2013 at 5:48 pm
Viewing 15 posts - 1,771 through 1,785 (of 7,168 total)