‎11-26-2013 04:14 PM
Solved! Go to Solution.
‎11-29-2013 03:41 PM
Hertel wrote:
The Process I will follow is below, but i dont understand why I would need to run the SQL scripts if the Database that will be used will be the same one on our SQL server.
use lansweeperdb
GO
drop schema lansweeperuser
GO
drop user lansweeperuser
go
execute sp_droplogin lansweeperuser
go
use master
GO
EXEC sp_addlogin 'lansweeperuser', 'mysecretpassword0*', 'lansweeperdb', [English]
GO
use lansweeperdb
go
EXEC sp_grantdbaccess 'lansweeperuser', 'lansweeperuser'
GO
EXEC sp_addrolemember [db_owner], 'lansweeperuser'
Go
‎01-24-2023 02:48 PM
Every time I run the script on the new installation, after importing the backup, I get the following errors and cannot complete the migration:
Msg 15151, Level 16, State 1, Line 3
Cannot drop the schema 'lansweeperuser', because it does not exist or you do not have permission.
Msg 15151, Level 16, State 1, Line 5
Cannot drop the user 'lansweeperuser', because it does not exist or you do not have permission.
Msg 15007, Level 16, State 1, Procedure sp_droplogin, Line 26 [Batch Start Line 6]
'lansweeperuser' is not a valid login or you do not have permission.
‎11-29-2013 03:41 PM
Hertel wrote:
The Process I will follow is below, but i dont understand why I would need to run the SQL scripts if the Database that will be used will be the same one on our SQL server.
use lansweeperdb
GO
drop schema lansweeperuser
GO
drop user lansweeperuser
go
execute sp_droplogin lansweeperuser
go
use master
GO
EXEC sp_addlogin 'lansweeperuser', 'mysecretpassword0*', 'lansweeperdb', [English]
GO
use lansweeperdb
go
EXEC sp_grantdbaccess 'lansweeperuser', 'lansweeperuser'
GO
EXEC sp_addrolemember [db_owner], 'lansweeperuser'
Go
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now