Getting this error message on an MS SQL DB that I am just cobbling together - running on a GoDaddy server.

Msg 701, Level 17, State 123, Line 1
There is insufficient system memory in resource pool 'internal' to run this query.

Trying to run this Scalar Function:

Select dbo.GetName_F ('Smith, John',2)

The error is hiding something else. Any thoughts on where I can start looking?