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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 How do deal with double quote field (reserved sql)

Author  Topic 

nt4vn
Yak Posting Veteran

98 Posts

Posted - 2011-12-21 : 16:24:41
There is a field in table that is a reserved SQL word, that was why it display in double quote. For example, SELECT "KEY" FROM TABLE1
How do you convert that ASCII code 34 to specific character?

Thanks,

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-12-21 : 16:29:32
I don't understand what you mean, but wouldn't you want this instead:

select [key] from table1

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -