Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ALTER DATABASE BazaRelacyjna SET TRUSTWORTHY ON
- DROP FUNCTION ReadEventLog
- GO
- DROP ASSEMBLY Funkcja_tab
- GO
- CREATE ASSEMBLY Funkcja_tab
- AUTHORIZATION [dbo]
- FROM 'C:\e740\repos\Funkcje\Funkcje_tab\Funkcje_tab\bin\Debug\funkcje_tab.dll'
- WITH PERMISSION_SET = EXTERNAL_ACCESS
- --Lub = UNSAFE
- GO
- CREATE FUNCTION ReadEventLog(@logname nvarchar(100))
- RETURNS TABLE
- (logTime datetime,Message nvarchar(MAX),Category nvarchar(MAX),InstanceId BIGINT)
- AS
- EXTERNAL NAME Funkcja_tab.Wynik.InitMethod
- GO
- SELECT TOP(100) * FROM ReadEventLog(N'Application')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement