Viewing 11 posts - 46 through 56 (of 56 total)
You might also try this with a TVF.
CREATE FUNCTION dbo.FnGetDefinition(@ObjId INT)
RETURNS @DefTable TABLE(ObjectDef VARCHAR(MAX))
AS
BEGIN
INSERT INTO @DefTable SELECT object_definition(@ObjID)
RETURN
END;
GO
SELECT P.name,D.ObjectDef FROM sys.procedures As P
CROSS APPLY dbo.FnGetDefinition(p.object_id) As D
December 11, 2012 at 2:10 am
The service accounts does not need to be the same. You communicate through the endpoints.
After both the database and the tail of the log was backed up, make sure...
April 12, 2012 at 2:59 am
Don't get me wrong on being a disciple for Set based solutions!! I am all for what SQL is good at and what not.
For a relatively small Tally used in...
April 6, 2012 at 10:41 am
No, we should both be running the same million record table. This is just the tally table creation. The size should not be make a difference. I only...
April 6, 2012 at 10:08 am
Hi Jeff,
Thanks for the UPPER fix.
I have created the table using a clustered index with 50 rows
--
SELECT TOP 50 IDENTITY(INT,1,1) AS N
INTO dbo.Tally
FROM Master.dbo.SysColumns
ALTER TABLE dbo.Tally ADD...
April 6, 2012 at 7:58 am
I Agree with Gale. It will terminate anyway when it finds the first record. 1 is just the first record column placeholder which will imply that there is at...
April 5, 2012 at 3:55 pm
No. The correlated subquery just check for any occurance of a 3 consecutive alphabet string, and the TOP 1 1 returns just the first record(This is Jeffs code), and knows...
April 5, 2012 at 2:10 pm
I see what you have done, and the example is perfectly valid for demonstration purposes, and well written. I just want to emphasize best practices.
There might be a need...
April 5, 2012 at 11:00 am
Although the article showed the implementation of CLR, the examples used can in my opinion lead to bad practices. I will use check constraints for validation without CLR or...
April 5, 2012 at 3:35 am
SQL is pretty bad at doing any character manipulation and comparison. I always use LIKE, CHARINDEX etc. as a last resort. I agree, your solution performs much better ,...
April 4, 2012 at 12:08 pm
Is Instant Initialization enabled for the service account to allow the autogrow to be instantaneous?
Also if it was me I will use most of the 5GB still free (I presume...
April 4, 2012 at 3:43 am
Viewing 11 posts - 46 through 56 (of 56 total)