Viewing 15 posts - 61 through 75 (of 6,676 total)
Another feature that I use is to create a folder of specific servers - then open a new query from that folder. It creates a query window connected to all...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
August 2, 2024 at 8:08 pm
All, sorry for not replying to the thread. The secondary server has been offline since Saturday. I have a maintenance window tomorrow so the plan is to reseed via...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
July 26, 2024 at 4:52 pm
If there are any additional transaction log backups taken before you complete restoring the logs on the secondary - it will fail with that error. You have to apply all...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
July 23, 2024 at 10:04 pm
Thank you for the update - glad that worked out for you.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
July 10, 2024 at 6:44 pm
Take a look at the tools from here: https://dbatools.io/
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
June 22, 2024 at 5:04 pm
Not sure why your COUNT didn't work - this works just fine:
DECLARE @person TABLE (PersonID int PRIMARY KEY CLUSTERED, sName varchar(30));
INSERT INTO @person (PersonID, sName)
VALUES...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
June 22, 2024 at 5:01 pm
The problem in Steve's solution is that is doesn't account for possible CR/LF data in the last field. In your data - there is a CR\LF after the comma in...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
June 7, 2024 at 5:34 pm
Why does it need to run asynchronously?
If that is the goal - setup an agent job to run the package using the Integration Services subsystem with the appropriate proxy account...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
June 7, 2024 at 3:18 pm
This works - for the given example:
DECLARE @string NVARCHAR(MAX) = N'"T1","T2","T3","T4","T5"
"000055555XYZ",00001,"","","BLUEF, NA"';
PRINT @string
SET @string = replace(replace(replace(replace(replace(@string, char(13)+char(10), ','), '","', '|'), '",',...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
June 7, 2024 at 1:47 pm
Thanks Jeffrey..
Yes, I'll review the one with ID included. The script I posted above does archive the desired results. I was thinking that I could just issue a Truncate...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
June 5, 2024 at 7:52 pm
Please review the script I posted - that you ran and successfully returned a result. You will notice that query returns the ID along with the SQL to execute -...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
June 4, 2024 at 6:40 pm
In my original Post that's what I was trying to accomplish ..
No - your original request is attempting to connect to a single server and pull data *across a...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
June 3, 2024 at 7:08 pm
So now even more confusion - because you cannot seem to provide the information requested. Why are you able to connect to 'localhost' but not to the actual server in...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
June 1, 2024 at 2:48 pm
I agree with everything already said - this is a bad design. With that said - let's start with the first part and see if you can get that working:
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 31, 2024 at 2:26 pm
Your query needs to have the server name quoted - as in: SELECT ... FROM [server-with-dashes].database.schema.table
And - you most likely need to quote the server name in $ServerInstance - as...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
May 31, 2024 at 12:20 am
Viewing 15 posts - 61 through 75 (of 6,676 total)