Viewing 15 posts - 1,231 through 1,245 (of 7,191 total)
So you want people to be able to query your database, but you don't want there to be any performance penalty? I'm afraid there's no such thing as a free...
September 29, 2017 at 8:39 am
You didn't specify any expected results based on the sample data you provided, so I'm just guessing here, but what happens if you change the outer join to an inner...
September 29, 2017 at 8:30 am
ScottPletcher - Friday, September 29, 2017 7:49 AMThere's a huge difference between with and without a default.
Only for variable width data types,...
September 29, 2017 at 8:00 am
September 29, 2017 at 7:16 am
If he unticked it recently, is he still using the same query window? He needs to open a new one for the change to take effect. If that doesn't work,...
September 29, 2017 at 5:54 am
Ask him to go to Tools -> Options -> Query Execution -> ANSI and untick SET IMPLICIT_TRANSACTIONS.
John
September 29, 2017 at 5:40 am
You pay your money, you take your choice. You could easily rewrite as follows - I don't think it would make any difference to performance either way....Field1...
September 29, 2017 at 5:35 am
September 29, 2017 at 5:25 am
Eirikur Eiriksson - Friday, September 29, 2017 2:50 AMHow about cmdshell?
😎wmic SERVICE LIST FULL|find /i "sqlservr.exe"
Eirikur, I think he's looking...
September 29, 2017 at 2:59 am
This is a bigger subject than it's possible to cover in a forum topic, I'm afraid. You need to read about which performance counters to capture, and how to capture...
September 29, 2017 at 2:55 am
Powershell will work, as will a SQLCMD script. You can also run a single query against a group of registered servers. For regular tasks, consider SSIS. Thom is right -...
September 29, 2017 at 2:40 am
Next time this happens, don't restart SQL Server, because you'll lose all the metadata in your DMVs, which is invaluable for troubleshooting. Make sure you establish a performance baseline and...
September 29, 2017 at 2:30 am
TheCTEGuy - Thursday, September 28, 2017 9:46 PMBecause calling a function in select makes the approach ROW-based rather than SET based.
Only...
September 29, 2017 at 2:08 am
Kev
The second query has no WHERE clause, so you'll get one row in your result set for every row in the table. The first query filters out rows...
September 28, 2017 at 8:45 am
September 28, 2017 at 7:34 am
Viewing 15 posts - 1,231 through 1,245 (of 7,191 total)