mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
New file extensions and samples for SQL
This commit is contained in:
8
samples/SQL/object-update.udf
Normal file
8
samples/SQL/object-update.udf
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
if not exists(select * from sysobjects where name = '%object_name%' and type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
|
||||
exec('create FUNCTION dbo.%object_name%() returns int as begin return null end')
|
||||
GO
|
||||
|
||||
%object_ddl%
|
||||
|
||||
go
|
||||
Reference in New Issue
Block a user