Viewing 15 posts - 6,961 through 6,975 (of 59,091 total)
I have no idea why Microsoft has kept that option in the product - auto shrink will cause massive fragmentation of the database every time it shrinks. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2020 at 7:11 pm
Just to confirm, COALESCE won't provide an improvement in performance over CASE, although it will make the code a whole lot easier. Behind the scenes, the optimizer converts a COALESCE...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2020 at 3:20 pm
I have no idea why Microsoft has kept that option in the product - auto shrink will cause massive fragmentation of the database every time it shrinks. It is...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2020 at 2:57 pm
DECLARE @DateString nvarchar(100)='Wed Jun 29 15:57:45 2019'
SELECT CONVERT(datetime,SUBSTRING(@DateString,5,100))
I've always been astounded by the implicit conversions of strings to DateTime that SQL Server handles correctly. It seriously...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2020 at 2:08 pm
CDC can be used in AWS RDS - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.SQLServer.CommonDBATasks.CDC.html
but CDC does not push anything - just helps a ETL job to identify what has changed.
Got it. Thank you, good...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 10:45 pm
Sorry I should have been more detailed in my question. The variable is the collection variable for a foreach loop which is looping through the files in a folder....
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 10:06 pm
Post withdrawn.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 9:45 pm
I treat my Dev servers exactly the same as my Prod servers when it comes to backups and transaction logs and recovery models. It's has saved dozens of days of...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 6:29 pm
The eventual plan is that @Filename will be the parameter in an SSIS package so I don't think there is any risk of SQL injection through the use of...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 5:51 pm
Thanks! Has anyone has any thoughts on Change Data Capture. The CDC function is, probably similar to the transactional replication. It is not the same, but it has...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 5:44 pm
If you use it right, EF is fine.
Now THAT I'll mostly agree with. The key is getting people to "use it right". For example, at one company I do...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 5:31 pm
[...]
Entity Framework is a bit fat wrapper around ADO and it took Microsoft about seven releases to get something that was relatively stable. It is essentially another...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 5:21 pm
I'd recommend against implicit conversions wherever possible. There are a lot of articles online about implicit conversion and even SQL Server, via the execution plan, will give a warning...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 4:36 pm
An alternative is to use the format function to convert it to a percentage. Note that I'm only casting the FirstInteger to a decimal(18,10) because the SecondInteger is implicitly...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 3:21 pm
My biggest gripe about ORMs, especially old Linq To SQL (but not limited to that one), is datatype mismatches where the passed variables are NVARCHAR() as criteria to be played...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 5, 2020 at 2:15 pm
Viewing 15 posts - 6,961 through 6,975 (of 59,091 total)