Viewing 15 posts - 2,566 through 2,580 (of 39,818 total)
Invoke-SqlCmd will do this for you. If you really want a RunPS, alias it, but there's no reason to have some other cmdlet.
If you want to capture the output in...
July 23, 2020 at 10:10 pm
Standards are hard here. More, I think discussing whether a particular comment is helpful or not helps the team decide what is important and how to structure them
July 23, 2020 at 4:01 pm
Here you go:
$who = Invoke-Sqlcmd -ServerInstance "Aristotle\SQL2017" -Database "master" -Query "EXEC sp_Who"
foreach ($row in $who)
{
Write-Host ("SPID: " + $row.spid + " Status: "...
July 23, 2020 at 3:48 pm
If you take notes of what you use, what you learned, how the test goes (don't break NDA), it would make a great article.
July 23, 2020 at 3:42 pm
Thanks and glad you like them. I am trying to keep this very simple, and assuming these are new concepts for people.
Any suggestions/requests are welcome.
July 23, 2020 at 3:33 pm
Part of the game, plus you can try to use knowledge to make it an educated guess.
Most of the question I write are because I didn't know something and learned...
July 23, 2020 at 2:22 pm
Thinking more, I think colorizing based on login is likely not really what is useful. However, by role is interesting. It's usually the permission set we are about, so allowing...
July 22, 2020 at 8:10 pm
Prompt does not colorize based on the login used for the instance. That's an interesting idea. I'll submit it.
July 22, 2020 at 8:06 pm
No, I mean execute the query(ies) that the package runs from SSMS from the instance where the data will be stored.
July 22, 2020 at 8:03 pm
My guess too, which is why I'd like to break something out to check.
If it hangs in SSIS, can you get it to hang in SSMS?
July 22, 2020 at 5:19 pm
Thanks. Posted in the MVP list. Hopefully someone responds.
July 22, 2020 at 5:18 pm
I wouldn't think column order matters. At least, it shouldn't. Not sure dynamic SQL is better than just the loop shown above. I might actually store the 30 cols in...
July 22, 2020 at 4:34 pm
Separate physical drives is mostly what you want. You want separate IO paths. Depending on your architecture, it may or may not help. The other place that diff files helps...
July 22, 2020 at 4:31 pm
It's by the instant/db, but the scope is per SSMS install. So I can color my dbs/instances separate from how you do it.
July 22, 2020 at 4:25 pm
That's deprecated. I think you want master.sys.master_files
July 22, 2020 at 3:40 pm
Viewing 15 posts - 2,566 through 2,580 (of 39,818 total)