.NETGURU
MSDE dD: DOT.NET connection works but not ASP connection string!
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngsec' list.


George Pagotelis
I'm running MSDE, Server is "(local)" machine name assume "machinename"
and I'm connecting to IBuyStore Portal Database.

This connection works in .NET work
SqlConnection("server=localhost;Trusted_Connection=true;database=Portal"
)

This same string doesn't work in ASP3.0
'cn.Open "server=localhost;Trusted_Connection=true;database=Portal"

But I have to do this (ie. Specify the driver):
cn.Open "Provider=sqloledb;Data Source=localhost;Initial
Catalog=Portal;Integrated Security=SSPI;"

Can somebody tell me what's going on so I finally know what "WinNT
Authentication" actually means! I thought all the above was OLEDB and
should work on both!

Thanks,

GP.

Reply to this message...
 
    
Minh Truong
[Original message clipped]

This uses the native SQL Server protocol

[Original message clipped]

This uses OLEDB. The two have different syntax for connection strings.

[Original message clipped]

Reply to this message...
 
    
Brian Espey
no, the first one isn't using OleDb, it's using the
sql native format, so you don't have to specify the
provider (it's inherently determined by the fact that
it's a "SqlConnection")

Brian

--- George Pagotelis <Click here to reveal e-mail address>
wrote:
[Original message clipped]

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Reply to this message...
 
 
System.Data.SqlClient.SqlConnection




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification