connection string provider

Results 1 to 3 of 3

Thread: connection string provider

  1. #1
    Join Date
    Dec 1969

    Default connection string provider

    Exception Details: System.ArgumentException: Unknown connection option in connection string: provider.<BR><BR>Source Error: <BR><BR><BR>Line 9: Sub BindData()<BR>Line 10: <BR>Line 11: Dim con As New SqlConnection("Provider=SQLOLEDB.1;Password=7ei749 ;Persist Security Info=True;User ID=twac;Initial Catalog=twac;Data")<BR>Line 12: Dim cmd As SqlCommand<BR>Line 13: con.Open()<BR><BR>I am getting this error, can any one see what is wrong with the provider part of my connection string or is that not the problem<BR>

  2. #2
    Join Date
    Dec 1969

    Default Remove Provider

    The native SQL objects in .NET do not require the Provider arguement.

  3. #3
    Join Date
    Dec 1969

    Default You might want to....

    ....NOT post the ACTUAL connection string in a public forum. I just connected to your DB through VS.NET and added a record to the student table just to show you how dangerous this could be to your work!!!

Posting Permissions

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