Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection String from ASP to Oracle 9i.

Status
Not open for further replies.

Dynapen

Programmer
Apr 20, 2000
245
US
I am having some problems figuring out how to write the connection string to tell my ASP pages to connect to the Oracle9i database that I built and want to convert to.

Here's a example of the current string I am using to connect to SQL Server 2k. But I don't know how to convert this to a Oracle string.

Help please.

myConnString = "Provider=SQLOLEDB.1;Password=;User ID=sa;Initial Catalog=Transactions;Data Source=HOCHIMIN"
 
Its very similar :
Code:
myConnString = "Provider=MSDAORA;Password=yourpasswordhere;User ID=yourusername;Data Source=yourtnsnamesentry;Persist Security Info=TRUE"
( This assumes that the Oracle Client is installed on the web server )
hth
[profile]
 
That worked perfectly. Thanks. I figured it was close, but couldn't figure out where to get the provider name from?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top