Wrox Programmer Forums
|
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 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 20th, 2003, 09:32 AM
Authorized User
 
Join Date: Jun 2003
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JonathanC
Default


On the installation page (bottom) it has this line.

Setup.exe /qb+ INSTANCENAME=VSDOTNET DISABLENETWORKPROTOCOLS=1 SAPWD=<YOUR SA PASSWORD



Jonathan Crossland
http://www.jonathancrossland.com
 
Old June 20th, 2003, 12:29 PM
Registered User
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Whoo hoo!

It worked! How? ... I don't know, but it worked!

Here's what I had to do:

Uninstall MSDE through Add/Remove Programs. Remove the \Program Files\Microsoft SQL Server folder and all of it's contents. This included my original MSDE information that was never removed.

I then had to remove every trace of MSSQL, VSDOTNET, and Microsoft SQL from my registry.

After doing that, I reinstalled my original version of MSDE that came with the Academic version of Visual Studio .NET 2002. You can choose to configure the setup.ini file if you don't wish to have to type all of the parameters into the command line for the setup.exe command, however, everytime I tried to get specific about target or data directories, it required me to give it a SAPWD, which is only required when you specify that you want to use SQL authentication, using some other flag. On the page that describes installing MSDE using the command prompt, it suggests not to use SQL authentication, but to use NT authentication, instead.

Anyhow, I left the .ini file alone and everything installed correctly, just like the initial time I installed MSDE.

I noticed that in Server Explorer, when you click on the database (after creating tables and loading it with data) a 'Connect String' property appears. This is not the same as ConnectionString or, at least, can't be copied straight over and used as the ConnectionString property. Believe me, I tried it a bunch. For the life of me, I couldn't get it to understand the 'Provider' argument, and I've seen .Provider used in some development code at work, so I don't really know what the deal is with that.

After finding this page:
http://msdn.microsoft.com/library/de...tringtopic.asp

I started over with the bare minimum for the connection string.

"Data Source=<computer-name>\<instance-name>;" where instance name defaults to VSdotNET for MSDE from the Visual Studio .NET installation.

That didn't work, so I ended up adding to the above string:
"...;Database=<database-name>;Integrated Security=sspi;Workstation ID=<computer-name>;"

Just for clarity's sake, here's my full connection string:

"data source=WOOLLY-01\VSdotNET;Database=pubs;Integrated Security=sspi;Workstation ID=WOOLLY-01;"

After changing that, I got past the SQLException on the .Open method.

After fixing a few discrepencies in my select statement, I was home free.

Thanks for your help Jonathan! Now I can continue on and finish the book.

Jason
 
Old June 20th, 2003, 06:23 PM
Authorized User
 
Join Date: Jun 2003
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JonathanC
Default

:D

Glad to hear it.


Jonathan Crossland
http://www.jonathancrossland.com
 
Old October 11th, 2003, 05:03 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I ran SVRNETCN.exe to enable some protocols. That solved it for me.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Try it out:Ch 16 Dataset Example flhartley VB.NET 2002/2003 Basics 1 August 28th, 2009 07:00 AM
Chapter 16 Fig 16-11 krsouthern BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 1 July 8th, 2008 12:11 PM
Chapter 16 boyce0324 VB.NET 2002/2003 Basics 1 June 5th, 2007 01:59 AM
Chapter 16 - DataSet Example - MODIFIED??? cliffd64 VB.NET 2002/2003 Basics 2 May 17th, 2005 12:52 PM
Chapter 16, DataSet Example danascmitz VB.NET 2002/2003 Basics 6 January 5th, 2004 05:11 AM





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