473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Parameter Access Queries

If I trying to write code which is not dependant on which database I am
using. I have developed the code for SQL Server and it is working just
fine, and now I have created the same data in MS Access. I am currently
running all stored procedures. I know that I have run "procedures" in
access, but I do not quite remember how to set this up. When I build the
query in Access, how do I identify a parameter value is required and where?
Do I create "command parameters" for these parameters in C#?

If I have written my application code taking advantage of SQL's ability to
pass multiple answer sets, will I be able to get Access to pass multiple
answer sets as well, or have I made my code database specific?

Does Access have a "@RETURN_CODE"? How do I check the success of an Access
query?

Thanks in advance for your assistance!!!!!!!!
Nov 15 '05 #1
1 1814
Jim
If you are using SqlClient for accessing SQL Server, then you will find that the code is not going to work for Access. You use ODBC to access Access database. As far as command parameters, you would do the same that you would for SQL Server, but note that the ODBC provider is positional

Tu-Thac

----- Jim Heavey wrote: ----

If I trying to write code which is not dependant on which database I am
using. I have developed the code for SQL Server and it is working just
fine, and now I have created the same data in MS Access. I am currently
running all stored procedures. I know that I have run "procedures" in
access, but I do not quite remember how to set this up. When I build the
query in Access, how do I identify a parameter value is required and where
Do I create "command parameters" for these parameters in C#

If I have written my application code taking advantage of SQL's ability to
pass multiple answer sets, will I be able to get Access to pass multiple
answer sets as well, or have I made my code database specific?

Does Access have a "@RETURN_CODE"? How do I check the success of an Access
query

Thanks in advance for your assistance!!!!!!!

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: | last post by:
From ASP I run a query using MIN(some_field/parameter) Now I need to pass this parameter to the query from ASP code How do I do that? Syntax like MIN( / ) does not work
2
by: Simon Pleasants | last post by:
Am something of a newbie at this, so please bear with any stupid questions. I have created a database to track shipments that we import. The information is stored in a table and I have created...
1
by: Cory | last post by:
When I run the subroutine testEmailContacts the msgbox says that there is only 1 record. The sql for qyEmailContactsQyCard is below. There is over 3000 records in the table "tbl:Contact". What am i...
21
by: Marc DVer | last post by:
I am trying to create a query that can be loaded as a querydef object but not having to assign values to the parameters if I don't want to. Normally when using a parameter query in VBA my code...
0
by: tlyczko | last post by:
Can anyone give me a website reference(s) wherein I can learn how to use a form and parameter queries to generate an Access report *without* having to reference the form or hard-code the query in...
6
by: tizmagik | last post by:
I am having a lot of difficulty generating a CrossTab Query based report. I have looked online for several tutorials and whatnot but I have not been able to really find what I'm looking for, nor...
0
by: Billie Boy | last post by:
Hi to all. I’m new here and am coming to you from Melbourne Australia. So a big HELLO 2 ALL. Now I am encountering an annoying problem in the SQL builder of the copy of VB.6 that I am using at...
1
by: TonyJH | last post by:
Hello, I have a database in Access2003. I have set up several queries that use the parameter entry . Each query produces different outputs from various tables that go into a report. Sometimes, a...
25
by: DanicaDear | last post by:
I am trying my hand at my first ever Access report. It is based on a two parameter query (start date, end date). When I use the report wizard and click "view report" the report prompts me for the...
8
by: DanicaDear | last post by:
I have something interesting...looking to see if anyone else has came across this. I have a query with parameter and and the query works beautifully every time. However, when I use the wizard...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.