Basically I want to do this:
I want to return a recordset that converts a single nvarchar (ID) value to an integer if it contains a number. If the identifier can be converted to a number, add this line to the SELECT recordset. If not, skip this line.
I think SQL should look something like this.
(ID - nvarchar (10) in dbo.Table)
CREATE TABLE
But I get an error: nvarchar value is 'Default' for int data type. If I do SELECT CAST(ID as int) , which also does not work.
Rob
source share