Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 April 13th, 2005, 05:59 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQLExpress right issue

I installed two databases on sqlexpress one right after the other using the following command
osql -S(local)\SQLExpress -E -i"instnwnd.sql"
osql -S(local)\SQLExpress -E -i"pubs.sql"
Both execute the script properly.
But when I go to test the connection like this:
osql -S(local)\SQLExpress -E -d Pubs -q "SELECT Au_Lname FROM Authors"
Pubs runs great! Calls the select no problem.
osql -S(local)\SQLExpress -E -d Pubs -q "SELECT FirstName FROM Employees"
However tells me that my user name and password are not correct for this database. How can that be I load them one after the other have tried this twice and even looked at the rights on the instnwnd.sql and pubs folders.
One thing I notice different when they are executing the script and you see it working on pubs you see on the screen (computer name/user) but on northwind you see (computer name/SQLExpress)?
Thanks for any help resolving this.
Rich






Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot connect to MYSERVER\SQLEXPRESS hertendreef SQL Server 2005 3 April 8th, 2007 09:02 AM
SQLEXPRESS deployment with Windows application hkec SQL Server 2005 1 February 7th, 2007 01:13 PM
SqlExpress Support for Intant Results SoftMind BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 September 15th, 2006 08:35 AM
SQLExpress Beta1 stu9820 SQL Server 2000 1 October 25th, 2004 12:33 PM





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