Can't connect to SQL database with VS .NET - object reference error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RichGK

    #1

    Can't connect to SQL database with VS .NET - object reference error

    When using "Choose Data Source" on a GridView object I receive the
    error "Object reference not set to an instance of an object".

    I can connect and use the database ok when using my own data access
    layer within the same program (I'm writing).

    Here are the steps I perform.

    1. choose a new data source (SQL)
    2. Enter the serve name
    3. Use Windows Authentication
    4. Select the database name.
    5. Test connection = OK.
    6. Click OK.

    I receive the error.

    Thanks.
    Rich.

  • veronicataing@gmail.com

    #2
    Re: Can't connect to SQL database with VS .NET - object reference error

    hi

    I'm just a beginner ,

    Can anyone help with a dotnet architecture nderstanding

    Comment

    • Ignacio Machin \( .NET/ C# MVP \)

      #3
      Re: Can't connect to SQL database with VS .NET - object reference error

      Hi,

      <veronicataing@ gmail.comwrote in message
      news:1191929549 .068023.29850@y 42g2000hsy.goog legroups.com...
      hi
      >
      I'm just a beginner ,
      >
      Can anyone help with a dotnet architecture nderstanding
      >
      Start a new thread (if using outlook express it's named "New Post") with
      your question.


      Comment

      Working...