Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 5th, 2004, 07:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sidney,

Please explain your problem. Are you having trouble find the new stored proc named "Botec_GET_STAFF"?

What login are you using for the DB? Does it have permissions to access the DB objects?

This is the general idea in how to create a DB User account:

"EricDB" is the name of my DB.
"EricUser" is the new user account I'm creating.

use EricDB
go
-- add a password where you see xxxx below:
EXEC sp_addlogin 'EricUser', 'xxxx', 'EricDB'
GO
EXEC sp_grantdbaccess 'EricUser', 'EricUser'
GO
EXEC sp_addrolemember 'db_owner', 'EricUser'
go
EXEC sp_addrolemember 'db_datareader', 'EricUser'
GO
EXEC sp_addrolemember 'db_datawriter', 'EricUser'
GO

Eric
 
Old June 7th, 2004, 12:39 PM
Authorized User
 
Join Date: Apr 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

englere,
johno here. I'm obviously missing something obvious(?)
Could you mail your scripts so me? I've tried loading the downloads and still get the same error. My email address is: [email protected]
Thanks
John
 
Old June 9th, 2004, 08:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

John,

I can't give you my scripts because I modified the DB to work with a hosted website using a virtual root folder, instead of a virtual dir named "ThePhile". I've also made several other changes that aren't compatible with the code in the book. I wouldn't mind publishing my code and DB scripts if Wrox would agree, but I don't want to go that far unless it's ok with them. The problem with doing that is one of support. Who would support my changes if I don't have the time to do it myself? By staying with the book as closely as possible, you can get help from other people, also.

Do you understand my message above about the user account? Once you create a custom user account in your DB, you have to use that account to create all the objects, and use that in your connection strings. This will ensure you don't have any broken ownership chains, and it ensures that all objects are visible to that account. You don't even have to consider the issues of grants or owner-qualified object names if you do it this way.

I think people should study SQL Server a little more before tackling this book. This really isn't intended to be an introductory book for either C#/VB.NET, or for SQL Server. This is a middle-level book - you have to have a certain amount of working knowledge beforehand.

Eric
 
Old January 5th, 2006, 05:00 AM
Authorized User
 
Join Date: Dec 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The incorrect connection String can give a lot of headache. For instance
My connection string should have been:
string connectionString = "server=SERVER\\HT; uid=sa; pwd=; database=Northwind"
but I neglected the server part with small letters and no escape character and continued getting error
System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.

http://www.ravishakya.com





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 jennypretty Classic ASP Databases 3 May 18th, 2007 11:43 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 haidee_mccaffrey Classic ASP Databases 19 June 28th, 2004 09:38 PM
SQL Server does not exist or access denied. nitinmailbox All Other Wrox Books 1 June 25th, 2003 06:35 AM





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