Viewing 15 posts - 1,351 through 1,365 (of 22,184 total)
Another way is to use Extended Events to capture wait metrics for the query. Alternatively, use sys.dm_os_wait_stats (for on-premises, sys.dm_db_wait_stats for Azure SQL Database) to capture the wait statistics....
March 24, 2021 at 10:46 am
Whoa!
You are literally begging for a SQL Injection attack with this code. I'd strongly suggest you read up on what that is and how to prevent it.
Next, you're trying...
March 24, 2021 at 10:44 am
Wouldn't you just add o.status to the SELECT list? I'm confused by what the question is.
March 23, 2021 at 12:04 pm
SQL Server, by default after an install, will attempt to use every bit of CPU and RAM that the system will let it have. Assuming you've changed none of the...
March 23, 2021 at 12:01 pm
It's not one I've run into, but doing a few internet searches, it looks like 8695 is related to malformed XML for the execution plan. So, the question is then,...
March 23, 2021 at 11:57 am
You'll get a lot better response posting that question to the main forums. The only people who will see are those who responded to this six year old thread.
March 22, 2021 at 1:19 pm
You simply have to supply the schema name when referencing the object:
myschema.TheTable
yourschema.TheTable
Instead of just reference the table name alone.
March 22, 2021 at 12:30 pm
Test it all as best you can. No, I wouldn't plan on undoing the install. Plus, backing up master won't cut it. You're changing the underlying executables, so restoring an...
March 19, 2021 at 12:30 pm
Sadly, there isn't a magic formula that nails this. Some individual statistics may need to be updated multiple times a day. Others may never need to be updated manually. It...
March 19, 2021 at 12:28 pm
Oh, don't do NOLOCK. Yeah, it will enhance performance because it changes how locking and blocking occurs within SQL Server. However, especially if you're getting lots of large scans, as...
March 18, 2021 at 12:44 pm
Moving the target of your build process to Windows could help solve issues. You could then install whatever tools you needed to that Windows instance. Control could still be through...
March 18, 2021 at 12:13 pm
There is a way to do this using T-SQL. However, I much prefer using SQL Compare from Redgate (even though I do work for them now, I used the...
March 18, 2021 at 12:08 pm
Let's start with the importance of SQL Injection attacks, because you are absolutely open to them with this code. Especially the IN statements. That alone, you should rearchitect this.
Next,...
March 18, 2021 at 11:58 am
Yikes.
Nope. I'm not going to be much help here with DynamicsAX.
March 12, 2021 at 3:19 pm
There's nothing magical about snapshot isolation. It helps with reads and blocking. It doesn't help with writes and blocking. If more than one person is attempting to update a given...
March 11, 2021 at 1:34 pm
Viewing 15 posts - 1,351 through 1,365 (of 22,184 total)