Viewing 15 posts - 2,611 through 2,625 (of 7,609 total)
The codes look ok. Something else must be causing your issue.
November 19, 2019 at 5:23 pm
You can use a query to see which table the view is currently pointing at:
SELECT referenced_schema_name, referenced_entity_name
FROM sys.sql_expression_dependencies
WHERE referencing_id = OBJECT_ID('dbo.Clients')
Also, I'd suggest creating a log table in which you...
November 19, 2019 at 2:41 pm
I don't think so, I think 0 should mean your query accessed no partitions. If it had accessed all of them, the total number of partitions should be there.
Review the...
November 15, 2019 at 4:40 pm
I would never combine these tables.
I'd be much more concerned with determining the best clustered keys for each table. Or whether, perhaps, they would best be heaps (individual rows are...
November 14, 2019 at 8:08 pm
Can you post directly usable data, i.e., CREATE TABLE and INSERT statements.
November 14, 2019 at 7:07 pm
NOLOCK probably does not do what you think it does. It still will take out locks for itself on the tables you are querying
I don't think so. ...
November 13, 2019 at 9:54 pm
NOLOCK probably does not do what you think it does. It still will take out locks for itself on the tables you are querying
I don't think so. Where did...
November 13, 2019 at 6:34 pm
CREATE TABLE #table_1 (
last_updated date NOT NULL,
type_desc varchar(30) NULL,
size_bytes bigint NULL,
used_bytes...
November 12, 2019 at 10:33 pm
Other than some advanced troubleshooting cases like Jonathan says, there is no reason you should use NOLOCK in your code.
NOLOCK probably does not do what you think it does. ...
November 12, 2019 at 10:22 pm
All indexes are tuned to their best (for the current statement)
I'd rather see the actual indexes and the actual query plan for myself.
For example, how many rows are in #GRatings...
November 12, 2019 at 3:54 pm
No usable sample data, so I can't test it, but this should give you the results you want:
SELECT $month_of_year, $day_of_month,
SUM(CASE WHEN status ='success' THEN 1 ELSE 0...
November 11, 2019 at 9:20 pm
You're also better off just inserting the 'No Comments Provided' when you create the record instead of going back and updating the record later.
Drew
True, but even better would be...
November 11, 2019 at 5:10 pm
True, but that table only has 75K rows. Create an index with only CommodityID and CommodityName and, yes, SQL will still have to do an index scan, but the overall query...
November 11, 2019 at 4:39 pm
To help resolve this problem across the board, for all your queries, you really need to re-cluster the CommoditySupplier table. This is a classic case of the "default clustering by...
November 11, 2019 at 4:12 pm
WHERE DS.IsActive = 4 AND Std.DepartmentId IS NULL
November 8, 2019 at 9:56 pm
Viewing 15 posts - 2,611 through 2,625 (of 7,609 total)