Interesting Outout in SQL SERVER

0 pts.
Tags:
SQL Server
Folks, If I query like this, am getting the following Output.. Y is this so ??? SELECT 10_to_100 _to_100 ----------- 10 SELECT 25_from _from ----------- 25 If anybody is familiar with the reason, y the part of the data in select query getting truncated.. pls share... :) cheers ! ash
ASKED: November 2, 2007  9:22 PM
UPDATED: December 2, 2007  11:15 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

The underscore is a special character for SQL Server. For some reason the SQL Server is parsing the data out at the underscore. When specifying text to select out you should place that text within single quotes.
<pre>SELECT ’10_to_100′</pre>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following