Viewing 15 posts - 631 through 645 (of 774 total)
Thank you all for your replys.
I will use this one:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Procedure [dbo].[DropOrphanUserAccounts]
as
BEGIN
set nocount on
create table #UserAccountsToDelete
(
...
April 1, 2010 at 4:18 am
Bhuvnesh your solution is not what i asked for.
Your solution is not to delete User accounts that are orphan because the login was deleted...
But thanks.
I will try the other solution
March 31, 2010 at 7:49 am
In my case i think that i do not need that, but thanks
March 31, 2010 at 6:28 am
No need steve, i want to delete almost all the logins. But thanks
March 31, 2010 at 6:18 am
I have tried to execute the procedure from Lowel and other procedure where i put all the databases in single user mode. Non of this procedures work in one case...
I...
March 31, 2010 at 5:03 am
The procedure that Lowel gave me is very usefull but i think that you are right , it's better to put all the databases in to single user mode and...
March 30, 2010 at 1:26 am
ups.... lol thank you 🙂
March 29, 2010 at 10:46 am
thank you very much i will try that.
What about the other services like SQL Server Browser and others?
March 29, 2010 at 10:34 am
can someone help , please?
Thank you
March 29, 2010 at 10:32 am
I'm receiving this error when executed the stored procedure that i posted:
Msg 217, Level 16, State 1, Procedure RemoveLigacoes, Line 48
Maximum stored procedure, function, trigger, or view nesting level exceeded...
March 29, 2010 at 9:28 am
create procedure RemoveLigacoes
AS
BEGIN
DECLARE @DatabaseName nvarchar(100)
DECLARE @SPId int
DECLARE my_DBs CURSOR FAST_FORWARD FOR
select [name] from master.sys.databases
WHERE [NAME] NOT IN ('MASTER','MODEL','TEMPDB','MSDB','ADVENTUREWORKS')
OPEN my_DBs
FETCH NEXT FROM my_DBs INTO @databasename
WHILE @@FETCH_STATUS = 0
Begin
...
March 29, 2010 at 8:08 am
Viewing 15 posts - 631 through 645 (of 774 total)