473,387 Members | 3,821 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,387 software developers and data experts.

Can I use MS-SQL Stored Procedures through an ODBC connection?

I created a new MS-SQL Database, "TestODBC".

I made Table1 and StoredProcedure1.

I made an ODBC DSN for that MS-SQL Database.

I created a new AccessXP mdb, "TestODBC".

I linked to the table of the MS-SQL Database, "TestODBC". I wanted to use
StoredProcedure1 as the bound recordsource for a new form Form1. But I
could not find nor link to StoredProcedure1 from the MDB file.

Is there some way that I can bind an Access form in an MDB to a stored
procedure in an MS-SQL database using a ODBC "connection"?

*********

So I went back to the MS-SQL database and made View1 which corresponded to
StoredProcedure1. In the mdb file I linked to View1 as a Table and I was
able to create a form bound to View1. As of yet I have not been able to
have the form display any data, nor is it editable.

Is there some way that I can bind an Access form in an MDB to a view in an
MS-SQL database using a ODBC "connection" and view and edit the data?

*********

So I went to the mdb and created Query1 corresponding to StoredProcedure1
and View1. A form bound to the Query1 worked swimmingly. Is this the
standard way of creating bound forms with an ODBC connection?

What engine is actually doing the work for this query: SQL-Server, ADO,
DAO, something else? Where is it doing the work and how? Is this any
different from where and how a Stored Procedure would do the work?

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #1
1 5488
1)
Is there some way that I can bind an Access form in an MDB to a stored
procedure in an MS-SQL database using a ODBC "connection"?
Use a pass-through query, this will not be updatable though.

2) Is there some way that I can bind an Access form in an MDB to a view in an
MS-SQL database using a ODBC "connection" and view and edit the data?
Make sure your table has an Identity column and that this is included in
your view. When you link Access will ask you to identify the key column,
select your Identity column.

3) What engine is actually doing the work for this query: SQL-Server, ADO,
DAO, something else? SQL Server, DAO and Access
Where is it doing the work and how? Depends on how your table is set up, best case scenario is it transfers the
index across the network and then uses that to decide which records to call.
Worst case scenario it transfers the whole table and then sorts/filters
locally.
Is this any different from where and how a Stored Procedure would do the work?
Yes, a SP will carry out the work on the server and you then get the
resultset back again.

Using methods 1 and 2 more work is carried out on the server and therefore
less data is transfered across the network.
Terry
"Lyle Fairfield" <Mi************@Invalid.Com> wrote in message
news:Xn*******************@130.133.1.4... I created a new MS-SQL Database, "TestODBC".

I made Table1 and StoredProcedure1.

I made an ODBC DSN for that MS-SQL Database.

I created a new AccessXP mdb, "TestODBC".

I linked to the table of the MS-SQL Database, "TestODBC". I wanted to use
StoredProcedure1 as the bound recordsource for a new form Form1. But I
could not find nor link to StoredProcedure1 from the MDB file.

Is there some way that I can bind an Access form in an MDB to a stored
procedure in an MS-SQL database using a ODBC "connection"?

*********

So I went back to the MS-SQL database and made View1 which corresponded to
StoredProcedure1. In the mdb file I linked to View1 as a Table and I was
able to create a form bound to View1. As of yet I have not been able to
have the form display any data, nor is it editable.

Is there some way that I can bind an Access form in an MDB to a view in an
MS-SQL database using a ODBC "connection" and view and edit the data?

*********

So I went to the mdb and created Query1 corresponding to StoredProcedure1
and View1. A form bound to the Query1 worked swimmingly. Is this the
standard way of creating bound forms with an ODBC connection?

What engine is actually doing the work for this query: SQL-Server, ADO,
DAO, something else? Where is it doing the work and how? Is this any
different from where and how a Stored Procedure would do the work?

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)

Nov 12 '05 #2

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

Similar topics

9
by: CY FOK | last post by:
Hi I am planning to open a software company to develop client-server apps and web applications for my client. Now, i am in a difficult situation to determine what is the best platform i should use...
3
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
3
by: Christian McArdle | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.os.ms-windows.programmer.64bit This is a formal Request For Discussion (RFD) to create comp.os.ms-windows.programmer.64bit as an unmoderated...
2
by: Daniel | last post by:
I use an Access database to basically take data exports, import them, manipulate the data, and then turn them into exportable reports. I do this using numerous macros, and queries to get the data...
7
by: Ronnie | last post by:
I'm curious if anyone has any insights into what Microsoft has in store for ACCESS in current or future releases? I'm currently working on Access 2000 and haven't seen the newer versions. I'm...
33
by: Uwe Range | last post by:
Hi to all! A customer of mine told me some days ago that her IT-people told her ACCESS would not be such a good idea for continuing with our project, because Access will not be continued in the...
47
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small...
2
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to...
36
by: Alex Martelli | last post by:
So, I thought I'd tool up to let me build and test Python extensions on Windows (as well as Mac and Linux) -- I'm trying out Parallels Workstation beta on my new Macbook Pro (and so far it seems to...
4
by: PabsBath | last post by:
Hello, help please. I have been pulling my hair out for a few weeks now and been looking on the web for answers but not managed to find anything!! I'm currently operating a small (2mb - approx...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.