Viewing 15 posts - 1 through 15 (of 9,655 total)
Wondering if anyone has time to point me to resources regarding this particular question: Microsoft Recommendations for Update Stats? – SQLServerCentral Forums?
November 21, 2024 at 3:34 pm
I'm sorry. The post that was previously here was harsh. I am removing it because there was no call for me to sound so short.
Converting to uniqueidentifier did not work...
November 19, 2024 at 5:07 pm
Kaj, that does work faster than the function I found via Google. THANK YOU SO MUCH!
November 19, 2024 at 4:44 pm
There isn't really a need to use that scalar function for the conversion.
This will also work:
SELECT t.SPID, t.Status, t.ProgramName, j.name AS JobName
FROM @Table t
LEFT OUTER JOIN...
November 19, 2024 at 4:40 pm
You could just do a straight select also, no need to convert the hex to the GUID as it will implicitly do this for you
SELECT *...
November 19, 2024 at 4:25 pm
Weird gateway error caused repost. And won't let me delete the code block.
November 19, 2024 at 3:18 pm
And after changing my search terms in Google to "SQL Server get job name from sp_who2 program_name" instead of something more generic, I HAVE FOUND IT!
CONVERT(VARCHAR(34),master.dbo.fn_VarbinToHexStr(sj.Job_ID))
This function converts jobID to...
November 19, 2024 at 3:17 pm
Oh, nevermind. I think I found it. WHERE sys.objects.object_id > 0 AND sys.objects.object_id < 1042102753.
Let me know if anyone knows of any other method.
EDIT: Hrm. Nope. Not quite the solution...
October 4, 2024 at 2:15 pm
Following up on this... Will it hurt if I remove system object permissions from the public role?
Or, alternatively, is there a method to ensure that I only remove user objects...
October 4, 2024 at 2:05 pm
No, it was definately object-level permissions on the public role. I revoked them and my regular account no longer could see the database data.
October 2, 2024 at 11:39 am
I'm assuming that it only showed for dbo because it was in public. Because it didn't show for dbo on other databases.
The script I should have used is below:
October 1, 2024 at 8:03 pm
Oh, good grief. My check on public securables finally loaded (I had turned away from it and forgotten to close it after taking that screenshot). Apparently it is public, not...
October 1, 2024 at 7:10 pm
Script out of user just gives me this:
/****** Object: User [dbo] Script Date: 10/1/2024 2:31:15 PM ******/
CREATE USER [dbo] FOR LOGIN [sa] WITH DEFAULT_SCHEMA=[dbo]
GO
Using this script is where I see...
October 1, 2024 at 6:38 pm
OMG, can I scream yet? This is ... somewhat hilarious and painful and scary all at the same time. Object-level permissions on dbo – SQLServerCentral Forums
HELP!
October 1, 2024 at 4:53 pm
Additional note: If TRUNCATEONLY isn't working, check min file sizes on the tempdb files. They may be larger than they are supposed to be. ALTER the files to resize and...
October 1, 2024 at 4:40 pm
Viewing 15 posts - 1 through 15 (of 9,655 total)