Viewing 15 posts - 1,381 through 1,395 (of 22,202 total)
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
Hmmm...
I'm not sure. Check your SSMS. Make sure you're on the latest version. Then, it may be simply that the load on your system is such that querying Query Store...
March 10, 2021 at 12:41 pm
Then you may need to create a temporary storage between the two. Load a table somewhere, then call the other query.
March 9, 2021 at 1:48 pm
Also test whether doing an outer join to the approved table and looking for nulls might be faster than the NOT IN.
March 9, 2021 at 1:43 pm
To tell you where the row estimates are coming from, I need to see the execution plan, query and statistics. However, in general, the row counts come from the statistics....
March 9, 2021 at 1:39 pm
Piling on just a little. It could break things. It completely depends on how you do deployments of changes to the structures in your database. A schema bound view means...
March 9, 2021 at 1:36 pm
There are a number of things that can cause different execution plans. First up, and usually the most common, is parameter sniffing. A value is passed to a stored procedure....
March 9, 2021 at 1:33 pm
I'm a little confused as to why this is a problem. If you have a way to tell SQL Server, hold all the data on this query, then, you have...
March 9, 2021 at 1:28 pm
Try running a query or three to see what happens. The system tables are pretty straight forward to use. Let's figure out if it's Query Store itself that's a problem...
March 8, 2021 at 2:03 pm
The reports are pretty chatty. Have you tried just running a query directly?
March 8, 2021 at 1:22 pm
What about using TOP 1 and order by the 'Last touch date'?
March 8, 2021 at 1:21 pm
I read The Fort. I've also read Cornwall's books about the battle of Agincourt. And the Last Kingdom. He's got some great stuff.
March 8, 2021 at 12:41 pm
Viewing 15 posts - 1,381 through 1,395 (of 22,202 total)