Wrox Programmer Forums
|
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 June 7th, 2004, 04:28 PM
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL server access denied?

My sql server is on anther machine. I tried to use my asp.net page to connect it. But I got error message "SQL sever access denied".

However, I have a user account in the sql server, like "username/pwd". And I can reach it from programming machine when in asp design status, I mean, using .net's built-in database function.

I read a Microsoft's book "ADO.Net", in which it says that connecting to sql server on a remote box is different from to the local one. But I still do not know how to do it exactly.

Any help? Thanks very much.
 
Old June 8th, 2004, 06:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

You need to specify the data source, initial catalog, and integrated security properties. The data source is the server name, the initial catalog is the database. If you are using a SQL login, you must also specify the user id and password parameters. If you are using your account ID to login, you must set that up in SQL Server.

Brian
 
Old June 8th, 2004, 07:49 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dim strConn ' Connection String
strConn = "Provider=sqloledb;" & _
           "Data Source=myServerName;" & _
           "Initial Catalog=myDatabaseName;" & _
           "User Id=myUsername;" & _
           "Password=myPassword"





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server does not exist or access denied happygv SQL Server 2000 0 April 9th, 2008 02:27 AM
SQL Server does not exist or access denied danielboland BOOK: ASP.NET Website Programming Problem-Design-Solution 13 January 5th, 2006 05:00 AM
SQL Server does not exist or access denied jmjyiannis VB.NET 2002/2003 Basics 1 July 26th, 2005 09:06 AM
SQL Server does not exist or access denied. jimbeam36 BOOK: ASP.NET Website Programming Problem-Design-Solution 3 November 3rd, 2004 08:51 AM
SQL Server Does Not Exist or Access Denied [email protected] SQL Server 2000 3 September 30th, 2004 09:37 AM





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