Viewing 15 posts - 871 through 885 (of 59,063 total)
@sathishkm-2 - Please explain the business reason for why you need to do this. Is it in hopes of making a more viable search for a company name?
Ok... shifting gears...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2023 at 9:55 pm
And, no... I wouldn't use a Recursive CTE for this because they're just too expensive for Reads. A well written WHILE loop is more effective.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2023 at 9:20 pm
What is the Primary key column name and datatype for the table where these company names are stored?
And, are you really using SQL Server 2022?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2023 at 9:17 pm
I have a suggestion... how about having this "developer" document what each section of the code is actually doing in a business sense. It needs a proper flower box to...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2023 at 9:02 pm
onsider an employees table:
employee_id (int) employee_name (varchar) department (varchar) joining_date (date) salary (decimal) Highest Earner by Department: Find the employee with the highest salary in each department.
Average Salary by...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2023 at 4:31 pm
I just need to work out how to do this all dynamically, as the column Names and amount of columns can vary in the JSON.
Then you...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 12, 2023 at 4:20 pm
Ladies and gentlemen, the OP has left the building! 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
December 11, 2023 at 6:23 pm
Jeff
Do you know if others would also use the term "Skip Join" so if I googled on SKIP JOIN I'd get info about this or does this not have...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2023 at 8:15 pm
That kind of code is frequently generated by the "query designer" in SSMS under {Query}{Design Query in Editor} menu selection in SSMS. And, as you found out, it DOES work.
I've...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2023 at 7:06 am
Users told me that they can not connect and after some time database work fine for next few minutes. Best solution is restart PC ... but next month the...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2023 at 6:41 am
Just to add to the previous comments. I upgraded a system from SQL 2012 to SQL 2019 RDS on AWS. One of the most impactful actions after identifying slow-running...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 6, 2023 at 3:48 am
very very disappointed at this unholy situation. How is it possible that Jeff is wrong!!!!
Every once in a...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 5, 2023 at 11:35 pm
Does the 6% performance reduction pose a real operational problem at the system level?
At the micro scale, small performance reductions may not matter to the individual process incurring it,...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 5, 2023 at 11:31 pm
This appears to be a classic "Next_ID" table and I find it difficult to understand why anyone would be using such a thing in this day and age, especially with...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 5, 2023 at 12:38 am
i used this code:
EXECUTE master.dbo.xp_cmdshell 'bcp "SELECT * FROM dbo.CustomerInformation " queryout C:\Data\Objects.txt -t"|" -c -T ' and it is not working
What is your definition of "Not Working" here?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 5, 2023 at 12:11 am
Viewing 15 posts - 871 through 885 (of 59,063 total)