Difference between revisions of "Dbo.ufnGetAccountingStartDate (function)"

From dbscript Online Help
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|-
+
|- valign="top"
| '''function
+
| '''Function
 
| dbo.ufnGetAccountingStartDate
 
| dbo.ufnGetAccountingStartDate
 
|- valign="top"
 
|- valign="top"
 
| '''Description
 
| '''Description
 
| Scalar function used in the uSalesOrderHeader trigger to set the ending account date.
 
| Scalar function used in the uSalesOrderHeader trigger to set the ending account date.
|-
 
 
|}
 
|}
  
 +
=== Source ===
 
<pre>
 
<pre>
 
CREATE FUNCTION [dbo].[ufnGetAccountingStartDate]()
 
CREATE FUNCTION [dbo].[ufnGetAccountingStartDate]()
Line 20: Line 20:
 
</pre>
 
</pre>
  
 
+
=== Dependencies ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 30: Line 30:
 
| '''Child Object
 
| '''Child Object
  
|-
+
|- valign="top"
 
| Execute
 
| Execute
 
| Table
 
| Table
Line 38: Line 38:
 
| uSalesOrderHeader
 
| uSalesOrderHeader
 
|}
 
|}
 
  
  

Latest revision as of 23:15, 23 June 2010

wikibot[edit]

Function dbo.ufnGetAccountingStartDate
Description Scalar function used in the uSalesOrderHeader trigger to set the ending account date.

Source[edit]

CREATE FUNCTION [dbo].[ufnGetAccountingStartDate]()
RETURNS [datetime] 
AS 
BEGIN
    RETURN CONVERT(datetime, '20030701', 112);
END;

Dependencies[edit]

Reference Type Object Type Referencing Object Child Type Child Object
Execute Table Sales.SalesOrderHeader Trigger uSalesOrderHeader


automatically generated[edit]

function dbo.ufnGetAccountingStartDate
Description Scalar function used in the uSalesOrderHeader trigger to set the ending account date.

CREATE FUNCTION [dbo].[ufnGetAccountingStartDate]()
RETURNS [datetime] 
AS 
BEGIN
    RETURN CONVERT(datetime, '20030701', 112);
END;


Reference Type Object Type Referencing Object Child Type Child Object
Execute Table Sales.SalesOrderHeader Trigger uSalesOrderHeader