Viewing 15 posts - 1,606 through 1,620 (of 6,679 total)
you need 'tempdb..#xxx' when checking for object existence.
e.g. if object_id('tempdb..#xxx') is not null drop table #xxx;
other than the case above you do not need to reference tempdb.. and you...
September 22, 2020 at 8:27 pm
You can review the SQL Server logs through notepad to see why SQL Server is not starting. My guess is that you have added one or more trace flags incorrectly...
September 22, 2020 at 8:20 pm
The first part of the problem is how you are generating the tally - you are generating too many rows. The second part of the problem is the return from...
September 18, 2020 at 4:21 pm
In your original post - you stated that the database engine was not used. However, it seems it is being used - probably by SQL Server Agent and the MSDB...
September 14, 2020 at 6:37 pm
What is the state of the primary database - not the secondary database?
September 14, 2020 at 5:22 pm
Hi @jeff Moden, @Jeffrey Williams,
Is there any way to achieve this through STUFF() function. Since I am having SQL server 2014.
Thanks
Did you see what I posted?
September 14, 2020 at 4:40 pm
The error tells you what the problem is - the database in production is set to single user. After restoring the database in production - change it to multi-user: ALTER...
September 13, 2020 at 4:15 pm
What about using a GIT repository? You get the advantage of being able to search the code as well as versioning, branching, etc...
September 12, 2020 at 4:32 pm
I start with how many full backup files I want to keep local to the system - then what process will be utilized and how will that affect the storage. ...
September 12, 2020 at 4:25 pm
Taking Jeff's sample data and example using STRING_AGG:
With ctePreAgg
As (
Select CountryID
,...
September 11, 2020 at 4:33 pm
It's a good question. I don't get to decide, the business do. The rules are arbitrary so I have to use a fixed table, in fact several. This (table...
September 10, 2020 at 9:11 pm
Since a view is just a named query - it will be optimized into the outer query referencing the view. If there are tables/views/columns that are not utilized in the...
September 10, 2020 at 7:57 pm
You are welcome - which version did you end up using?
September 10, 2020 at 7:45 pm
Look at the function STRING_AGG which should do exactly what you are needing.
September 10, 2020 at 7:39 pm
You may be interested in this script: https://www.sqlservercentral.com/?p=3787591&post_type=ssc_script&preview_id=3787591
This script generates the calendar for a 3 year period - with the ability to restate the calendar - and generates the 4-5-4,...
September 10, 2020 at 4:01 pm
Viewing 15 posts - 1,606 through 1,620 (of 6,679 total)