« first day (425 days earlier)      last day (219 days later) » 

5:32 AM
2
Q: SqlDataConnection update method

JonI'm using Microsoft's SqlDataConnection type provider. However, the only way I've seen to update a row in the database is to use something similar to this where it updates mutable values: let updateProduct product = let currentProduct = query { for c in context.Product do where (c.Pro...

 
 
7 hours later…
12:49 PM
0
Q: Is this the correct way to write this SQL query for business reporting?

NonaSo a user can have many subscriptions, and a subscription belongs to one plan. The plan table tells us a subscription's cost. Is the query below the correct one for figuring out the number of subscriptions purchased by a user with an "ongoing" status and the total revenue brought in each day b...

 
 
6 hours later…
6:36 PM
So, I've given up on the issue I've spent hours researching since yesterday.
It bugs me that we have thorough audit triggers and tables for some of the most trivial production tables, but for mission-critical things we just delete rows and they are just gone without a trace.
2 messages moved from The 2nd Monitor
bump
 
7:29 PM
Hello @PinCrash
 
Hi
 
I had submitted this code for review some days back!
http://codereview.stackexchange.com/questions/122464/sql-procedure-for-archiving-and-deleting
 
I have a short meeting to attend (sorry) but I can have a look once I get back
 
@PinCrash Sure!! Thanks :-)
 
8:23 PM
@AmanS.Aneja hey I'm back
Looking at your proc now
 
 
2 hours later…
10:38 PM
0
A: SQL procedure for Archiving and Deleting

Pin CrashNitpicks You use separate statements for DECLARE and SET quite a bit. While there is nothing wrong with that, it's often just easier to read if you combine them: DECLARE @Xdaysago datetime = DATEADD(DAY, -(@historyDays), GETDATE()); DECLARE @chunkCount int = 0; DECLARE @procRunDate datetime = G...

Hope this helps :)
 

« first day (425 days earlier)      last day (219 days later) »