Viewing 15 posts - 3,706 through 3,720 (of 59,067 total)
I correct the code in the INSERTED section of the trigger. Changed to...
, TrnxUserId = i.CrtBy
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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. 🙁 🙁 🙁
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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.
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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.
--Jeff Moden
Change is inevitable... Change for the better is not.
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,...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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,...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 26, 2022 at 1:39 am
If you want referential integrity between all those tables and 1 notes table, it will need to be done by a trigger instead of DRI through FKs.
Much like temporal tables,...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 9:56 pm
Hey Michael good point, which now putting it all together, i think I might see a problem here... and the keyword is trigger, which from table 1 on database...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 9:08 pm
If they're still too incompetent to do it, hopefully they (1) realize that and get help (2) you realize that and get rid of them if they just can't...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 9:05 pm
Viewing 15 posts - 3,706 through 3,720 (of 59,067 total)