Viewing 15 posts - 61 through 75 (of 367 total)
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
You need to physically move the files from the old drive to the new drive. SQL will not do this for you.
So when you have done the ALTER ......
January 2, 2025 at 6:24 pm
Hi. Is someone able to help me with this? Thank you
January 1, 2025 at 6:27 pm
SELECT T1.UNIT,
T1.DATE,
CASE WHEN COUNT(T1.PRICE) OVER (PARTITION BY T1.UNIT ORDER BY T1.DATE ROWS...
December 28, 2024 at 11:00 pm
Either below; the first is more typical:
DECLARE @LATEST_DATE DATE;
SELECT @LATEST_DATE = MAX(MY_DATE) FROM DBO.TABLE
--or:
SET @LATEST_DATE = (SELECT MAX(MY_DATE) FROM DBO.TABLE);
It works. Thank you so...
December 25, 2024 at 7:40 pm
1. I hope you are not using floats for prices! 2. Do you really use reserved names for columns? 3. Are you really writing new code with the depreciated...
December 20, 2024 at 7:01 pm
Hi
Is anyone able to help me with this?
Thank you
December 20, 2024 at 6:21 am
- No
- No
And, that is the correct method for moving dbs to a new drive.
Thank you for the prompt reply.
December 17, 2024 at 7:37 pm
Viewing 15 posts - 61 through 75 (of 367 total)