Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | True |
| Execute As | |
| Null on Null Input | False |
| Schema Bound | False |
| Assembly |
Parameters
| Name | Data Type | Length | Description |
|---|---|---|---|
| (Result) | time | 3 | |
| @iTime | varchar | 255 |
SQL Script
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE FUNCTION dbo.str_to_time (@iTime varchar(255))
RETURNS time(0)
WITH encryption ,
EXECUTE AS CALLER
AS
BEGIN
DECLARE @iOutput datetime
IF @iTime is null or len(LTRIM(rtrim(@iTime)))=0
SET @iOutput=null;
ELSE
BEGIN
SET @iOutput=convert( time(0) , @iTime ,108 )
end
RETURN(@iOutput)
end;
GO
GO
CREATE FUNCTION dbo.str_to_time (@iTime varchar(255))
RETURNS time(0)
WITH encryption ,
EXECUTE AS CALLER
AS
BEGIN
DECLARE @iOutput datetime
IF @iTime is null or len(LTRIM(rtrim(@iTime)))=0
SET @iOutput=null;
ELSE
BEGIN
SET @iOutput=convert( time(0) , @iTime ,108 )
end
RETURN(@iOutput)
end;
GO
Depends On
No items found
Used By
No items found