Thursday, July 18, 2019
Installed AutoHotKey Today
I feel like this could be a really powerful tool but have not taken the time to explore
https://www.autohotkey.com/
Wednesday, July 17, 2019
Strategy for Debugging Stored Procs When you have very few Permissions
Preconditions:
Insufficient Privileges such that...
Insufficient Privileges such that...
- Can't run debugger on stored procs in DB
- Can't create new stored procs in DB
- Can't modify stored procs in DB
- Can't delete stored procs in DB
You CAN:
Execute scripts and Modify Rows
Strategy:
- Copy entire Stored Proc
- Paste it into a new query window
- Change the proc's parameters to Variables (DECLARE @FOO AS VARCHAR(25) = 'Bar';)
- Remove all stored proc syntax from top and bottom of script
- Get it to run in SSMS Query Window
- Add Debugging code in the best form fitting the current circumstances
- If so desired, copy SQL into C# code and ADO.Net it from there (or whatever)
Just think outside the box.
Subscribe to:
Posts (Atom)
C# Sucks!
JK!! Seriously, though, somewhere around C#-3 we should have inculcated ourselves with the question: "Does 'CAN' == 'SHOULD...
-
That pesky problem has reared its ugly head again! I remembered that its a permissions problem but forgot the wrinkle where you have to REMO...
-
Today I learned that it is possible to call private and protected methods by using reflection. This is a great technique for Unit Testing su...