Viewing 15 posts - 3,331 through 3,345 (of 7,615 total)
Or, better yet, just go back to properly using 1NF in the table and store all values as atomic, i.e., individual columns. The computed column should be the concatenated value,...
June 12, 2018 at 1:06 pm
June 12, 2018 at 1:04 pm
1) No, afaik.
2) Yes, [H]HHHMMSS.
3) I've no longer got CDC jobs really, but I don't remember seeing that phenomenon when I did, very interesting.
June 12, 2018 at 12:59 pm
WHERE/ON SUBSTRING(string, CHARINDEX('-', string) + 1, 5) = ...
June 12, 2018 at 10:27 am
To get the avg total time, you could do this:
DATEADD(SECOND, SUM(DATEDIFF(SECOND, 0, TotalTime)) / COUNT(TotalTime), 0)
June 12, 2018 at 10:23 am
Here's a rewrite of the first query (before the UNION ALL). I don't have time to do both but they look very similar. The second two subqueries can be combined...
June 12, 2018 at 8:12 am
Create a new table on database A to hold database B's data: host name, OS info, etc. For the sake of argument, let's say the new table is named "ip_details". ...
June 11, 2018 at 12:33 pm
June 11, 2018 at 8:28 am
Are you licensed for all the CPUs? At one time, the affinity mask was used to run on machine that had more processors than you were licensed for, by cancelling...
June 8, 2018 at 2:23 pm
Not easily, no. With the current query,for example, we have no way of knowing which row is the last pax.
Btw, you should truncate not round, or you will...
June 7, 2018 at 1:46 pm
This is relatively straightforward (the difference between start time and end time, for selected hours only), but you'll need to post directly usable data. That is, CREATE TABLE and INSERT...
June 7, 2018 at 11:42 am
The "standard" way to do that is to make sure the key doesn't already exist in the table to be insert to. If you need to, delete dups from the...
June 7, 2018 at 11:32 am
The table's already clustered by [TRANSACTION_TIME]. That's fantastic, it'll make your job so much easier. We'll just want to increase the fill factor from 90 to 99 for the historical...
June 6, 2018 at 3:02 pm
Need to see the definitions of indexes too, especially for the clustered index (or pk, as that will be the clustering key unless you explicitly say it isn't).
You...
June 6, 2018 at 12:07 pm
Is(are) there any index(es) at all on this table? If not, you'll definitely want to "create a brand new table to insert into while the old table data is being...
June 6, 2018 at 11:32 am
Viewing 15 posts - 3,331 through 3,345 (of 7,615 total)