Viewing 15 posts - 3,496 through 3,510 (of 7,614 total)
Any WHERE conditions in particular. Typically StartTime is (almost) always compared against log-type tables. And/or the data is summarized by StartTime periods (day, week, etc.). If so, cluster the table...
March 19, 2018 at 2:26 pm
CASE WHEN ALTotalUnits / TotalProfiledHours >= 3 THEN <higher than 3 weeks>
CASE WHEN ALTotalUnits / TotalProfiledHours < 3 THEN <lower than 3 weeks>
March 19, 2018 at 2:20 pm
Alter the schema on those tables/views to 'dbo', then you should be able to view them just fine.
If it doesn't allow that, you'd have to script them out,...
March 19, 2018 at 1:37 pm
Yeah, STUFF is good stuff!
Another thing to note is that you need to STUFF from right to left. Otherwise the stuffed chars throw off the byte locations.
March 19, 2018 at 12:35 pm
If you're literally using "*" in the view, refreshing the view is often needed too. Not sure if that works for remote tables, but presumably it would (or SQL would...
March 16, 2018 at 3:33 pm
March 16, 2018 at 12:15 pm
March 16, 2018 at 8:21 am
Cluster the table by the most common search. Most searches aren't totally random each time. If this one really is, use an int (or bigint) key, not a char(20) one...
March 15, 2018 at 1:40 pm
It doesn't look like you're passing a date, you're passing an id instead, which will get interpreted as a date but it won't be the date you expect or want.
March 15, 2018 at 1:28 pm
March 15, 2018 at 7:59 am
March 14, 2018 at 11:56 am
March 13, 2018 at 2:44 pm
March 13, 2018 at 2:03 pm
March 13, 2018 at 12:40 pm
You should seriously consider specifying "ON DELETE SET NULL" in the FK relationship and let SQL do this for you rather than writing it yourself.
March 13, 2018 at 12:00 pm
Viewing 15 posts - 3,496 through 3,510 (of 7,614 total)