Viewing 15 posts - 46 through 60 (of 286 total)
You can easily rebuild a heap table starting from SQL Server 2008.
ALTER TABLE [TableName] REBUILD
January 11, 2016 at 5:28 pm
Tac11 (12/31/2015)
One more question, which option is better?
What is better a car or a boat? 🙂
if option 2 is better then why not add firstName and Middlename in Include?
Seriously?
For...
December 31, 2015 at 10:56 am
Try to save result of "SELECT count(*) FROM @StateAbbrTable" into true/false variable and then use it in the query. Also add OPTION(RECOMPILE). This will help to eliminate ambiguity of OR...
December 30, 2015 at 1:45 pm
For option 2, MiddleName is not a key column in the index, it's only on a leaf level, therefore a server cannot perform an index seek on that column but...
December 30, 2015 at 1:34 pm
Shrink the data files before rebuilding the indexes doesn't sound like a good advice
December 30, 2015 at 10:27 am
The 2nd query is wrong:
select count(*) FROM [DW_Enterprise]..E_SIP_CLAIM_PAYMENT A
INNER JOIN [SiriusPink]..CLAIM C
ON A.claim_id = C.claim_id
where A.base_claim_payment_id NOT in (
...
December 24, 2015 at 1:16 pm
Default Trace doesn't capture all the event required to perform the task. If the app connects to the server and runs some very simple queries you may not see anything...
December 16, 2015 at 3:58 pm
If you have source code of application you can search for connection string parameters.
From DB side you can run a SQL Profiler to see against what databases your app is...
December 16, 2015 at 1:19 pm
GUID is an ID! So if you say that you need another ID please share your idea of what that ID should look like.
December 8, 2015 at 12:40 pm
These 2 parameters can be particularly useful in your case:
https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html
Set the time, in seconds, after which no commands are executed. By default, the time is not limited.
LockTimeout
Set the time, in...
December 8, 2015 at 12:35 pm
SP returns output parameter, but you don't read it. You have to use OUTPUT clause when you run the procedure.
December 8, 2015 at 12:18 pm
Tac11 (12/8/2015)
I tried putting (comma) but didn't work.
Put comma where? Didn't work how? Could you please provide the scripts of what you are trying to do?
December 8, 2015 at 12:14 pm
abright (12/4/2015)
I have some idea where the problem is.
Please start from getting a deadlock graph using one of the techniques described in the above links.
abright (12/4/2015)
December 4, 2015 at 12:20 pm
randyomatta (12/3/2015)
Here's a good query to at least get you started.
Blocking is not the same as deadlock. And despite the fact that one can lead to another it would...
December 3, 2015 at 5:19 pm
There are tons and tons of information (including the official documentation) available online on how to detect deadlocks. To name a few:
December 3, 2015 at 5:15 pm
Viewing 15 posts - 46 through 60 (of 286 total)