Solved

OleDB connection strings and query format

Posted on 2004-09-13
3
345 Views
Last Modified: 2006-11-17
1) Can someone please show me an example of an Ole Connection String for MS Access, MS Sql Server, and MySql.
2) Are the following queries well-formed Ole querystrings?  If not, how do I fix them?
SELECT [template_DB_PurchasedCodes].[CreationDate] FROM [template_DB_PurchasedCodes] WHERE ([template_DB_PurchasedCodes].[Code] = ?)

INSERT INTO [template_DB_PurchasedCodes] ([Code], [CreationDate]) VALUES (?, ?)

UPDATE [template_DB_TrialCodes] SET [RunsLeft]=? WHERE ([template_DB_TrialCodes].[Code] = ?)
0
Comment
Question by:thedude112286
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 500 total points
ID: 12049369
Have a look here:
http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm

As for the queries, they all look pretty standard and should work on most (if not all) dialects of SQL.
0
 
LVL 34

Expert Comment

by:flavo
ID: 12049482
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 13790800
Please maintain this abandoned question.  See here dro more information:
What are my choices?
http://www.experts-exchange.com/Databases/MS_Access/help.jsp#hi67
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question