Hello all...
here in my problem. I am moving from Access to SQL server for my ASP pages. I want to migrate the queries from Access to stored procedures. I am haing all sorts of trouble figuring out conditional logic and getting it to display properly. A simple example is...
Access SQL: IIf([Pre_app]='','Active','Inactive') AS Active,
MS SQL that doesn't work...
IF dbo.dbo_MSXDMAIN.pre_app LIKE '' THEN 'ACTIVE' ELSE 'INACTIVE') AS Active,
Can someone just give me the framework for conditional statements (IF and CASE) so I can get this project done???!
Thanks!
here in my problem. I am moving from Access to SQL server for my ASP pages. I want to migrate the queries from Access to stored procedures. I am haing all sorts of trouble figuring out conditional logic and getting it to display properly. A simple example is...
Access SQL: IIf([Pre_app]='','Active','Inactive') AS Active,
MS SQL that doesn't work...
IF dbo.dbo_MSXDMAIN.pre_app LIKE '' THEN 'ACTIVE' ELSE 'INACTIVE') AS Active,
Can someone just give me the framework for conditional statements (IF and CASE) so I can get this project done???!
Thanks!