Hey G, the user ID is 8 characters long. Weird. InternalID is declared as VARCHAR(MAX) in the User table.
Strangely enough though, the program runs fine in Prod. But does not in Dev. So I suspect it is a data issue, even though I refreshed Dev from Prod not long ago...The SP that calls these UDFs fails with a "String or binary data would be truncated." error. I have narrowed it down to this one function but can't get to see what is wrong. Still looking.
Thanks.
MCP SQL Server 2000, MCTS SQL Server 2005, MCTS SQL Server 2008 (DBD, DBA)