Viewing 15 posts - 7,831 through 7,845 (of 10,144 total)
This should get you started:
DROP TABLE #TABLE1
CREATE TABLE #TABLE1 (ID INT, EmployeeName VARCHAR(20)) -- see SELECT TOP 20 in CROSS APPLY
INSERT INTO #TABLE1 (ID, EmployeeName)
SELECT 1, 'Ritesh' UNION ALL
SELECT 2,...
June 8, 2010 at 5:31 am
DECLARE @Fathers TABLE (FatherId VARCHAR(10), age INT)
INSERT INTO @Fathers
SELECT 'Father1', 12
UNION ALL SELECT 'Father1', 17
UNION ALL SELECT 'Father2', 22
UNION...
June 8, 2010 at 4:24 am
dbowlin (6/7/2010)
tosscrosby (6/7/2010)
Nyquil
Ah Yes. There is really nothing like 100 proof over the counter cold products.
Nyquil, When only a good buzz will get you through that miserable...
June 7, 2010 at 9:44 am
Lynn Pettis (6/1/2010)
Its lack of scalability is its biggest problem. A recursive CTE is still RBAR (a Modenism for Row By Agonizing Row).
Here's a little comparison between "quirky update"...
June 7, 2010 at 8:31 am
Paul White NZ (6/3/2010)
Chris Morris-439714 (6/3/2010)
Paul White NZ (6/3/2010)
Fillet-o-SmurfWould you like fries with that, sir?
Game! With chips! Where's me bow?
June 3, 2010 at 4:58 am
Richard Gardner-291039 (6/3/2010)
http://lmgtfy.com/?q=SQL+Server+2005+Delete+Query+Syntax
Stupid Question #345: Why can't I get the...
June 3, 2010 at 4:43 am
Paul White NZ (6/3/2010)
Fillet-o-Smurf
Would you like fries with that, sir?
June 3, 2010 at 3:15 am
That works Mark, nice one. So does this:
;WITH OrderedData AS (
SELECT Seq = ROW_NUMBER() OVER (ORDER BY [Name], [DateTime], Price),
[Name], Price, [DateTime]
FROM #Temp
),
Calculator AS (
SELECT fr.Seq, fr.[Name], fr.Price,...
June 2, 2010 at 9:06 am
namrata.dhanawade-1143388 (6/2/2010)
Yes.0x00F41E6A8ECB7F479AF5A6826828 is the encrypted value for the password
now I want to decrypt it (that is get it back in the varchar format)
So what you are really trying to do...
June 2, 2010 at 8:25 am
This should be reasonably quick, and it's simple to understand and use, too:
DROP TABLE #Temp
CREATE TABLE #Temp (id INT, [Name] VARCHAR(40), Price Money, [DateTime] DATETIME)
INSERT INTO #Temp (id, [Name], Price,...
June 2, 2010 at 6:52 am
Viewing 15 posts - 7,831 through 7,845 (of 10,144 total)