Viewing 15 posts - 36,346 through 36,360 (of 59,067 total)
Craig Farrell (10/14/2010)
Paul White NZ (10/14/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2010 at 8:10 am
Craig Farrell (10/14/2010)
Paul White NZ (10/14/2010)
For 2005 onward, consider adding the 'safety code' I mentioned - you can find it here: http://www.sqlservercentral.com/Forums/FindPost980118.aspx
Well, far be it from me to turn down...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2010 at 7:52 am
As yet another alternative... use with your favorite splitter...
http://www.sqlservercentral.com/articles/T-SQL/63003/
I also recommend NOT using a recurrsive CTE for such a thing because it's just too slow.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2010 at 12:06 pm
rishabh.upkr (10/14/2010)
Your range is staticmeans %%%%%%%%%%0001-%%%%%%%%%%003
or it will change on some condition
Can you explain what your talking about just a bit more?
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2010 at 5:11 am
R.P.Rozema (10/14/2010)
(tnx Jeff)
You bet. Thanks for the feedback and thanks for the code to play with. It's always nice to see when folks gen more than 10 rows...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2010 at 11:17 pm
aspardeshi (10/14/2010)
I have a typical scenario. I have a table for students. When I enter username required for parents in student master the parent master table needs to be...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2010 at 10:53 pm
SKYBVI (10/14/2010)
Ya, i noticed that there was no use, as the rows were not according to that..(order by) in the new table..
I had to delete 1-2 columns( as per...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 14, 2010 at 3:52 pm
Very cool, Joe. I'm thinking that you didn't test it...
[font="Courier New"]Msg 207, Level 16, State 1, Line 18
Invalid column name 'part_id'.
Msg 245, Level 16, State 1, Line 2
Conversion failed...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 13, 2010 at 8:03 pm
ta.bu.shi.da.yu (9/17/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 13, 2010 at 7:38 pm
reggie burns-317942 (10/13/2010)
I removed the Loop hint and it seem to make the performance worse than what it was before the move.It degraded tremendously with the loop hint removed.
Did...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 13, 2010 at 7:21 pm
Nick123-481228 (10/13/2010)
Id int NOT NULL,
Date smalldatetime NOT NULL,
CreatedDate smalldatetime NOT NULL,
Price float NOT NULL,
Currency int NULL,
LastChangeDate smalldatetime NULL
)
insert @Prices
select 1,'20030101','20090203','9.48',6,'20030101' union all
select 1,'20030102','20090203','9.48',6,'20030102' union all
select 1,'20030103','20090203','9.48',6,null union...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 13, 2010 at 7:17 pm
Nick123-481228 (10/13/2010)
Id int NOT NULL,
Date smalldatetime NOT NULL,
CreatedDate smalldatetime NOT NULL,
Price float NOT NULL,
Currency int NULL,
LastChangeDate smalldatetime NULL
)
insert @Prices
select 1,'20030101','20090203','9.48',6,'20030101' union all
select 1,'20030102','20090203','9.48',6,'20030102' union all
select 1,'20030103','20090203','9.48',6,null union...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 13, 2010 at 7:14 pm
Absolutely perfect reply. Mr. Thompson, my hat is off to you again and again. Would you send me a thimble-full of that incredible calm but firm ability-to-deal-with-people of...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 13, 2010 at 7:06 pm
Sahasam (10/12/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 13, 2010 at 6:42 pm
Brandie Tarvin (10/13/2010)
I am extremely curious what part of "old code" you didn't understand...
Heh... be careful, Brandie. It may not be the OP's code but the code isn't THAT...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 13, 2010 at 6:36 pm
Viewing 15 posts - 36,346 through 36,360 (of 59,067 total)