Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 February 5th, 2011, 09:43 AM
Registered User
 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem connecting classic asp to SQLserver 2008 express via IIS7 on win7 64bit

Problem connecting a classic asp project to SQLserver 2008 express with this query strings:

conn = "Driver={SQL Server Native Client 10.0}; Server=.\SQLEXPRESS; Database= database; Trusted_Connection=yes"
conn = "Provider=SQLOLEDB;Data Source=.\SQLEXPRESS;Initial Catalog=database;UserID=sa;Password=123"
conn = "Driver={SQL Server}; Server=.\SQLEXPRESS; Initial Catalog= database;Integrated Security=True;Network Library =dbmssocn"
conn = "Provider=SQLNCLI10.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=database;Data Source=(local);"
_______________________
RETURNED ERROR:
Classic ASP return this error: [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.
_______________________
SQL Server: Authentication: SQL Server and windows authentication mode
I’m using IIS7 in a win 64bit
Do I need a DB user and password in sql DB and querystring? is the iis7? win7 64bit?
______________________
Note:
VB.NET can access with this conn String:
"Data Source=.\SQLEXPRESS;Initial Catalog=nData;Integrated Security=True"

I already saw the 12254 post:sql-server-does-not-exist-access-denied

and did not resolved the problem

Thanks
 
Old February 5th, 2011, 08:07 PM
Registered User
 
Join Date: Jun 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

Well thats 4 connection strings all being assigned to the same variable, so only the 4th one will actually get used.

Here's the kind of connection string I'm using right now on a 64 bit windows 2008 machine with sql express and classic asp:

ConnString = "Provider=SQLOLEDB.1;Persist Security Info=False;Data Source=192.168.1.1\SQLEXPRESS;Initial Catalog=MyDatabaseName;Trusted_Connection=No;UID=U serName;Password=UserPassword"

-ClassicASP.com
 
Old February 6th, 2011, 12:32 PM
Registered User
 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply classicasp
Well, as I wrote, I'm having problem with those conn strings, not all of them at the same time.
My client and server are in the same machine, so no need for ip.

Your connString did work with some adaptations

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anyone got this working with VWDE 2008 / SQL Express 2008? john77 BOOK: ASP.NET 3.5 Website Programming Problem Design Solution 4 January 18th, 2010 01:16 PM
Classic ASP in Visual Developer Express 2008 esstepansky Classic ASP Basics 2 August 25th, 2008 03:17 PM
SQLserver 2000 vs SQLserver 2005 Express cJeffreywang BOOK: Beginning ASP.NET 2.0 and Databases 0 April 22nd, 2007 09:52 AM
problem connecting .net with access in 64bit darkelf ADO.NET 1 September 26th, 2006 05:26 PM





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