Viewing 15 posts - 3,526 through 3,540 (of 3,957 total)
Stefan Krzywicki (5/22/2012)
Lynn Pettis (5/22/2012)
If people would just format their code they could figure out some of their own problems. Geez.
Many should format it all at once, like with...
May 22, 2012 at 11:43 pm
umar.memon (5/22/2012)
May 22, 2012 at 11:38 pm
SQL Kiwi (5/22/2012)
dwain.c (5/22/2012)
But why the COLLATION?
Perhaps one day I'll be smart enough to report a SQL bug to Microsoft and have them acknowlege it as such. I'll need...
May 22, 2012 at 10:15 pm
SQL Kiwi (5/22/2012)
dwain.c (5/22/2012)
Cool solution Paul! But could you offer an explanation of how it works?
It works out how many of each digit are in the initial string, and...
May 22, 2012 at 8:43 pm
SQL Kiwi (5/22/2012)
SELECT
REPLICATE('0', LEN(f.string) - LEN(REPLACE(f.string, '0', ''))) +
...
May 22, 2012 at 8:17 pm
For a demonstration in awkwardness and to avoid the initial split string, I humbly offer the following solution:
Create Table #temp
(MRN nchar(10) null,
additional_procedure varchar(max),
additional_procedure_Location varchar(max))
insert into #temp (MRN,additional_procedure,additional_procedure_Location)
SELECT...
May 22, 2012 at 7:31 pm
Jeff Moden (5/22/2012)
May 22, 2012 at 6:54 pm
Lynn - I believe it was a parsing opportunity and that this is the thread to which Jeff refers: http://www.sqlservercentral.com/Forums/Topic1300365-392-2.aspx
May 22, 2012 at 6:36 pm
shaunna (5/22/2012)
May 22, 2012 at 6:32 pm
Cadavre (5/22/2012)
May 22, 2012 at 6:28 pm
Cadavre (5/22/2012)
Dwain, what happens when the items are not at the beginning or end of the comma list in your code?
Doesn't work obviously! Note the statement at the end...
May 22, 2012 at 5:32 am
Jeff Moden (5/22/2012)
It's all going to suck for performance. Don't store comma separated data in a database. Split the data out and store it correctly.
If there are CPU...
May 22, 2012 at 5:00 am
niall.baird (5/22/2012)
SET @err = @@errorIF @err <> 0
BEGIN
...
END
The really funny thing is that I used to use this form too. Until I realized the SET statement would never...
May 22, 2012 at 4:57 am
While I was on my way home I kicked myself for not realizing the case it wouldn't work on.
Glad to see someone rose to the occasion and corrected me before...
May 22, 2012 at 4:55 am
Jeff Moden (5/22/2012)
Shifting gears a bit... Lynn wrote...
I have learned to stay away from scalar functions....
May 22, 2012 at 4:52 am
Viewing 15 posts - 3,526 through 3,540 (of 3,957 total)