473,383 Members | 1,952 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,383 software developers and data experts.

Could we write stored procedures in MS Access

Hi All,

Could we write a stored Procedure in asp connected to an Access db.
I have four table sin Ms Access
sql1-account id, account name
sql2-account id, email id
sql3- account id, contract number, cstart date, cend date, downloadurl, econtact, mstatus
sql4-account name, userid, pwd

I want this condition to be satisfied:

if cstart date= cend date, and email id=econtact and maintenance contract is yes- then:
retrive user id, pwd and download url from all these tables taking the account if as primary key to match 4 tables...

Anyone familiar with this, please help me in gettnig the value with a stored procedure...

Thanks,
Tanya
Jun 6 '07 #1
3 1467
FishVal
2,653 Expert 2GB
Hi All,

Could we write a stored Procedure in asp connected to an Access db.
I have four table sin Ms Access
sql1-account id, account name
sql2-account id, email id
sql3- account id, contract number, cstart date, cend date, downloadurl, econtact, mstatus
sql4-account name, userid, pwd

I want this condition to be satisfied:

if cstart date= cend date, and email id=econtact and maintenance contract is yes- then:
retrive user id, pwd and download url from all these tables taking the account if as primary key to match 4 tables...

Anyone familiar with this, please help me in gettnig the value with a stored procedure...

Thanks,
Tanya
Hi!

Access doesn't support stored procedures as for example MSSQL does.
But Access query would be satisfying equivalent if you want to retrieve ADO.Recordset from the db.
Jun 7 '07 #2
Hi!

Access doesn't support stored procedures as for example MSSQL does.
But Access query would be satisfying equivalent if you want to retrieve ADO.Recordset from the db.
===============

Thanks lot for the reply, could you help me with the query for the above mentioned scenario? Please...

Thanks,
Tanya
Jun 11 '07 #3
FishVal
2,653 Expert 2GB
===============

Thanks lot for the reply, could you help me with the query for the above mentioned scenario? Please...

Thanks,
Tanya
Will be glad to help you. Please clarify table relationships.
Particulary the following details:
1) what fields are in PK->FK relationship
2) if sql1 is in one-to-many relationship with sql4, I mean account has multiple users, it is unable to associate sql2 with sql4, because there is no direct relationship between sql4.[userid] and sql2.[email id], or maybe I'm missing the point
3) it will be perfect if you will provide mentioned tables full metadata
Jun 11 '07 #4

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

Similar topics

1
by: Norman Scheinin | last post by:
I have an Access 2000 database connected to a SQL Server and am trying to execute my first stored procedure. I created the stored procedure and verified that it works, but when I try to execute it...
1
by: zlatko | last post by:
I use a stored procedure that is calling several other stored procedure which update or append values in several tables. All of them are stored procedures with input parameters by which they filter...
1
by: db55 | last post by:
I have some users that I need to run stored procedures, but they can't seem to run them unless they are in the db_owner role of the database. How do I give them access to run the stored procs...
24
by: Benjamin Doyle | last post by:
In Chip Irek's "A PRIMER ON USING DB2 WITH .NET" (www.15seconds.com), he states that "...ODBC doesn't support DB2 stored procedures. So if you are building an application heavily dependant on...
3
by: Ed Pinnegar | last post by:
I've looked everywhere for info on stored procedures using Access. Any info on how to make one? Thanks! Ed
5
by: Tim Marshall | last post by:
I was following the thread "Re: Access Treeview - Is it Safe Yet?" with interest and on reading the post describing Lauren Quantrell's SmartTree, I've run into something I don't understand: Stored...
28
by: mooreit | last post by:
The purpose for my questions is accessing these technologies from applications. I develop both applications and databases. Working with Microsoft C#.NET and Microsoft SQL Server 2000 Production and...
2
by: jed | last post by:
I have created this example in sqlexpress ALTER PROCEDURE . @annualtax FLOAT AS BEGIN SELECT begin1,end1,deductedamount,pecentageextra FROM tax
0
by: chaitanya02 | last post by:
Hi All, Please let me know, if we could write Stored Procedures in MS Access. I have a 4 tables like this: sql1-account id, name sql2-account id,email id sql3-account id, cstart date, cend...
11
by: peter | last post by:
I am trying to get a SQL stored procedure to use user maintained MQT implicitly which raises questions on when they are used or not used. In theory you would expect the stored procedure to pick up...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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...

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.