473,513 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Convert Access to SQL Server

hariharanmca
1,977 Top Contributor
I am using IIF condition in MSAccess to split two kind of rows into column why it is not possible in SqlServer or how can i do.
Feb 9 '07 #1
4 1423
iburyak
1,017 Recognized Expert Top Contributor
IIF is a VBA function and just recognized by Access.

Use case instead.

[PHP]Case when condition then result1 else result2 end[/PHP]
Feb 9 '07 #2
dorinbogdan
839 Recognized Expert Contributor
In queries, I use SQL Case method as an equivalent to IIF:

Expand|Select|Wrap|Line Numbers
  1. Case When (anyFlag <> 0 ) Then  ... Else ...End
For more investigation, It may be helpful if include here some MSAccess sample.
Feb 9 '07 #3
hariharanmca
1,977 Top Contributor
In queries, I use SQL Case method as an equivalent to IIF:

Expand|Select|Wrap|Line Numbers
  1. Case When (anyFlag <> 0 ) Then  ... Else ...End
For more investigation, It may be helpful if include here some MSAccess sample.

Yes i already tryed that, but it wont run in Sql view
Feb 10 '07 #4
dorinbogdan
839 Recognized Expert Contributor
I know that a SQL View can contain Case statements.
For further investigation, it may be helpful if include here some of your MSAccess sample, and even the SQL View not working code.
Feb 12 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

12
8245
by: Guy | last post by:
I got a big Access file (1 400 tables) to convert to SQL and I would like to be provided with some automated tools, except upsizing wizard and DTS, to convert it on my own. I got a lot of forms...
1
1577
by: Collegue | last post by:
Is it possibly to convert access database into other program like C++ or Delphy. Thanks
0
1044
by: Robert Scheer | last post by:
Hi. I have an .aspx page that refreshes itself from 30 to 30 seconds. The pages uses meta-tags in order to refresh. This page verifies some data on a table in my database, and if there is a...
3
12917
by: Bill Nicholson | last post by:
What tools are available to convert Access projects (Forms, Code, Queries, Reports) to VB Dot Net? Does anyone have experience with this type of conversion? Please tell me I don't have to do it...
8
7246
by: s_wadhwa | last post by:
SELECT DISTINCTROW "01C" AS dummy, Buildings.BuildingNumber, UCASE(Buildings.BuildingName) AS BuildingName, Buildings.MasterPlanCode, Buildings.UniformBuildingCode,...
2
1655
by: keithgell | last post by:
I needed to import large CSV files into Access, when requested by a command in a .Net interface. Because Access does not have a bulk insert command, and I already have vba macros in Access that...
1
1185
by: ahpooh82 | last post by:
hi all, i having a problem to access server folder. i got one folder inside server, which i already shared. but when i access that folder fail. dim host as string = "\\serverId\folder\file.xml"...
0
1074
by: nethajireddy | last post by:
hello Techies.. I already placed in this forum but I did not get exact solution for my problem, we are using windows 2000 server and configuration is P-III 500Mhz processors (2), 512MB...
1
2691
by: vinodkus | last post by:
dear sir/madam How to convert sql server data to ms access. Please help me Thanks in advance
0
1264
by: SteveBark | last post by:
Can anyone point me in the right direction as to what control structure I should put in place for the following requirement. I have an Access Server which I have 30 modems connected to. I need to...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.