|
-
Mar 19th, 2006, 08:23 AM
#1
Thread Starter
Member
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.
-
Mar 20th, 2006, 05:37 AM
#2
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|