Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old January 11th, 2005, 05:28 AM
Registered User
Join Date: Jan 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default converting Access 2000 views to Sql views

I'm converting queries from Access 2000 to SQL views. I need to covert the following expression from Access 2000 to SQL.

Volume: IIf([OriginalOrderNo] = 0, [ acsuorders_summary] ! [order_no], [OriginalOrderNo])as ordernum.

is there any chance i can use the same in sql plz help.

Reply With Quote
  #2 (permalink)  
Old January 26th, 2005, 02:37 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

Hi there is no equivelent IIF function in SQL. You need to either use:

      ..do something
      ..do someting

or Use a Case When statement:

Case <var or value to check>
   When <exp> Then <exp>

The Sql Books Online will be very helpful to you.

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error connecting to SQL Views lucylee Visual Studio 2005 0 November 27th, 2006 10:19 AM
Views prashar SQL Language 1 December 13th, 2005 01:10 AM
Views or not ?? stagedancer SQL Server 2000 1 November 24th, 2004 02:08 PM
Partitioned Views deyakhatib SQL Server 2000 3 June 28th, 2004 09:57 AM
Views SAM GORDON SQL Server 2000 5 July 19th, 2003 08:14 AM

All times are GMT -4. The time now is 04:59 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.