Results 1 to 9 of 9

Thread: Can't connect to database [resolved]

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    5

    Resolved Can't connect to database [resolved]

    Hi guys and gals!

    I was wondering if anyone could help me? I'm using a book called "Karl Moore's Visual Basic .NET: The Tutorials" and getting on great with it..... but for one thing!

    I can't seem to connect to the database I need to use (I know it works cos I can manually add data to it)

    I'm using the following connection string, as prescribed by the book:

    Dim objConnection As New SqlClient.SqlConnection _
    ("server=.;database=KeepFit;trusted_connection=true")

    Whenever I try to run this, I just get an error message saying SQL Server does not exist or access denied.

    Any help you can give would be very very much appreciated

    Thanks
    Last edited by d1lb3rt; Oct 15th, 2004 at 11:44 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width