Display ➜ symbol in Microsoft SQL Server [duplicate] - sql

This question already has answers here:
What is the meaning of the prefix N in T-SQL statements and when should I use it?
(4 answers)
Why is sql server storing question mark characters instead of Japanese characters in NVarchar fields?
(8 answers)
Closed 4 months ago.
I have a text in the database with the symbol "➜". When I display it on the web page, I get a "?" instead. Can someone help me?
Best regards

Related

Replacing weird control characters from sql server table [duplicate]

This question already has answers here:
SQL Server - Remove all non-printable ASCII characters
(4 answers)
Closed 4 years ago.
I have a sql server table where control characters appear when column is copied and pasted into notepad. I need to remove/replace these control characters. For example here is a text i copied from my sql server table into notepad
How do i remove "OSC". I have searched the net and here but cant find anything on this. Table was imported from SSIS as ANSI (i also tried data conversion in ssis to convert the column to ascii but still to no avail).
"OSC" is CHAR(157). Try using REPLACE(Values, CHAR(157), ''). If it works then you can update in the table. Hope it helps.

SQL 'LIKE' clause with apostrophe [duplicate]

This question already has answers here:
How do I search for names with apostrophe in SQL Server?
(9 answers)
Closed 5 years ago.
If im trying to search for 'RYAN'S TEAM' in sql it doesnt like the fact that i have an apostrophe ' in RYAN'S and detects that as the end of the LIKE statement.
[Team] LIKE '%RYAN'S TEAM%'
It recognises the whole next line as red in sql server. Is there anyway around this as RYAN'S TEAM is the way it is stored in the database.
This will work:
[Team] LIKE '%RYAN''S TEAM%'
You just have to double the quote chars.

# notation in SQL Server [duplicate]

This question already has answers here:
What does the "#" symbol do in SQL?
(7 answers)
Closed 7 years ago.
I am new to SQL Server, can someone help me what is the significance of # notation followed by name of variable? Like #OrderId ?
All SQL Server variables are prefixed with #.
#local_variable
Is the name of a variable. Variable names must begin
with an at (#) sign. Local variable names must comply with the rules
for identifiers.
https://msdn.microsoft.com/en-us/library/ms188927.aspx

How to Check the given string is a reserved keyword in sql server [duplicate]

This question already has answers here:
Check if string is SQL Server Reserved Keywords or not
(3 answers)
Closed 8 years ago.
How to check whether the given string is a reserved keyword in sql server.
I checked a lot in google ,but i didn't find one!!
for eg: If i am giving the input String as 'Order',sql statement should
return whether it is reserved keyword.
Is there any built-in stored procedures or function to do this? Any help would be appreciated.
There is no built-in function to do that.
Here is the list of the known identifiers.
http://technet.microsoft.com/en-us/library/ms189822.aspx
I suggest to put these in an table and use it in a function / stored procedure.

How can I remove the leading quote? [duplicate]

This question already has answers here:
CSV import in SQL Server 2008
(3 answers)
Closed 8 years ago.
I am using BULK INSERT to import a text file into a table.
The data imports OK but is quoted. for example
"1235","Bob Dylan","Dylan","Bob"
I have read a bit on this and have I created a format file using BCP that resolves the problem except the leading quote. ie:
"1235,Bob Dylan,Dylan,Bob
How can I remove the leading quote
In the past I have used an XML format file with a dummy row of 1 character length. Maybe someone else has a more elegant solution but that worked for me.