Solved

OLE DB Version Property example

Posted on 2011-03-04
6
364 Views
Last Modified: 2012-05-11
how would use run the above with tsql statement?

http://msdn.microsoft.com/en-us/library/aa173525%28v=sql.80%29.aspx
thanks
0
Comment
Question by:anushahanna
  • 3
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
derekkromm earned 333 total points
ID: 35041733
Its not something that you can find on the SQL Server. Its a property of the OLEDB connection you are using in your application.

You can do this:

Dim adoCmd
Set adoCmd = CreateObject("ADODB.Command")

Dim sBasePath
sBasePath = adoCmd.Properties("OLE DB Version")
0
 
LVL 6

Author Comment

by:anushahanna
ID: 35041739
OK - do you test the above with access? if not , what tool?

what is the point of the msdn link?
0
 
LVL 15

Assisted Solution

by:derekkromm
derekkromm earned 333 total points
ID: 35041742
It is a dynamic property of an ado/oledb connection

On the left side of the page, you can follow the arrows all the way up the "tree" of what it all means ("Dynamic Properties", "Programming ADO SQL Applications", etc)

0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 6

Author Comment

by:anushahanna
ID: 35041754
>>On the left side of the page,
which tool? where?
0
 
LVL 29

Assisted Solution

by:Olaf Doschke
Olaf Doschke earned 167 total points
ID: 35042970
"which tool? where?"

The left side of the msdn page you mention.

The OLEDB Version is a property of the connection, not of the server or database.

"Applies To:Connection Object"

So this is not something that translates to t-sql or any other sql dialect. It's not querying the server or database, it's determining the supported general oledb version by the used oledb provider, so it's a query towards the driver.

Bye, Olaf.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 35063459
OK - in that case, can we determine which is the highest "OLE DB provider" available for any connection on the server or for any DB?

perhaps through Dos command or Javascript code?

where(which tool) do you use to run derekkromm's code?
----------------

Dim adoCmd
Set adoCmd = CreateObject("ADODB.Command")

Dim sBasePath
sBasePath = adoCmd.Properties("OLE DB Version")
------------------
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

831 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