Viewing 15 posts - 2,611 through 2,625 (of 7,614 total)
The question ask for the amount of free space, correct? ... Really didn't think any of the answers were complete since ... you needed to use the size from...
November 21, 2019 at 4:35 pm
SELECT count(c.people_id) AS 'Inactives' --<<-- note counting from *right* table
FROM [BCC_DB].[dbo].[People] p
LEFT OUTER JOIN --<<-- note *LEFT* join
[BCC_DB].[dbo].[certs] c
ON p.peopleId = c.peopleId
WHERE p.status = 1
AND...
November 21, 2019 at 4:01 pm
Presumably you want the driving distance and not the "as the crow files" (straight linear) distance. For that you will need a software package. You will also need to get...
November 20, 2019 at 11:09 pm
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
Viewing 15 posts - 2,611 through 2,625 (of 7,614 total)