Results 1 to 2 of 2

Thread: sql connection string problem

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2005
    Posts
    56

    sql connection string problem

    Hi,
    I need to connect the sql database with the wifi,
    and it work on the vb.net windows program, but there is error on pocket pc..

    the connection string:

    Private objconn As SqlConnection
    objconn = New SqlConnection
    objconn.ConnectionString = "Data Source=192.168.1.250,1433;Network Library=DBMSSOCN;Initial Catalog=db;User ID=simon;Password=123;"

    objconn.Open()


    but when using the emulator running which can connect the internet. and show the mssage :

    An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll

    Additional information: Unknown connection option in connection string: network library.



    sorry my english not well...hope help!!
    Last edited by simoms; Mar 19th, 2006 at 08:28 AM.

  2. #2
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    Re: sql connection string problem

    remove the Network Library=DBMSSOCN;
    Barry


    Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
    .NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0

    SQL Server 2005/2000/SQL Server CE 2.0


    If you like, rate this post

    Compact Framework for Beginners

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