Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - As New SqlConnection( **problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

As New SqlConnection( **problem

 Post Reply Post Reply
Author
joshb View Drop Down
Groupie
Groupie


Joined: 26 June 2002
Location: United States
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote joshb Quote  Post ReplyReply Direct Link To This Post Topic: As New SqlConnection( **problem
    Posted: 08 July 2003 at 6:24am

I am very new to ASP.NET, just started my training yesterday, and the examples point to this connection string.

Dim cnn As New SqlConnection( "Data Source=(local);Initial Catalog=Northwind;User ID=sa;Password=;")

And I would like it to point to my sql server. Which is called 'sql' and obviously has the Northwind database.

I attempted many different things but nothing.

Dim cnn As New SqlConnection( "server=(sql);database=Northwind;User ID=sa;Password=;")

Dim cnn As New SqlConnection( "Data Source=(sql);Initial Catalog=Northwind;User ID=sa;Password=;")

What am I doing wrong?

Any help would be greatly appreciated.

I'm a wannabe programmer that knows how to do nothing but create invalid procedure arguments.
Back to Top
joshb View Drop Down
Groupie
Groupie


Joined: 26 June 2002
Location: United States
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote joshb Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2003 at 6:59am

Ok, nm I found it:

Dim cnn As New SqlConnection("server=sql;initial catalog=Northwind;User ID=username;Password=password;")

I'm a wannabe programmer that knows how to do nothing but create invalid procedure arguments.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.