Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 8th, 2004, 12:04 PM
Registered User
 
Join Date: Nov 2004
Location: , , .
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"
Reply With Quote
  #2 (permalink)  
Old November 9th, 2004, 06:16 AM
Friend of Wrox
 
Join Date: Jul 2004
Location: , , India.
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
Reply With Quote
  #3 (permalink)  
Old November 9th, 2004, 06:18 AM
Friend of Wrox
 
Join Date: Jul 2004
Location: , , India.
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
Reply With Quote
  #4 (permalink)  
Old November 9th, 2004, 02:03 PM
Registered User
 
Join Date: Nov 2004
Location: , , .
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;"
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 02:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.