Viewing 15 posts - 151 through 165 (of 1,162 total)
You need to find the rows that don't convert. Try this out to find the offending rows:
CREATE TABLE #validdatesasints ( date INT PRIMARY KEY )
DECLARE @ValidDateStartValue DATE= '19000101' , --technically...
June 20, 2013 at 7:45 am
Nothing wrong with the syntax, so you must have values in the column that aren't a valid date value.
Look at the following examples:
DECLARE @lastrundate INT='20130228'
SELECT CONVERT(date, CONVERT(VARchar(18), @lastrundate))
--success
DECLARE @lastrundate...
June 20, 2013 at 7:25 am
Well, you need to check, but if you have case-insensitive collation in the database/columns, then the function is doing nothing other than preventing index seeks.
You can check the database collation...
June 20, 2013 at 6:24 am
The devil's in the detail.
A predicate/join that wraps a function around a column will indeed become un-SARGable (cannot seek on an index), so, this would cause a table/index scan, regardless...
June 20, 2013 at 6:05 am
Most internal operations (spills into TempDB in execution plans etc.) either log very little, or nothing at all, but explicitly created temporary objects (table variable, temp tables etc.) do. Are...
June 19, 2013 at 8:06 am
What do you mean by "file type specific"? The file with the ldf extension is the log file and it's used for exactly what I explained above. Perhaps if you...
June 19, 2013 at 7:24 am
Although crash recovery is never required for TempDB, transactions can be rolled back, just like in any other database. Therefore, although the logging is optimised for never requiring a roll...
June 19, 2013 at 7:17 am
Are the extensions visible in the output of the following:
SELECT * FROM sys.fulltext_document_types
If not, the filters need installing.
June 19, 2013 at 2:22 am
The physical insert will start occurring as soon as the Insert Operator in the plan has rows.
In some cases that will be pretty much immediate, but it needs to...
June 18, 2013 at 9:50 am
The Dixie Flatline (6/18/2013)
June 18, 2013 at 9:20 am
Are you running the latest version of the MySQL Driver? There are a few closed bugs for this sort of error in the MySQL dev site.
June 18, 2013 at 5:09 am
Shared storage is not required for Availability Groups, and nor should any dependency of your replicas be shared.
I believe this network location is just requested by the wizard to do...
June 18, 2013 at 4:17 am
Nope, exactly the same. The first thing the optimiser will do when you execute the query against the view is expand the underlying definition and run that.
You can however create...
June 18, 2013 at 4:05 am
HowardW (6/17/2013)
Steve Jones - SSC Editor (6/17/2013)
This week is the first SQL in the City of 2013. Anyone coming?
It slipped my attention that it was in London this week and...
June 18, 2013 at 3:07 am
aaron.reese (6/17/2013)
June 17, 2013 at 10:24 am
Viewing 15 posts - 151 through 165 (of 1,162 total)