473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL vs Access DataBase

If I have code that manipulates an Access DataBase using OLEDB, can I use
same OLEDB code for an SQL database with the exact schema if I just change
the Connection String?
--
Dennis in Houston
Nov 21 '05 #1
3 1946
Yes, but you need to make sure you're using the correct provider in your
connection string (PROVIDER="SQLOLEDB.1"). Be aware that there might be
syntactical differences between your Access Queries and SQL Queries. Also
when you move the database to SQL you need to make sure permissions are set
up correctly, etc.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
If I have code that manipulates an Access DataBase using OLEDB, can I use
same OLEDB code for an SQL database with the exact schema if I just change
the Connection String?
--
Dennis in Houston

Nov 21 '05 #2
Thanks.
--
Dennis in Houston
"Michael C#" wrote:
Yes, but you need to make sure you're using the correct provider in your
connection string (PROVIDER="SQLOLEDB.1"). Be aware that there might be
syntactical differences between your Access Queries and SQL Queries. Also
when you move the database to SQL you need to make sure permissions are set
up correctly, etc.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
If I have code that manipulates an Access DataBase using OLEDB, can I use
same OLEDB code for an SQL database with the exact schema if I just change
the Connection String?
--
Dennis in Houston


Nov 21 '05 #3
No problem. By the way, you might consider switching over to the SQL-Server
specific SqlClient. You can get better performance using the SqlClient as
opposed to plain vanilla OleDb. Some of your code will have to change in
that case, but it might be worth it for you.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
Thanks.
--
Dennis in Houston
"Michael C#" wrote:
Yes, but you need to make sure you're using the correct provider in your
connection string (PROVIDER="SQLOLEDB.1"). Be aware that there might be
syntactical differences between your Access Queries and SQL Queries.
Also
when you move the database to SQL you need to make sure permissions are
set
up correctly, etc.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
> If I have code that manipulates an Access DataBase using OLEDB, can I
> use
> same OLEDB code for an SQL database with the exact schema if I just
> change
> the Connection String?
> --
> Dennis in Houston


Nov 21 '05 #4

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

Similar topics

3
by: Nicola | last post by:
Hi Everyone, I am new to programming and would like to know how to open an access Report from within vb 6. I am trying to write a program to organise cross stitch threads. I have found out how...
11
by: Rosco | last post by:
Does anyone have a good URL or info whre Oracle and Access are compared to one another in performance, security, cost etc. Before you jump on me I know Oracle is a Cadillac compared to Access the...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
49
by: Mell via AccessMonster.com | last post by:
I created databases on Access 2003 and I want to deploy them to users. My code was also done using 2003. If they have Ms Access 2000 or higher, will they be able to use these dbs with all code,...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
34
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
11
by: Harel | last post by:
I have a report SQL which have been working for a few weeks. Its large and the target database is large. It has 59 join, and I dont think there is anything I can do about this, since the DB I use...
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
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...
0
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
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...

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.