Viewing 15 posts - 61 through 75 (of 375 total)
I swapped things around a bit. Obviously, I cannot test it.
ALTER PROCEDURE dbo.RunStoredProcedures
AS
SET NOCOUNT ON;
DECLARE @FAIL_COUNT INT = 0;
BEGIN TRANSACTION;
BEGIN TRY
BEGIN TRY
...
February 3, 2025 at 3:46 pm
I made some progress on this.
Code:
ALTER procedure [dbo].[RunStoredProcedures]
as
DECLARE @FAIL_COUNT INT = 0
BEGIN TRANSACTION
BEGIN TRY
BEGIN TRY
truncate table dbo.temptable
END TRY
BEGIN CATCH
SET @FAIL_COUNT = @FAIL_COUNT + 1
END CATCH
BEGIN...
February 3, 2025 at 5:29 am
I have been thinking more about this. I don't think relying on SSIS output window is the right way to capture errors. I need a persistent record of errors (not...
February 3, 2025 at 2:06 am
deleted reply
February 3, 2025 at 1:54 am
Thank you!
I have some questions:
1. re the output parameter option solution. Will that message show up in the output window?
2. re the alternative solution. I am getting an error message...
February 2, 2025 at 10:11 pm
Actually...the above two outputs are not that important. The SP is run in SSIS so I never see the above two issues. Ok for now.
The more pressing issue...
February 2, 2025 at 4:18 am
Actually...the above two outputs are not that important. The SP is run in SSIS so I never see the above two issues. Ok for now.
The more pressing issue is that...
February 2, 2025 at 2:58 am
Thanks for the reply. That is the entire code. Not sure where/how it got -6. Any ideas on how it got there?
February 1, 2025 at 9:33 pm
I made some progress. New code:
ALTER procedure [dbo].[RunStoredProcedures]
as
BEGIN TRANSACTION
BEGIN TRY
truncate table dbo.testtable
select 1/0
END TRY
BEGIN CATCH
IF @@TRANCOUNT > 0
ROLLBACK TRANSACTION
RAISERROR('Rollback of stored procedures was successful', 10, 1) WITH...
February 1, 2025 at 4:31 am
what happens if you move that SP to another container, being executed after the other ones?
and most times its some settings on your sp's or locking between SP's -...
January 31, 2025 at 11:12 pm
You can check the encryption status of your databases:
SELECT
db.name AS database_name,
db.is_encrypted,
dm.encryption_state,
dm.percent_complete,
dm.key_algorithm,
dm.key_length
FROM
sys.databases db
LEFT OUTER JOIN
sys.dm_database_encryption_keys dm
ON...
January 13, 2025 at 3:44 pm
Without further information, there is no way one can answer your question! 😎 1. Are you using any hard drive encryption? 2. Are you using TDE, transparent data encryption...
January 12, 2025 at 1:26 am
The query is this one:
INSERT INTO DBO.RunTimeSSIS
VALUES ('Start SSIS', getdate())
I ran this in SSMS to see if there are any issues. No issues at all. It ran...
January 4, 2025 at 1:38 am
Viewing 15 posts - 61 through 75 (of 375 total)