I have the following table-valued function:
[Microsoft.SqlServer.Server.SqlFunction(SystemDataAccess = SystemDataAccessKind.Read,
FillRowMethodName ="XXX", TableDefinition = "time DateTime2"]
public static IEnumerable ValueAtTime(string somestring, DateTime inputTime)
{
...
}
As you can see in the table definition I can define DateTime2
as a column datatype. I would also like to do the same for the input parameter "InputTime", but since this parameter is a .NET type, I am unable to. Is there a way to do that in order to get DateTime2
in the SQL definition as an input parameter?