D
dotnetfellow
I have tried using the SqlClient class to connect to the database, but
I haven't had much success. Here is my
setup:
Desktop/Workstation has Windows XP, ActiveSync, .NET Framework 2.0, and
SQL Server 2005. The production Workstation
will have 2000; so I do want to ensure SQL Server 2000 compatibility
with my solution.
Handheld device is an Intermec 751g with docking station, hooked to PC
host using USB connector cable and ActiveSync, Windows CE 4.2, .NET
Compact Framework 2.0 with SP1 and
latest patch.
Development tools consist of Visual Studio 2005 and C# .NET language.
Note that when I attempt to ping my desktop from the handheld command
prompt I get "transmit failed, error code
11010".
Also, I am able to access the Internet from my handheld device.
My error is encountered when I execute this fill code:
int returnValue = this.Adapter.Fill(dataTable);
Please note that all of my code is generated by the VS 2005 IDE at this
juncture, as I am simply trying to get the
plumbing to work.
Here is the error that I encounter:
System.Data.SqlClient.SqlException was unhandled
Message="SqlException"
Class=20
LineNumber=0
Number=6
Procedure="ConnectionOpen (Connect())."
Server="09Q-GHAZEL2\\SQL2K5"
Source=".Net SqlClient Data Provider"
State=0
StackTrace:
at System.Data.SqlClient.SqlConnection.OnError()
at System.Data.SqlClient.SqlInternalConnection.OnError()
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Connect()
at System.Data.SqlClient.SqlInternalConnection.OpenAndLogin()
at System.Data.SqlClient.SqlInternalConnection..ctor()
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen()
at System.Data.Common.DbDataAdapter.FillInternal()
at System.Data.Common.DbDataAdapter.Fill()
at System.Data.Common.DbDataAdapter.Fill()
at
DeviceApplication1.AdventureWorksDataSetTableAdapters.ContactTableAdapter.Fill()
at DeviceApplication1.Form1.Form1_Load()
at System.Windows.Forms.Form.OnLoad()
at System.Windows.Forms.Form._SetVisibleNotify()
at System.Windows.Forms.Control.set_Visible()
at System.Windows.Forms.Application.Run()
at DeviceApplication1.Program.Main()
Thanks again for your insight. Sincerely, -Dotnetfellow
(e-mail address removed)
I haven't had much success. Here is my
setup:
Desktop/Workstation has Windows XP, ActiveSync, .NET Framework 2.0, and
SQL Server 2005. The production Workstation
will have 2000; so I do want to ensure SQL Server 2000 compatibility
with my solution.
Handheld device is an Intermec 751g with docking station, hooked to PC
host using USB connector cable and ActiveSync, Windows CE 4.2, .NET
Compact Framework 2.0 with SP1 and
latest patch.
Development tools consist of Visual Studio 2005 and C# .NET language.
Note that when I attempt to ping my desktop from the handheld command
prompt I get "transmit failed, error code
11010".
Also, I am able to access the Internet from my handheld device.
My error is encountered when I execute this fill code:
int returnValue = this.Adapter.Fill(dataTable);
Please note that all of my code is generated by the VS 2005 IDE at this
juncture, as I am simply trying to get the
plumbing to work.
Here is the error that I encounter:
System.Data.SqlClient.SqlException was unhandled
Message="SqlException"
Class=20
LineNumber=0
Number=6
Procedure="ConnectionOpen (Connect())."
Server="09Q-GHAZEL2\\SQL2K5"
Source=".Net SqlClient Data Provider"
State=0
StackTrace:
at System.Data.SqlClient.SqlConnection.OnError()
at System.Data.SqlClient.SqlInternalConnection.OnError()
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Connect()
at System.Data.SqlClient.SqlInternalConnection.OpenAndLogin()
at System.Data.SqlClient.SqlInternalConnection..ctor()
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen()
at System.Data.Common.DbDataAdapter.FillInternal()
at System.Data.Common.DbDataAdapter.Fill()
at System.Data.Common.DbDataAdapter.Fill()
at
DeviceApplication1.AdventureWorksDataSetTableAdapters.ContactTableAdapter.Fill()
at DeviceApplication1.Form1.Form1_Load()
at System.Windows.Forms.Form.OnLoad()
at System.Windows.Forms.Form._SetVisibleNotify()
at System.Windows.Forms.Control.set_Visible()
at System.Windows.Forms.Application.Run()
at DeviceApplication1.Program.Main()
Thanks again for your insight. Sincerely, -Dotnetfellow
(e-mail address removed)