Viewing 15 posts - 31 through 45 (of 6,648 total)
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...
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...
July 23, 2024 at 10:04 pm
Thank you for the update - glad that worked out for you.
July 10, 2024 at 6:44 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...
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...
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...
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), ','), '","', '|'), '",',...
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...
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 -...
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...
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...
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:
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...
May 31, 2024 at 12:20 am
The problem isn't in the PS portion - it is in the SQL query. You need to enclose the 'linked' server reference in the query - although I have no...
May 30, 2024 at 5:13 pm
Viewing 15 posts - 31 through 45 (of 6,648 total)