You are here: Technology, Web & Business Forum
: Web Development
: Programming
:
How can I export Access Queries as SQL?
|
Welcome to the Technology, Web & Business Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Programming Discuss programming languages such as .NET, PHP, PERL, ASP, ColdFusion, C++
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
|||
The best course of action for you will depend on how you are approaching your data access. There are three approaches you can take: Use stored procedures Keep the queries in the code (but put all your queries into functions and fix everyt..
|
|
|||
|
|||
Moving Tables and Data
To use the DTS Wizard to transfer your Access data into SQL Server, you can use these steps:
Migrating Microsoft Access Queries You must move your existing Access queries into SQL Server in one of these formats:
Access query type SQL Server migration options and comments SELECT A SELECT statement can be stored in a Transact-SQL file, a stored procedure, or a view. Creating stored procedures is the best way to separate the database application development from the physical implementation of the database design. Stored procedures are created in one place, and are called from the application. Calls to stored procedures will not "break" if the underlying database changes and the stored procedure is carefully modified to reflect these changes. CROSSTAB Crosstabs are often used for summary reports. An Access CROSSTAB can be implemented as a Transact-SQL SELECT statement in a SQL script, a stored procedure, or a view. The data join is reexecuted each time a query is issued, ensuring that the latest data is always used. Depending on the application, it might be appropriate to store data from the crosstab as a temporary table (see MAKE TABLE in the next row). The temporary table requires fewer resources, but offers only a snapshot of the data at the time the temporary table is created. MAKE TABLE An Access MAKE TABLE can be implemented as a Transact-SQL CREATE TABLE statement in a Transact-SQL script or stored procedure. The syntax follows: SELECT [ ALL | DISTINCT ] [ {TOP integer | TOP integer PERCENT} [ WITH TIES] ] <select_list> [ INTO new_table ] [ FROM {<table_source>} [,…n] ] [ WHERE <search_condition> ] [ GROUP BY [ALL] group_by_expression [,…n] [ WITH { CUBE | ROLLUP } ] CREATE TABLE mytable (low int, high int) UPDATE An UPDATE statement can be stored in a Transact-SQL script; however, the recommended way to implement an UPDATE statement is to create a stored procedure. APPEND An APPEND statement can be stored in a Transact-SQL script; however, the recommended way to implement an APPEND statement is to create a stored procedure. DELETE A DELETE statement can be stored in a Transact-SQL script; however, the recommended way to implement a DELETE statement is to create a stored procedure. Migrating Microsoft Access Queries into Stored Procedures and Views Each Access query must be placed into this set of statements: CREATE PROCEDURE <NAME_HERE> AS < SELECT, UPDATE, DELETE, INSERT, CREATE TABLE statement from Microsoft Access > GO CREATE VIEW <NAME_HERE> AS <Place (SELECT only, with no parameters) Microsoft Access Query> GO For each Access query:
Real Estate Malta Real Estate Dubai Eeal Estate Egypt |
|
|||
|
|||
hi dear
Microsoft Access allows you to export data to a variety of formats for sharing and analysis. In this tutorial, we walk through the process of exporting an Access table to an Excel workbook
__________________
function management melbourne party mangement melbourne dj hire melbourne melbourne |
|
|||
|
|||
And once the data has been imported, the user can simply right click anywhere in the data results and select "refresh data" to re-query the database and pull in new data (assuming of course they don't have to change any criteria). If that will work for you, then you could just simply build the spreadsheet and send it to everyone and tell them to "refresh" the data whenever the want to.
|




Linear Mode
