Viewing 15 posts - 1 through 15 (of 57 total)
Thanks Phil, I will give that a shot. Just curious, why did you set @var1 to NULL?
March 19, 2025 at 5:21 pm
Wow, thanks Jonathan. That works perfectly with a small exception that I have decimals in column 2. But the result set for column2 is correct, except for the 0's, exactly...
February 25, 2025 at 9:37 pm
I didn't include the full "CREATE" statement, sorry to throw you off. I just listed what it contains at the beginning of my post:
This is the function oracle.xxxfloat
BEGIN
IF @first IS...
February 25, 2025 at 5:52 pm
I'm trying to eliminate the function by rewriting the code where it is used. The listed function, Oracle.xxxfloat, I would like to remove from the column2 statement; (These functions were...
February 25, 2025 at 5:01 pm
Thanks LOL - couldn't resist the pun. The code does not have any remarks to clarify. I can't understand what it is doing either -- just trying to get into...
February 25, 2025 at 4:00 pm
Sorry Phil, I had to correct my statement. When I redacted our names, I redacted too much. I guess you could say I over redacted.
February 25, 2025 at 3:11 pm
I see. So the @SINGLE_RETURN variable is just for formating/separating the messages (which is what I thought might be concactenating the strings.). Thanks for clarifying.
January 2, 2025 at 12:58 am
Maybe this is enough info without the whole cursor;
DECLARE @SINGLE_RETURN char(2) = ISNULL(char(13), '') + ISNULL(char(10), '')
Inside the cursor:
SET @msg += 'Encryption was found disabled and then enabled on database [' + @database_name + ']' + @SINGLE_RETURN
Outside the cursor:
IF @msg <>'' EXECUTE msdb.dbo.sp_notify_operator @profile_name=N'ABC',@name=N'ABC',@subject=@msgSubject ,@body=@msg
To clarify...
January 1, 2025 at 6:37 pm
Thanks for the replies.
I have clarified my question below and added additional code.
December 31, 2024 at 10:35 pm
Understood - thanks.
So I can use it within a statement, and the focus change works. Such as;
EXEC(@sql + 'SELECT * FROM hr.employees') ---hr.employees in Database1 which my window is...
December 24, 2024 at 3:52 pm
Hello Orange - yes I did. There were tons of queries that were not parameterized. Developers for years had structured their apps to pass literals into the queries rather than...
May 2, 2024 at 3:32 am
SS Crazy: I am testing the script; it actually shows my ID and the script (which would makes sense), but I am connected via SSMS with a TestUser account and...
December 6, 2021 at 4:30 pm
Thanks Grant, I'll try that as well.
December 6, 2021 at 4:29 pm
Thanks SSCrazy Eights - this is exactly what I needed. I will also give profiler a shot as well.
December 1, 2021 at 6:05 pm
Table stats is the first thing that came to mind as well. It's kind of amazing that there is no feature in SSMS to get more details of which logons...
October 4, 2021 at 5:40 pm
Viewing 15 posts - 1 through 15 (of 57 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy