Viewing 15 posts - 5,656 through 5,670 (of 8,416 total)
Hey Barry,
I take your point about the double-ROW_NUMBER. As always, the important thing is to test.
As far as re-writing your excellent effort is concerned - thanks, but I think...
March 8, 2010 at 5:36 am
A few constructive criticisms, Barry:
Running a full-text search with a variable as a parameter can be problematic. You might have noticed that the full-text engine can provide very good...
March 7, 2010 at 11:53 pm
If, for some reason, a persistent Numbers table is not an option, you can generate one as required using an in-line table function:
CREATE FUNCTION dbo.GetNumbers
...
March 7, 2010 at 10:55 pm
Paul Rony (3/7/2010)
Will this approach work on SQL Azure?
No idea. My posted example was to meet the requirements set by hjo-483301. As I said before, there are better...
March 7, 2010 at 10:45 pm
Another method, just because I like segment operators:
DECLARE @T
TABLE (
id INTEGER...
March 7, 2010 at 10:40 pm
Paul Rony
...the access rights required to access this table may be greater than what is typically allowed.
This is what the EXECUTE AS clause of CREATE TRIGGER is for.
Paul Rony
March 7, 2010 at 10:16 pm
When you upgrade to SQL Server 2008, you might find Change Data Capture meets you needs. It is certainly easier than creating a customized audit system using triggers.
Details: http://msdn.microsoft.com/en-us/library/bb522489.aspx
March 7, 2010 at 10:08 pm
You should definitely not use sp_getbindtoken for new developments.
Books Online: sp_getbindtoken
March 7, 2010 at 9:53 pm
There are additional system views if you are looking for a particular type of constraint.
Examples include:
Paul
March 7, 2010 at 8:50 pm
Jeff Moden (3/7/2010)
Heh... OMG! Under the category of "Are the posted ANSWERS getting worse?"http://www.sqlservercentral.com/Forums/Topic877218-1292-1.aspx#bm878332
That's funny! I wonder if it was intended to be...? Hmmm!
March 7, 2010 at 6:38 pm
Chris,
Wherever did you get the idea to use an alias name of iTVF?
:laugh:
Paul
March 6, 2010 at 9:10 am
Simple:
SELECT name FROM @Data EXCEPT
SELECT name FROM @Data WHERE fruit = 'Apple';
:w00t:
Full test rig
DECLARE @data
TABLE (
name ...
March 6, 2010 at 8:56 am
Hey Jeff,
There's a faster method than that in 2005 (and I don't mean CLR):
USE tempdb;
GO
IF OBJECT_ID(N'tempdb..#Binary', N'U')
IS...
March 6, 2010 at 8:38 am
beep...beep...beep...beep.............................................beeeeeeeeeeeeeeeeeeeeeeep!
March 4, 2010 at 5:48 pm
Viewing 15 posts - 5,656 through 5,670 (of 8,416 total)