Skip to content
Advertisement

Tag: nvarchar

Converting nvarchar to int, converting phone with symbols with only numbers

I am trying to convert phone number from the column ‘phone’ from the table ‘Clients’. I have tried the following syntaxes, but I still get error messages – Error: Conversion failed when converting the nvarchar value ‘030-3456789’ to data type int Conversion failed when converting the nvarchar value ‘030-3456789’ to data type int. The query doesn’t return error but there

Get nvarchar records that were inserted as varchar

How can I get all values of an NVARCHAR column whose some of the values were accidently inserted without using the N prefix and so was replaced with ?, and then change those values into the correct form? For example, if I have the following: Output: I want to get what was originally ‘иытание2’ and later turned into gibberish, and

NVARCHAR(?) for Email addresses in SQL Server

For Email addresses, how much space should I give the columns in SQL Server. I found this definition on Wikipedia: http://en.wikipedia.org/wiki/Email_address The format of email addresses is local-part@domain where the local-part may be up to 64 characters long and the domain name may have a maximum of 253 characters – but the maximum 256 characters length of a forward or

Advertisement