@Pittfurg Same thing happened to my dog about 6 months ago, diagnosed with SARDs, he was really depressed and scared for a while because it was so sudden, he still manages ok as he's learned the layout of the house more or less...still hate it for him though, he just turned 8
@bertwagner I think it’s because the default for date time datatype is 1-1-1900; I believe to do the math,sql converts it to an INT, if u cast(getdate() as int), and cast(cast(‘1/1/1900’ as datetime) as int) you’ll get 30
System versioned tables, can you change a column value on DELETE?I want to know who deleted a record from an App but I don't want to have to do an UPDATE and then DELETE which will write 2 records instead of 1 to history.I don't think it's possible but wanted to check.#sqlhelp
@SQLSoldier @AdamMachanic As someone who has recently started using System Versioned tables and will need to convert data back to EST for users, this is discouraging. Great Post!
Can you get the current SQL file name using T-SQL? Example, I'm in script1.sql, as shown in SSMS, and I would like to retrieve "script1.sql" and log it into a table. DBAs run scripts manually and I'd like to add step to release scripts for logging. #sqlhelp
@AdamMachanic I added a extra parameter and where clause to the function so when it opens it up and i don't want it to,it just does a constant scan.thanks
@martinhallgolf penalized for misplacing the ball an inch,what about when player moves marker for other player,hard to belive marker & ball put back exactly