Viewing 15 posts - 3,691 through 3,705 (of 7,609 total)
SELECT *
FROM #Date
WHERE ISDATE(DateString) = 0 OR
DateString NOT LIKE '__[/.-]__[/.-]____' OR
SUBSTRING(DateString, 3, 1) <> SUBSTRING(DateString, 6, 1)
November 13, 2017 at 11:55 am
November 13, 2017 at 11:46 am
It's no longer needed for moving files around on the same instance. Instead you can update the master catalog with the file locations, take the db offline, move the files,...
November 13, 2017 at 11:40 am
You don't need an ID in this table at all (at least on what's known so far); in fact, as so often is the case, it corrupts what would be...
November 9, 2017 at 10:30 am
It may depend on specifically what you're trying to do.
For example, if you just want to execute a stored proc in the context of that db, you can...
November 9, 2017 at 10:23 am
November 7, 2017 at 2:14 pm
Based on what's been show so far, I believe the best clustering key for this table would be:
( ProductCode, ValidFrom, ValidTo )
rather than just ValidFrom and ValidTo, assuming...
November 7, 2017 at 2:02 pm
Yeah, your "DBAs" are dead wrong, and don't seem to understand indexing at even a basic level, which is a tough situation for you (and all the dbs they control!).
November 7, 2017 at 1:48 pm
It seems as if you'd be scanning both tables anyway, since you're reading all the master and details (?).
Maybe just?:
FROM Details d
INNER JOIN Master m...
November 6, 2017 at 12:53 pm
If you know that all rows in table1 come before rows in table2, you can go ahead and assign the ranking as part of the load of the table. ...
October 31, 2017 at 12:38 pm
The best way to do this is to cluster the table on ( id, iDate ); that is, the clustered index on the table should be on those columns. And,...
October 31, 2017 at 11:47 am
October 23, 2017 at 4:19 pm
October 23, 2017 at 8:25 am
Viewing 15 posts - 3,691 through 3,705 (of 7,609 total)