I want to convert the result of this query (string to DateTime)
SET [something] = dbo.fn_GetProfileElement('WelcomeSent',PropertyNames,PropertyValuesString)
FROM aspnet_Profile where aspnet_Profile.UserId = CTUsers.userid
so I try this:
SET [something] = CONVERT(DATETIME,(dbo.fn_GetProfileElement('WelcomeSent',PropertyNames,PropertyValuesString)
FROM aspnet_Profile where aspnet_Profile.UserId = CTUsers.userid),101)
But I receive this error:
Incorrect syntax near the keyword 'FROM'.