Stored Procedure Properties
| Name | Value |
|---|---|
| Owner | dbo |
| Created | 2004-05-31 |
| Startup | False |
| Encrypted | False |
Creation Options
| Name | Value |
|---|---|
| QUOTED_IDENTIFIER | OFF |
| ANSI_NULLS | OFF |
Parameters
| Name | DataType | Length | Type |
|---|---|---|---|
| @PostID | int | 4 | INPUT |
| @UserName | nvarchar | 100 | INPUT |
Total: 2 parameter(s)
SQL
SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS OFF GO CREATE PROCEDURE forums_GetPostRead ( @PostID int, @UserName nvarchar (50) ) AS BEGIN DECLARE @HasRead bit SET @HasRead = 0 IF EXISTS ( SELECT HasRead FROM PostsRead WHERE PostID = @PostID AND Username = @UserName ) SET @HasRead = 1 SELECT HasRead = @HasRead END GO SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS ON GO