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
 Development Tools
 ASP.NET
 snytax error

Author  Topic 

notsosuper
Posting Yak Master

190 Posts

Posted - 2005-05-26 : 19:55:37
How to right this code

strsql = "SELECT Businesstypename FROM Businesstypes "
strsql&="WHERE Businesstypename<> 'Applicant', 'Deleted', 'Prospect' "

gives me error

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2005-05-26 : 20:04:05
try this

WHERE Businesstypename NOT IN ('Applicant', 'Deleted', 'Prospect')
Go to Top of Page

notsosuper
Posting Yak Master

190 Posts

Posted - 2005-05-27 : 11:19:56
thanks a lot
Go to Top of Page
   

- Advertisement -