blob: 6157e3536e4cf0e4c0b6eec284b4bdbd6db78bc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
BEGIN TRANSACTION
CREATE TABLE dbo.Tmp_landaccesslist
(
LandUUID uniqueidentifier NULL,
AccessUUID uniqueidentifier NULL,
Flags int NULL
) ON [PRIMARY]
IF EXISTS(SELECT * FROM dbo.landaccesslist)
EXEC('INSERT INTO dbo.Tmp_landaccesslist (LandUUID, AccessUUID, Flags)
SELECT CONVERT(uniqueidentifier, LandUUID), CONVERT(uniqueidentifier, AccessUUID), Flags FROM dbo.landaccesslist WITH (HOLDLOCK TABLOCKX)')
DROP TABLE dbo.landaccesslist
EXECUTE sp_rename N'dbo.Tmp_landaccesslist', N'landaccesslist', 'OBJECT'
COMMIT
|