Viewing 15 posts - 106 through 120 (of 560 total)
GilaMonster (4/13/2015)
sql-lover (4/11/2015)
I am not looking for how many rows exactly I have on a table. I am looking for those tables without any rows.
IF EXISTS (SELECT 1 FROM TableName)
...
April 13, 2015 at 7:47 am
GilaMonster (4/13/2015)
Sean Lange (4/10/2015)
sql-lover (4/10/2015)
SELECT
t.name table_name,
s.name schema_name,
p.rows AS total_rows
FROM sys.tables t
join sys.schemas s on (t.schema_id = s.schema_id)
join sys.partitions p on (t.object_id =...
April 13, 2015 at 7:45 am
Eirikur Eiriksson (4/11/2015)
sql-lover (4/11/2015)
Eirikur Eiriksson (4/11/2015)
sql-lover (4/11/2015)
Grant Fritchey (4/11/2015)
April 11, 2015 at 2:26 pm
Eirikur Eiriksson (4/11/2015)
sql-lover (4/11/2015)
Grant Fritchey (4/11/2015)
April 11, 2015 at 2:10 pm
Grant Fritchey (4/11/2015)
April 11, 2015 at 7:13 am
Thanks for the responses so far.
I need 100% certainty. The DMV/count is needed to identify the table(s) with an empty set. A massive DDL change will be deployed against those...
April 10, 2015 at 2:11 pm
I know this won't answer your question but why you are still running SQL 2000? If I was you, I would put all my effort and convince upper management that...
April 2, 2015 at 9:45 am
Eirikur Eiriksson (4/1/2015)
You can use the free version of SQL Sentry Plan Explorer to obfuscate it.😎
I've been using it for several years now, it does not allow you that, by...
April 2, 2015 at 7:38 am
I fixed it. Even though I wrote the query in 3 different ways the performance did not improve, in fact, it got worse. I always try to fix performance issues...
April 2, 2015 at 7:30 am
Eirikur Eiriksson (3/31/2015)
sql-lover (3/31/2015)
I'm having some performance issues with a TSQL query. It's a complex statement but the main issue is the correlated query.
Post the full query, the table structure...
April 1, 2015 at 8:04 am
There is an ORDER BY , but I did not post it. But the TOP and ORDER BY are there just for testing. They actually do not exist in the...
March 31, 2015 at 6:05 pm
Luis Cazares (3/31/2015)
I'm leaving both options. Note that the join needs to calculate all the values before joining and that's why it...
March 31, 2015 at 4:08 pm
I am trying to eliminate the subselect.
Anyway, I was able to convert it to an INNER join, but it actually performs slower.
March 31, 2015 at 3:13 pm
Found the answer via Google:
https://technet.microsoft.com/library/Cc917715
But Aaron confirmed.
I will quote what technet says, the relevant part:
The indexed view can be used in a query execution in two ways. The query can...
March 26, 2015 at 2:17 pm
Lowell (3/13/2015)
i...
March 13, 2015 at 8:05 am
Viewing 15 posts - 106 through 120 (of 560 total)