Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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 14th, 2004, 03:34 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default connecting to database with vb.net

Hi,

I've just purchased the book ASP.NET Website programming - Problem - Design
- Solution: I'm trying to set up the website that comes with the book but I'm getting an error when connecting to the database on my sql server machine. My sql server db is located on a separte machine called is-sv-killianc2, so I've changed all my config files to the following

<ConnectionString>server=ie-sv-killianc2;database=ThePhile;uid=sa;pwd=;</
ConnectionString>

I'm getting the error msg SQL Server does not exist or access denied. Am I missing something? Please advise

Thanks for your time


 
Old April 14th, 2004, 06:12 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

If u use Web.Config it should like this in ur Web.Config
Code:
  <appSettings>


    <add key="ConnectionName.ConnectionString" value="data source=BORNA;initial catalog=NewBaz;password=power;persist security info=True;user id=empower;packet size=4096"/>
    <add key="Server" value="BORNA"/>
  </appSettings>

Then in in design time of Connection Obj. set the properties to:
Name: ConnectionName
dynamic property: Connection = ...

HTH, keep in touch.

Always:),
Hovik Melkomian.
 
Old April 16th, 2004, 01:02 PM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

server=ie-sv-killianc2

Please confirm that your ServerName "is ie-sv-killianc2" and your SQL be Server is open .






Similar Threads
Thread Thread Starter Forum Replies Last Post
vb.net connecting to server waad VB Databases Basics 1 December 18th, 2007 04:17 PM
Connecting database using ms access and vb.net adil_farooq Access 0 October 27th, 2005 11:54 PM
Connecting to Active Directory database via VB.NET djoherl Pro VB Databases 1 May 20th, 2005 05:23 PM
connecting to siebel from vb.net hougie ADO.NET 0 July 1st, 2004 09:23 AM
Connecting to MySQL with VB .NET CFerthorney Pro VB.NET 2002/2003 1 October 23rd, 2003 04:20 PM





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