Results 1 to 2 of 2

Thread: MS SQL Configuration for working OK with .NET

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Posts
    20

    Angry MS SQL Configuration for working OK with .NET

    Please tell me what special MSSQL config. must do to convince .NET to open a Data Connection. I had error msg
    "Exception of System.InvalidCastException was thrown"
    when I try to make an connection.
    SQL Server Enterprise Manager, Server, Properties, Connections and what Attribute should I choose ?

    Thanks,
    Best Regards

  2. #2
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    This is my connection string (sorta):

    Data Source=SERVER ADDRESS;UID=USER NAME;PWD=PASSWORD;Initial Catalog=DATABASE NAME

    I'm using the System.Data.SqlClient namespace and you can have a connection like this

    Dim conSopon As New SqlConnection(Connection String)
    conSopon.Open()
    Please rate my post.

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