I have the following function
CREATE FUNCTION GetIdentity() RETURNS INT AS
BEGIN
RETURN (IDENT_CURRENT('tblTempPo'))
END
GO
I need to call it with create table
create table tblTempPo
(
ID int null,
BrickVolume AS
(
GetIdentity()
)
)
I'm getting the error
'GetIdentity' is not a recognized built-in function name.
How can I solve this?