Solved

OLE DB Version Property example

Posted on 2011-03-04
6
366 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
[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
  • 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
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.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
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.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

735 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