Viewing 15 posts - 3,691 through 3,705 (of 59,067 total)
A default value doesn't do an update once the entry is populated by a default and it needs to change with every action.
The trigger "prevents" (assuming...
March 28, 2022 at 4:52 pm
Most people won't even try it because it uses xp_CmdShell but if you use it to call SQLCmd to do the same thing and capture the output of the xp_CmdShell,...
March 28, 2022 at 5:48 am
As a bit of a sidebar, the "poor man's" method of auditing that includes a variable width NVARCHAR or VARCHAR column to store the name of the person or thing...
March 28, 2022 at 2:24 am
I correct the code in the INSERTED section of the trigger. Changed to...
, TrnxUserId = i.CrtBy
March 28, 2022 at 2:11 am
Hi Jeff Moden,
Your Trigger looks working (Insert & Update). But Delete, I need TrnxUserId same like CrtBy and UpdBy. Not User in SQL Server
To do that, you'd first have...
March 28, 2022 at 1:55 am
p.s. That looks like a shedload of code. It actually isn't. The forum software nearly double-spaces code. 🙁 🙁 🙁
March 28, 2022 at 1:24 am
Ok... I don't even know how to spell SSRS. The following creates a test table for others to play with and I use it to create an output that SSRS...
March 28, 2022 at 1:12 am
I found the following chart a few days ago. It's based on "unlimited" attempts instead of a "3 strikes and you're out" methodology.
March 27, 2022 at 6:52 pm
p.s. For those getting ready to recommend temporal tables... I love them because they auto-magically do a lot of what I said especially when it comes time to doing point-in-time...
March 27, 2022 at 6:33 pm
I firmly believe that one shouldn't have to read all of the code to figure out what it does to figure out what section of the code to work with. ...
March 27, 2022 at 6:24 pm
Does the attendance table that you're deriving the data from actually have 1 row for every day of the school year for every student or is it missing days, such...
March 27, 2022 at 4:21 pm
It's real simple... Group By does not guarantee the order of the output, period. Only an ORDER BY will make that guarantee.
March 26, 2022 at 9:57 pm
It likely has to do with which login on the target of the linked server was used and what the privs are on the target server for that login.
For example,...
March 26, 2022 at 9:54 pm
To be sure, my laugh wasn't about your bit of misfortune. I was laughing because it appears to be yet another limitation of Azure. 😀
Actually, it works in...
March 26, 2022 at 1:56 pm
I wouldn't even dream of doing this simple thing in PowerShell. I also can't help you if you want it done in PowerShell.
If you want it done in T-SQL,...
March 26, 2022 at 1:39 am
Viewing 15 posts - 3,691 through 3,705 (of 59,067 total)