Viewing 15 posts - 1 through 15 (of 23 total)
January 17, 2017 at 8:25 am
In that case, just wrap your columns that potentially have NULLs in them with ISNULL(column, 0). In the case you gave, you could do this:
SELECT [Emp_no.], Org_Code, Org_Num FROM #Employee
EXCEPT...
May 12, 2016 at 1:49 pm
Thanks for the responses guys. I tried out the DBCC FREEPROCCACHE with the plan handle and it works just fine with a read-only DB, so I'll use that while working...
May 11, 2016 at 1:46 pm
Looks like I'm using the same collation as you. I checked and the database, table and column are all using SQL_Latin1_General_CP1_CI_AS collation.
Like I said though, there are several other...
September 16, 2015 at 3:32 pm
Strange. It actually turns out, that just putting the OPTION(Recompile) at the bottom of the query without the casts also works. I've tried this on other tables (both...
September 16, 2015 at 3:06 pm
Thanks for taking the time to reply Scott. Attached is the query plan from my smaller test copy of the database (there's only a couple million rows in the...
September 16, 2015 at 2:21 pm
I think the problem is that because of the conversion, it has to go through the whole index to find that there is in fact no value that = 0...
September 16, 2015 at 8:22 am
If I'm understanding what you want, you might try doing a CTE:
;WITH IDRank AS (
SELECT t.Name,
t.ID,...
September 15, 2015 at 4:24 pm
ScottPletcher (8/17/2015)
WHEREtbl.Body + '.' LIKE '%[^a-z]'+pm.OldFirstName+'[., ]%'
Thanks! It took me a sec to figure out what you were doing (it's Monday morning) but it's exactly what I needed. ...
August 17, 2015 at 11:12 am
TheSQLGuru (1/26/2015)
Profiler will be better mechanism to capture the tsql that is causing DML on the table I think. See my earlier post.
Profiler or Extended Events? We're running...
January 26, 2015 at 9:59 am
Also, I verified that there is no shrinking occurring on the database. Like Jeff said, if shrinking was happening, the fragmentation would go way up and it would happen...
January 26, 2015 at 8:44 am
Steve Jones - SSC Editor (1/25/2015)
Maybe a simple question, but after the rebuild, is the fragmentation low or is it unchanged?
I had set up a job previously that captures the...
January 26, 2015 at 8:38 am
I think what everyone is saying is try not to reinvent the wheel with your own specific jobs. Ola's maintenance scripts work really well, are configurable and are updated...
January 23, 2015 at 4:56 pm
So, back to my original topic. After getting a little bit of time today to do some testing of the various things that have been suggested, here's what I...
October 8, 2014 at 5:02 pm
First of all, thanks for the responses. I don't think SQL Injection is a big problem given that the only time this procedure is called is by an application...
September 30, 2014 at 5:00 pm
Viewing 15 posts - 1 through 15 (of 23 total)