Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
|
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2004, 12:04 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default sqloledb vs sqloledb.1

I've seen both used in connection string postings. I've tried both and so far haven't been able to measure any difference. Can somebody help me out?

Example:

strProvider= "Provider=SQLOLEDB.1; Data Source=DEV; Initial Catalog=TEST; User ID=jwayne; password=hondo"
 
Old November 9th, 2004, 06:16 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

 Standard Security:

"Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;"



 Trusted Connection:

"Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;"
(use serverName\instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000)
 Prompt for username and password:

oConn.Provider = "sqloledb"
oConn.Properties("Prompt") = adPromptAlways
oConn.Open "Data Source=Aron1;Initial Catalog=pubs;"



 Connect via an IP address:

"Provider=sqloledb;Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=sa;Password=asdasd;"
(DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default))
 SqlConnection (.NET)

Gokulan Ethiraj
 
Old November 9th, 2004, 06:18 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

Add ; after password.

Can u post part of other codes related with conneciton and recordset..



Gokulan Ethiraj
 
Old November 9th, 2004, 02:03 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I guess I didn't express myself well. What I really want to know is what do I gain by adding the using "Provider=sqloledb.1" instead of "Provider=sqloledb".
Both of them work for me. In preliminary testing, I don't notice any performance gain by using one or the other.

One connection string ....

strProvider= "Provider=SQLOLEDB; Data Source=DEV; Initial Catalog=TEST; User ID=jwayne; password=hondo;"

A second connection string...

strProvider= "Provider=SQLOLEDB.1; Data Source=DEV; Initial Catalog=TEST; User ID=jwayne; password=hondo;"





Similar Threads
Thread Thread Starter Forum Replies Last Post
DSN vs SQLOLEDB joemama SQL Server ASP 1 June 1st, 2006 03:46 PM
stored procedures and sqloledb terre SQL Server ASP 11 November 22nd, 2004 07:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.