Viewing 15 posts - 24,061 through 24,075 (of 59,099 total)
miles_lesperance (3/26/2014)
case when ISNUMERIC(SRESULT) = 1 then
CASE WHEN CONVERT(int, SRESULT) between 0 and 500 THEN '2' --Green
ELSE '0'
END
It is...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2014 at 3:57 pm
DVSQL (3/26/2014)
I am trying to split up a large database file into several smaller database files at work.
WHY? What advantage do you believe that will bring you?
Unless you can...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2014 at 3:40 pm
Ed Wagner (3/26/2014)
Cursors in SQL Server are pathetically slow, but in Oracle they're blazing fast.
I guess I wouldn't say such a thing... I worked in Oracle for about 3...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2014 at 3:09 pm
adonetok (3/26/2014)
Some users uploaded Access tables to SQL are always NVARCHAR type.I found that nvarchar cause performace problem. Is it true?
I don't know why anyone that knew anything about table...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2014 at 8:58 am
It also means that unless the OrderID column is NVARCHAR, the code isn't SARGable (can't do an INDEX SEEK) and will cause a table scan to do an implicit conversion...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2014 at 7:15 am
Sean Lange (3/25/2014)
Your function looks very similar to the DelimitedSplit8K with two MAJOR exceptions. You changed the delimiter...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2014 at 7:11 am
sqlserver12345 (3/25/2014)
Thanks Jeff/Eirikur .Should have updated the forum.I got what I was looking for.Thanks again.
What did you end up with finally?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2014 at 5:10 pm
todd 87764 (3/25/2014)
If I make a nonunique index on the ID column...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2014 at 3:02 pm
keith.westberg (3/25/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2014 at 2:59 pm
n.arley.dealey (3/25/2014)
Iโm not a DBA. In fact, itโs been a long time since Iโve been a developer, but learning the little aphorism above,...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2014 at 2:42 pm
I agree with Gail. Bulk operations don't fire triggers by default. There is a "Fire Triggers" option that you can use for such things. Other than TRUNCATE...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2014 at 7:21 am
Just to throw my hat into the ring, this can be done with a single scan of the table by updating the table in the cte directly. It can...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2014 at 7:02 am
Heh... no worries. I just love working with xp_CmdShell and wanted to make sure that people knew spaces in a name isn't an obstacle.
Thanks for the feedback..
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2014 at 6:12 am
Eirikur Eiriksson (3/25/2014)
sqlserver12345 (3/25/2014)
ascii value for commathis time the answer is 44 ๐
Heh.... I caught the reference. Too funny! ๐
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2014 at 6:06 am
If the content of the column is less than 128 characters, the you could also do the following...
SELECT QUOTENAME(Column1,'''') AS quotedColumn1
FROM TableA;
--Jeff Moden
Change is inevitable... Change for the better is not.
March 24, 2014 at 10:51 pm
Viewing 15 posts - 24,061 through 24,075 (of 59,099 total)