Viewing 15 posts - 121 through 135 (of 1,241 total)
Lookup the MERGE command.
Functions perform operations in a row by row manner as opposed to a set at a time. This is slow and not needed.
I am not sure how...
----------------------------------------------------
November 17, 2022 at 7:55 am
It may fragment some indexes and not others. You certainly don't want to automatically rebuild every index. Also, rebuild from smallest to largest of the indexes that do need...
----------------------------------------------------
November 17, 2022 at 7:36 am
A very good link has been provided.
If you have your log file on its own volume another thought would be , just to put it out there, a powershell script...
----------------------------------------------------
November 17, 2022 at 7:28 am
Few best practices to optimize SQL DB performance
- Reduce Table Size - Simplify Joins - Use SELECT Fields FROM Instead of SELECT * FROM - Use EXISTS() Instead of...
----------------------------------------------------
November 17, 2022 at 7:18 am
Since you are on 2017 pressumably , navigate to your database (in explorer) and drill down to the Query Store. There you will find the most expensive queries by cpu...
----------------------------------------------------
November 17, 2022 at 7:09 am
I cant even make sense of what the data is supposed to render to. I cant make out any columns in the desired output. Please put in time to present...
----------------------------------------------------
November 17, 2022 at 7:04 am
Please create a entity relationship diagram explaining what the tables are and what certain columns mean. and how they are related/joined.
Provide a simple case of input data and what the...
----------------------------------------------------
November 17, 2022 at 7:00 am
What section and step within the documentation are you at ? Is this transactional replication ? Is it push or pull subscription ? Where is the distributor ?
----------------------------------------------------
November 3, 2022 at 6:50 am
"I'd like to create a column that will list every Monday (start of week) from the enrollment start date to the end date. If no end date, then it will...
----------------------------------------------------
November 3, 2022 at 6:45 am
I had a scary experience with CPU on a database server reaching 100% due to bad plans from badly written code. I have had all members of my team looking...
----------------------------------------------------
November 1, 2022 at 12:15 am
Test out the solution I provided with data that varies in the first few columns and adjust the pivot experssion as needed.
----------------------------------------------------
November 1, 2022 at 12:10 am
For dynamic SQL, try the following >
declare @sqlStart nvarchar(200)=
'Select *
FROM (Select custID, staffId, jobID, dt, sum(units) as units ...
----------------------------------------------------
November 1, 2022 at 12:07 am
One of my favorites was a project I did earlier in my career. What made it special was that I was learning as I went along and was given the...
----------------------------------------------------
October 31, 2022 at 11:22 pm
select * from sys.indexes where fill_factor<>0
Indeed from Microsoft Docs ---
"> 0 = FILLFACTOR percentage used when the index was created or rebuilt."
The key term to notice is 'rebuilt.' So...
----------------------------------------------------
October 25, 2022 at 2:43 am
Thank you for the article. This is nicely explained. However I have a couple of questions.
The basic template is
CREATE [OR REPLACE] FUNCTION function_name (arguments)
RETURNS return_datatype AS...
----------------------------------------------------
October 14, 2022 at 5:06 pm
Viewing 15 posts - 121 through 135 (of 1,241 total)