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: 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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.