silvercover Posted November 9, 2009 Share Posted November 9, 2009 Hi, I need to select some rows from my MSSQL database where some of my field names have [ and ] chars in their names. so when I want to post my query SQL Server says this: Quote An expression of non-boolean type specified in a context where a condition is expected, near 'Passwd'. Here is my SQL query: SELECT [TAC_ID] ,[TAC_Attr] ,[TAC_Val] FROM [NTTabDB].[dbo].[TAC_USR] WHERE [Global]Passwd = 53505; What's wrong? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/180837-using-and-in-where-clause/ Share on other sites More sharing options...
Gamic Posted November 15, 2009 Share Posted November 15, 2009 Try [[Global]]Passwd] instead Link to comment https://forums.phpfreaks.com/topic/180837-using-and-in-where-clause/#findComment-958020 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.