Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
vijays3
Constraint Violating Yak Guru
354 Posts |
Posted - 2010-05-18 : 14:15:15
|
Hi all,I am aware of this function but have bit confusion...How can we use comma (') delimiter? I am trying to use it but it is giving me error:-select quotename('sb',''')Msg 105, Level 15, State 1, Line 1Unclosed quotation mark after the character string '')'.Msg 102, Level 15, State 1, Line 1Incorrect syntax near '')'.How can i use comma? |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
vijayisonly
Master Smack Fu Yak Hacker
1836 Posts |
Posted - 2010-05-18 : 14:51:56
|
quote: Originally posted by vijays3 Hi all,I am aware of this function but have bit confusion...How can we use comma (') delimiter? I am trying to use it but it is giving me error:-select quotename('sb',''')Msg 105, Level 15, State 1, Line 1Unclosed quotation mark after the character string '')'.Msg 102, Level 15, State 1, Line 1Incorrect syntax near '')'.How can i use comma?
What exactly are you trying to do? |
 |
|
sunsanvin
Master Smack Fu Yak Hacker
1274 Posts |
Posted - 2010-05-19 : 06:12:06
|
you want to know how de-limited identifier works...right???if that is the question, answer is as followsExample:if you want to use a keyword as an object name, then you can use it. like...create table [select](a int, b char(1))in the same way, you can work with single Quotes also..(for some other options...not for create)Tara, correct me if i'm wrongArnavEven you learn 1%, Learn it with 100% confidence. |
 |
|
vijays3
Constraint Violating Yak Guru
354 Posts |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-05-19 : 13:24:01
|
A single quote can be masked by a second single quote:select quotename('sb','''') No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
vijays3
Constraint Violating Yak Guru
354 Posts |
Posted - 2010-05-21 : 14:41:46
|
Thank yo |
 |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-05-22 : 06:23:50
|
welcome No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
|
|
|
|