Viewing 15 posts - 8,056 through 8,070 (of 15,381 total)
I for one would be super interested in seeing how you reverse engineer your indexes. I just went through this process and I have a feeling yours will be better...
June 6, 2013 at 3:13 pm
ScottPletcher (6/6/2013)
Given table1 with columns "id" and "value", where each id has 1 to 3 values/rows in the table:
Describe the essentials of a single query (no subquery, CTE, etc.)...
June 6, 2013 at 3:12 pm
DO NOT RUN THIS IN PRODUCTION!!!! It is slow and will consume massive amounts of resources. Get a copy to a dev server and run this there.
I used a VERY...
June 6, 2013 at 2:59 pm
bslchennai (6/6/2013)
Hi Lange,This a one time analysis process only.
OK so next question is do you care if there are actually NULL values in the table or is it good enough...
June 6, 2013 at 2:27 pm
bslchennai (6/6/2013)
Please help me on finding the Null values on indexed columns from all tables in SQL Server.
I need a SQL query to find all the indexed columns which is...
June 6, 2013 at 2:20 pm
I think you should be able to tweak the logic in this article to achieve what you are looking for.
http://www.sqlservercentral.com/articles/SQL+Puzzles/findinggapsinasequentialnumbersequence/2336/%5B/url%5D
Here is another article covering this topic.
http://www.sqlservercentral.com/articles/Advanced+Querying/anefficientsetbasedsolutionforislandsandgaps/1619/%5B/url%5D
June 6, 2013 at 2:13 pm
Luis Cazares (6/6/2013)
Sean Lange (6/6/2013)
Here is another:
select stuff(isnull(col1 + '/', '') + isnull(col2 + '/', ''), LEN(isnull(col1 + '/', '') + isnull(col2 + '/', '')), 1, '')
from Table_1
Sean, you gave...
June 6, 2013 at 1:42 pm
What you had was VERY close. Both Lynn and I had a solution that returned the values instead of IDs. I have to say that returning the IDs seems very...
June 6, 2013 at 1:39 pm
Here is another:
select stuff(isnull(col1 + '/', '') + isnull(col2 + '/', ''), LEN(isnull(col1 + '/', '') + isnull(col2 + '/', '')), 1, '')
from Table_1
June 6, 2013 at 1:21 pm
Dird (6/6/2013)
Sean Lange (6/6/2013)
June 6, 2013 at 1:01 pm
Ed Wagner (6/6/2013)
June 6, 2013 at 12:43 pm
Dird (6/6/2013)
Sean Lange (6/6/2013)
June 6, 2013 at 12:41 pm
Ed Wagner (6/6/2013)
June 6, 2013 at 12:23 pm
Dird (6/6/2013)
Sean Lange (6/6/2013)
But what do you mean by "But then the iztec way avoids disk reads"? Do you mean by creating the tally table on the fly?
Yes, according to...
June 6, 2013 at 12:18 pm
dbman (6/6/2013)
Apologies: Below are the full table structures, sql, datasets i am using
This is still not consumable ddl. I should able to copy and paste your post into SSMS and...
June 6, 2013 at 10:54 am
Viewing 15 posts - 8,056 through 8,070 (of 15,381 total)