Viewing 15 posts - 91 through 105 (of 424 total)
It appears this thread has morphed into a Data Governance topic. We have laws at the national, state, and local levels just as we should have data models at each...
February 15, 2017 at 6:44 am
The 15 circles and relationships diagram makes perfect sense to me. My son and I have an ongoing joke that every training class, every conversation, every tutorial, all bypass step...
February 14, 2017 at 8:01 am
January 30, 2017 at 1:25 pm
January 27, 2017 at 7:28 am
I've identifying duplicate index on one of the database using this query.
WITH...
January 25, 2017 at 10:57 am
I think people are...
January 20, 2017 at 7:50 am
January 19, 2017 at 9:38 am
January 13, 2017 at 6:52 am
Yes, the server quoted identifier property is set to OFF so looks like creating the...
January 12, 2017 at 11:49 am
January 12, 2017 at 9:00 am
We really need to see your full SELECT statement to know how to optimize this although you mention your problem is mostly in maintaining this "PITA" in several procs and...
January 9, 2017 at 12:50 pm
I currently use a table function to generate a range of numbers for joining to queries. I find it is easy for others to understand and is fast enough...
January 5, 2017 at 8:21 am
Simple. Just add a few cross joins for however many you need.
WITH x(y) AS (SELECT top (1000) ROW_NUMBER() OVER (ORDER BY s.object_id) FROM sys.objects s CROSS JOIN sys.objects t)
SELECT...
January 3, 2017 at 2:33 pm
In an empty database I only got 97 numbers from sys.objects.
WITH x(y) AS (SELECT top (100) ROW_NUMBER() OVER (ORDER BY id) FROM sys.syscolumns s)
SELECT CASE WHEN y % 15 =...
January 3, 2017 at 9:24 am
I always use a ccyymmdd format such as '20161223' in all my scripts because it works regardless of many date settings. But, I suspect you have something else going...
December 23, 2016 at 12:55 pm
Viewing 15 posts - 91 through 105 (of 424 total)