Add to Favorites    Make Home Page 9243 Online  
 Language Categories  
 Our Services  

Home » ASP Home » SQL Home » Connection Info

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Connection Info
Description If you want to know what drivers and other vital details are being used for a DSN, here is some code to the rescue.
Category ASP » SQL
Hits 379622
Code Select and Copy the Code
html><head> <title>connectioninfo.asp by Christophe Wille http://www.softwing.com</title> </head> <!--#include file="lib_connectioninfo.asp"--> <body> <% Response.Write "<hr>SQL Server Connection" Call DSNinfo("DSN=student;uid=student;pwd=magic") Response.Write "<hr>Access Connection Connection" theDSN="DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" theDSN=theDSN & Server.MapPath("/learn/test/biblio.mdb") Call DSNInfo(theDSN) %> </body> </html> The Include file looks like this: <% Sub DSNInfo(strDSN) Set cnn1 = Server.CreateObject("ADODB.Connection") Set rsQuery = Server.CreateObject("ADODB.RecordSet") cnn1.open strDSN Response.Write "ADO Version: " & cnn1.Version Response.Write "<BR>" & vbCrLf Response.Write strVersionInfo & "DBMS Name: " & cnn1.Properties("DBMS Name") Response.Write "<BR>" & vbCrLf Response.Write "DBMS Version: " & cnn1.Properties("DBMS Version") Response.Write "<BR>" & vbCrLf Response.Write "OLE DB Version: " & cnn1.Properties("OLE DB Version") Response.Write "<BR>" & vbCrLf Response.Write "Provider Name: " & cnn1.Properties("Provider Name") Response.Write "<BR>" & vbCrLf Response.Write "Provider Version: " & cnn1.Properties("Provider Version") Response.Write "<BR>" & vbCrLf Response.Write "Provider Friendly Name: " & cnn1.Properties("Provider Friendly Name") Response.Write "<BR>" & vbCrLf If 0 = InStr(LCase(cnn1.Properties("Provider Name")),"oledb") Then ' ### no OLE DB Provider used, therefore : Response.Write "Driver Name: " & cnn1.Properties("Driver Name") Response.Write "<BR>" & vbCrLf Response.Write "Driver Version: " & cnn1.Properties("Driver Version") Response.Write "<BR>" & vbCrLf Response.Write "Driver ODBC Version: " & cnn1.Properties("Driver ODBC Version") Response.Write "<BR><BR>" End If Set rsQuery = Nothing Set cnn1 = Nothing End Sub %>

Related Source Codes

Script Name Author
��������������������� VyomWorld
Resistor color code reader A.Chermarajan.
Telephone Directory dhivya
card swapping game (Mini Project) nityanand
simple hangman-pascalsource Seabert
college dirtectory (Mini Project) msridhar
Poll Application John van Meter
ASP Daily Hit Counter. Tejaskumar Gandhi
To avoid null in asp environment using sql Sami
Maklumbalas webmaster
poll John van Meter
EasyASP Template Engine. TjoekBezoer
Basic Calculator using HTML & Javascript. Patrick M. D Souza
What servers support ASP ? VyomWorld
What is ASP? VyomWorld

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=219


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review