Viewing 15 posts - 3,736 through 3,750 (of 59,098 total)
It's looking great right now, sample attached with redactions.
I kept cteCalendar as you designed it, and changed ctePreCrossTab to use my attendance table.
It correctly merges the data correctly, one...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 29, 2022 at 3:11 pm
As to putting FKs on an audit table... don't EVER do that. There's not reason to because the rows have already survived the INSERTs and UPDATEs for FKs and...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 28, 2022 at 9:06 pm
3) I created a quick table in SSRS and sure enough, it does depict a calendar style matrix with the month dates and the value in ##Attendance (screen snip...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 28, 2022 at 5:25 pm
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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,...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 28, 2022 at 2:24 am
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
Viewing 15 posts - 3,736 through 3,750 (of 59,098 total)