Viewing 15 posts - 1,726 through 1,740 (of 7,168 total)
I am happy you found a way forward but as a side comment I must say that your code raises several red flags. The dynamic cursor is a close second...
March 7, 2013 at 12:24 am
SW21_Bob (3/6/2013)
More specifically, are synonyms replaced with fully qualified names in execution plans? It would seem to me that any synonym has to...
March 7, 2013 at 12:15 am
Here's how I usually handle it:
DECLARE @long_string NVARCHAR(MAX) = N'Hello world!';
SELECT @long_string AS [processing-instruction(long_string)]
FOR XML PATH(''),
...
March 7, 2013 at 12:03 am
Is there a way that a developer with dbo rights in a database can explicitly grant themselves view definition permissions on a stored procedure they create as dbo?
What JeremyE showed...
March 6, 2013 at 11:56 pm
David Conn (3/6/2013)
C. This was my first encounter with uninitialised variables.
Thanks. I am pretty sure that aspect of C "fell off my memory queue" a long time ago 😛
At least...
March 6, 2013 at 11:42 pm
You can check the dependencies of the table using the Catalog Views:
USE AdventureWorks2008R2;
GO
SELECT referencing_schema_name,
referencing_entity_name,
...
March 6, 2013 at 11:34 pm
David Conn (3/6/2013)
The ones that don't tend to just leave the Variable with whatever is in its memory location.
Yikes, not sure I know (or knew or remember) which might do...
March 6, 2013 at 11:20 pm
I'll second that. I almost exclusively favor traditional temporary tables over the use of table variables. Performance is one reason, which you may be experiencing first hand, and ease of...
March 6, 2013 at 11:17 pm
SSIS Packages are not backward compatible. You could rewrite the packages in 2008 format or you could install SQL 2012 in the production environment. SSIS 2012 Packages will happily communicate...
March 6, 2013 at 8:10 pm
You would modify your proc to set CONTEXT_INFO before you did the UPDATE.
SET CONTEXT_INFO 0x1256698456
Then in your trigger you would check CONTEXT_INFO and if you found it had the...
March 6, 2013 at 3:55 pm
ddg8885 (10/20/2010)
March 6, 2013 at 3:42 pm
Just had this same question on another thread with a trigger and doing a large insert...almost verbatim from the other thread:
One thing I can say is that if you were...
March 6, 2013 at 3:28 pm
These are the two indexes involved in the deadlock:
CREATE UNIQUE CLUSTERED INDEX [CI_Patient_PracticeID_PatientID] ON [dbo].[Patient]
(
[PracticeID] ASC,
[PatientID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY...
March 6, 2013 at 1:23 pm
I still don't think we have seen the code for object 1945422350.
March 6, 2013 at 1:14 pm
Viewing 15 posts - 1,726 through 1,740 (of 7,168 total)