Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Null on Null Input | False |
| Schema Bound | False |
| Assembly |
Parameters
| Name | Data Type | Length | Description |
|---|---|---|---|
| (Result) | varchar | 8000 | |
| @source | varchar | 8000 | |
| @destination | varchar | 8000 |
SQL Script
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- MS SQL Trim function
-- Removes leading and trailing white spaces from the supplied
-- text
create FUNCTION dbo.f_move_file(@source varchar(8000),@destination varchar(8000))
RETURNS varchar(8000)
BEGIN
declare @text varchar(100), @x varchar(100)
if (select [dbo].[axFileExists](@destination)) = 1
begin
set @x = (select [dbo].[axFileDelete](@destination))
end
set @text = (select [dbo].[axMoveFile](@source, @destination))
RETURN LTRIM(RTRIM(@text))
END
GO
GO
-- MS SQL Trim function
-- Removes leading and trailing white spaces from the supplied
-- text
create FUNCTION dbo.f_move_file(@source varchar(8000),@destination varchar(8000))
RETURNS varchar(8000)
BEGIN
declare @text varchar(100), @x varchar(100)
if (select [dbo].[axFileExists](@destination)) = 1
begin
set @x = (select [dbo].[axFileDelete](@destination))
end
set @text = (select [dbo].[axMoveFile](@source, @destination))
RETURN LTRIM(RTRIM(@text))
END
GO
Depends On
3Used By
No items found