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:
		
							
								
								
									
										19
									
								
								samples/SQL/AvailableInSearchSel.prc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								samples/SQL/AvailableInSearchSel.prc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| IF EXISTS (SELECT * FROM DBO.SYSOBJECTS WHERE ID = OBJECT_ID(N'dbo.AvailableInSearchSel') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) | ||||
|     DROP PROCEDURE dbo.AvailableInSearchSel | ||||
| GO | ||||
| CREATE Procedure AvailableInSearchSel | ||||
| AS | ||||
|  | ||||
|     SELECT    '-1', | ||||
|             'Select...' | ||||
|     UNION ALL | ||||
|     SELECT    '1', | ||||
|             'Yes' | ||||
|     UNION ALL | ||||
|     SELECT    '0', | ||||
|             'No' | ||||
| GO | ||||
| IF DB_NAME() = 'Diebold' BEGIN | ||||
|     GRANT EXECUTE ON dbo.AvailableInSearchSel TO [rv] | ||||
| END | ||||
| GO | ||||
		Reference in New Issue
	
	Block a user