Viewing 15 posts - 3,196 through 3,210 (of 7,187 total)
To make it more flexible, you might consider doing it like this:
SELECT 'databaseA', columnlist FROM databaseA.dbo.table UNION ALL
SELECT 'databaseB', columnlist FROM databaseB.dbo.table UNION ALL
SELECT 'databaseC', columnlist FROM databaseC.dbo.table UNION ALL
etc...
I...
April 14, 2015 at 8:29 am
Have you looked at extended events? I don't know if it's possible to do what you're trying to do, but it's worth investigating.
John
April 14, 2015 at 8:17 am
Why not just set all databases to have the increased timeout? Is there any reason for any database not to have it? If you can only set it...
April 14, 2015 at 7:50 am
sknox (4/10/2015)
John Mitchell-245523 (4/10/2015)
Richard Warr (4/10/2015)
Where it says "116 characters or less" it means "116 characters or fewer" 😉
I would argue that either is correct. If you interpret "116...
April 10, 2015 at 9:48 am
Yes, putting a column from the outer table into your WHERE clause turns your outer join into an inner join. Try turning WHERE into AND so that it becomes...
April 10, 2015 at 8:35 am
April 10, 2015 at 5:27 am
Yes, that "Mobile Equipments" category has appeared from nowhere. But all you need is a LEFT JOIN between the two tables, so that all rows from the left hand...
April 10, 2015 at 5:25 am
No, it's not as simple as that, and the more you look at it, the more complications you'll see. What about tabs, carriage returns, schema names, comments and other...
April 10, 2015 at 5:17 am
Richard Warr (4/10/2015)
Where it says "116 characters or less" it means "116 characters or fewer" 😉
I would argue that either is correct. If you interpret "116 characters" as a...
April 10, 2015 at 4:36 am
If you're determined do this, you'll need to write yourself a parser. As far as I know, Microsoft haven't published the code for their SQL parser, so you'd be...
April 10, 2015 at 4:36 am
I've been through an exercise like this across multiple servers before, although I was lucky enough that the type of operation wasn't a requirement as it is here. I...
April 10, 2015 at 4:10 am
You need the position of the final backslash and the final underscore and to take everything between the two. You can get the position by reversing the string and...
April 7, 2015 at 5:06 am
I try to make packages self-documenting, with plenty of annotations, and tasks named to be descriptive of what they do. If you number your tasks as well, you can...
March 31, 2015 at 9:19 am
You can either pull in a directory listing for the folder that contains the backup and use that to determine the most recent, or you can query msdb on Server...
March 31, 2015 at 7:57 am
I think it's so that the CTE definition doesn't get mistaken for an index hint or something similar.
John
March 31, 2015 at 7:54 am
Viewing 15 posts - 3,196 through 3,210 (of 7,187 total)