Hello,
I have scalar valued function that simply convert a date from UTC to LET by using the .NET functions..
The code is very simple:
Partial
Public Class UserFunction<Microsoft.SqlServer.Server.SqlFunction(isDeterministic:=
True, Name:="ConvertLETDatetoUTC")> _Public
Shared Function ConvertLETDatetoUTC(ByVal DateLETFormat As SqlDateTime) As DateTime ' Add your code here Dim DateLETFormatToConvert As DateDateLETFormatToConvert = DateLETFormat.Value
Return DateLETFormatToConvert.ToUniversalTime End FunctionEnd Class
select
ConvertLETDatetoUTC('2007-06-25 10:00:00')
Now the problem is that the function works properly on my sql server instanc but in the moment I deploy the same code on the sql server instance on a remote machine the conversion doesn't work that means that date I pass is not converted.
On the SQl server machine there the .net framework 1.1 and 2.0 ...
I really don't know what to check to solve the problem .. some idea
Thank you