Viewing 15 posts - 1 through 15 (of 94 total)
It works but you pointed the major downside of it. Maintainability is a nightmare.
Agree XD
August 11, 2015 at 7:26 am
Yeah, I already thought of dynamic sql, but didn't like the idea since my procedure is a long one and it'll make the script less readable and harder to update...
August 11, 2015 at 7:12 am
Well actually :hehe: just a bit for some aesthetics, hahaha. yeah, not really important.
See, my boss liked how my script produces print outputs, and having the default SQL error output......
August 11, 2015 at 7:10 am
:w00t: Yeah, I've thought about binary, just thinking... wonder what's on their mind why they decided to implement this. XD
November 11, 2010 at 12:20 am
Hi,
just read the forum today. I know your gonna use XML already but... :hehe:I still wanna have fun with this just for additional knowledge.
DECLARE @Student TABLE (id int, fieldname varchar(max),...
September 13, 2010 at 1:17 am
Hi there,
I tried this one:
SELECT ID FROM @Student s
EXCEPT
SELECT sf.ID FROM @Student s
INNER JOIN @Search_Parameter sp ON (s.fieldname=sp.fieldname AND s.value=sp.value)
RIGHT OUTER JOIN @Student sf ON (sf.id=s.id AND sf.fieldname=s.fieldname)
WHERE s.id IS...
September 8, 2010 at 8:42 pm
Just noticed something small but not really that important.
rename E6 to E8 ???
just noticed hehehe XD
thanks for the function ^__^
September 1, 2010 at 12:10 am
ColdCoffee (8/31/2010)
But tel me, isnt that a interview / homework question? IF u learn the answer from us, when will you learn it yourself ? :ermm:
agree
August 31, 2010 at 12:55 am
Hi there,
I'm not quite sure if this is a good implementation but atleast it doesn't use sub query.
--//SAMPLE TABLE
DECLARE @tbl TABLE
(
Value DECIMAL(5,2)
)
--//SAMPLE DATA
INSERT INTO @tbl
SELECT 112.34
UNIONSELECT 256.78
UNIONSELECT 390.12
UNIONSELECT 434.56
UNIONSELECT 178.90
UNIONSELECT...
August 31, 2010 at 12:16 am
:w00t: COOL! Thanks a lot everyone.
:hehe: I haven't used SET STATISTICS TIME (ON|OFF) before. Thanks 😀
that's the one you guys used right? or is there a tool or something like...
August 30, 2010 at 11:29 pm
Jeff Moden (6/29/2010)
WayneS (6/28/2010)
lmu92 (6/28/2010)
This thread include a post by WayneS showing the DelimitedSplit8K function I'm using at the moment.
I believe I saw a follow-up post from Jeff where he...
August 27, 2010 at 1:33 am
:w00t: First of all, thanks kingston, steveb and skcadavre
I saw the links using tally via table and CTE
I have 2 follow up questions.
Question 1:
Use tally table or CTE... which is...
August 27, 2010 at 1:28 am
Kingston Dhasian (8/26/2010)
OPTION (MAXRECURSION 0)
But always make sure you don't go into an infinite loop by using...
August 26, 2010 at 3:43 am
hmmmm...
:hehe: I was planning to create a generic function which gets a comma separated list of words in a string and use CTE to seperate those strings to table rows.
:-)...
August 26, 2010 at 3:38 am
Hi There,
(edited my post)
--// SAMPLE PROCEDURE
CREATE PROCEDURE dbo.usp_my_stored_proc
@value1 INT,
@value2 INT,
@value3 INT
AS
BEGIN
SELECT @value1 AS 'Value1'
...
July 15, 2010 at 12:28 am
Viewing 15 posts - 1 through 15 (of 94 total)