As it occasionally happens, one of our users got married. She has also become a solicitor, which necessitated the appropriate change in the Tessitura Security module from USER to BOTH. However, it occurs to me that someone will soon call to say "Hey, can we change her last name too?" Being a database guy, I figured there are likely greater implications at work here, so I'm posing this question to you all. Can I just change the user login (from MFORD to MHAYS) and last name in the security module to reflect her new status or will Tessitura freak out? I suspect it's not that easy...
Thank you in advance, Tessiturians.
BONUS NAME-RELATED TRIVIA: The Comte de la Fere, the Baron du Vallon, and the Chevalier d'Herblay are better known in literature as The Three Musketeers.
Hi Matt, I've got a bit of SQL that will change ownership of everything from one user name to another user name. Probably isn't the most elegant way of doing it, but it defianately works.
Debbie
------------------------------------------------------------------- --CODE WILL CHANGE EVERYTHING IN THE DATABASE WHICH BELONGS TO Username_Old to Username_New ------------------------------------------------------------------- use
-------------------------------------------------------------------
--CODE WILL CHANGE EVERYTHING IN THE DATABASE WHICH BELONGS TO Username_Old to Username_New
use
impresario go
go
DECLARE
(
column_name
INFORMATION_SCHEMA.columns
)
))
INT SET
SET
--'XXXXXXXXXX' --
OPEN
ChangeCursor
FETCH
@Column_Name
@Username_Old
''''''';'
WHILE
0
BEGIN
+
BREAK END CLOSE
END
CLOSE
DEALLOCATE
-----------------------------------------------------
'Debs'
'DebbieH'
'T_METUSER'
'userid'
print
PRINT
@SQL
-------------------------------------------------------------
USE
;
GO
CURSOR
FOR
t
schema_id
);