18 lines
896 B
Transact-SQL
18 lines
896 B
Transact-SQL
USE [site_fuchs]
|
|
GO
|
|
/****** Object: View [dbo].[ocms_fn_rand] Script Date: 02.12.2020 21:05:05 ******/
|
|
DROP VIEW [dbo].[ocms_fn_rand]
|
|
GO
|
|
/****** Object: View [dbo].[ocms_fn_rand] Script Date: 02.12.2020 21:05:06 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
CREATE VIEW [dbo].[ocms_fn_rand]
|
|
AS
|
|
select rand(Cast(newid() as varbinary)) as rn
|
|
GO
|
|
ALTER AUTHORIZATION ON [dbo].[ocms_fn_rand] TO SCHEMA OWNER
|
|
GO
|