SQLFacet Return Precision and Scale in VB.NET 2005 fx2.0


hello, i've seem examples on setting sqlfacetattribute on return values of sqlfunctions in c#. can not make work in vb.net. compiler always notes attribute can not used on declaration type. vb.net 2005 lack feature?

you put between keyword "as" , data type, this:

_
<microsoft.sqlserver.server.sqlfunction()> _  public shared function function1() <sqlfacet(precision:=5,scale:=2)> decimal          return 123.45d  end function


cheers,
bob beauchemin
sqlskills



SQL Server  >  .NET Framework inside SQL Server



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........