For a question titled "Why is RDBMS Type not a required field on this exchange?" I find this comment interesting: "It's interesting that you interpreted "hand holding" as Forcing a platform to be selected..."
I haven't been on this stack very long but there seems to be a consistent issue of people not listing their RDBMS platform. Makes answers difficult or irrelevant if submitted. Seems like we need some hand-holding here!
Using SQL Server I need to run identical selects across servers and databases which share same data structure, I do have server names and catalog names as string data columns; what's the smart way in general to do things like that? Dynamic SQL? Cursors?
OK let me gather my thoughts. SQLCMD is defnitely an option. PowerShell could be as well, though I'd prefer to keep things inside SSMS, if possible :)
I'll post on the DBA.SE site after a while, probably tomorrow
Dynamically creating linked servers sounds like it could be fun too, a bit above my head for now. I have a feeling I might start hanging around here more often
I've done a small amount of dynamic, mostly at the column/table level though
My initial thought was to create a table var with the server and catalog names each in a column, create a loop or cursor of some kind iterating over each pair, then go through the data processing from there, which will be the same in each case, using dynamic; sound reasonable?
Of course if I could avoid loops and do it set-based would be even better, but I really don't know how I would do that lol
@Phrancis ahhh the wonders of dynamic SQL. If you think you have a headache now, wait till you start doing dynamic SQL inside dynamic SQL. Have a good night!
I'm a seeing a bunch of "There have been 256 misaligned log IOs which required falling back to synchronous IO" errors. I know what's causing them, but does anyone know if this is going to make the whole log writer thread block while I/Os complete?
It might be a reasonable question for the site or a topic for a blog post I guess.