Viewing 15 posts - 4,201 through 4,215 (of 7,597 total)
I don't see any reason to conflate the last run with the next run. Also, when you query job activity, you need to include the session_id to make sure...
August 10, 2016 at 10:43 am
koteravindra (8/8/2016)
suppose if I have 3 columns in index with index order as ASC .
Emplid,deptid,Accountid
10 2 ...
August 9, 2016 at 11:20 am
skippyV (8/5/2016)
All these fields are nvarchar(50).
So they're not nvarchar(50) but nvarchar(max)? Yeah, that's a totally different thing. Again, can't imagine why you'd ever need unicode there, let alone "max"!!
August 8, 2016 at 11:25 am
Since you don't have quotes around the assigned value, the +000000007000 is first being converted to an int value, and then that value is converted to varchar(10). Naturally your actual...
August 8, 2016 at 8:59 am
Again, there should be no issue at all indexing on an nvarchar column (although I can't imagine why you'd actually need unicode for that type of data).
Can you post the...
August 8, 2016 at 8:57 am
There are no decimal places in the value: SQL can't possibly know to "adjust" for 2 decimal places from a varchar value. Therefore, if you need such an adjustment, make...
August 7, 2016 at 2:52 pm
skippyV (8/5/2016)
ScottPletcher (8/4/2016)
August 5, 2016 at 3:51 pm
Probably this (?):
SELECT d1.StudentID, d1.VehicleID, d1.VehicleType
FROM (
SELECT *, ROW_NUMBER() OVER(PARTITION BY StudentID, VehicleID
ORDER BY CASE WHEN VehicleType...
August 5, 2016 at 8:08 am
Here's a quick example of what Drew's talking about. Naturally adjust the ORDER BY clause as needed to get exactly the output you want:
IF OBJECT_ID('tempdb.dbo.#StudentTransportOrder') IS NOT NULL
...
August 4, 2016 at 4:05 pm
Given that there is no clustered index now, you might as well clus to match this query, something like below. If you have DATA_COMPRESSION available, be sure to use...
August 4, 2016 at 3:56 pm
I think CROSS APPLY (or OUTER APPLY if you want NULL if no match is found) will do it, but of course I can't test it without useable data.
Btw, if...
August 4, 2016 at 3:48 pm
Robert Domitz (8/4/2016)
3. Is "von Helsing" the same as "VONHELSING" or just "HELSING"? In the latter case, the originating system sliced off the "von" as a middle name!
The...
August 4, 2016 at 10:30 am
You certainly don't want to just store the entire name in one long, indistinguishable string. Trying to accurately parse that out later is virtually impossible.
As to the different rules/formats,...
August 4, 2016 at 9:35 am
1) Don't use ISNULL, you don't need it there anyway:
select c1,c2,c3 From numbers
where c3 <> 'CP-961080'
2) A nonclustered index lookup would be very inefficient here, although you might be able...
August 3, 2016 at 4:45 pm
I believe that SQL itself has an internal limit on how large of a log file it can use, so the max log size is set to that. No...
August 3, 2016 at 1:58 pm
Viewing 15 posts - 4,201 through 4,215 (of 7,597 total)