Home > Archive > MS SQL Server > February 2006 > Problem connecting SQL Server 2000 from Pocket PC 2003 SE emulator









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem connecting SQL Server 2000 from Pocket PC 2003 SE emulator
venkateswarag@gmail.com

2006-02-10, 7:23 am

Hi,

I am developing Device Application using VS.NET 2005, Pocket PC 2003 SE
Emulator and SQL Server 2000 database

Whenever I run the application from emulator, getting error " Specified
SQL Server does not found:10.1.15.1\\SQL2K ".

I tested the same code in the Windows application, It's working fine.

tried connecting LAN PC shared folders using Emulator File Explorer.
(Changed Device ID of the emulator and tried, but no luck)

Code Snippet as follows

SqlConnection ConObj = new SqlConnection();
ConObj.ConnectionString = "User ID=sa; Password=sa; Initial
Catalog=DotNetCF; Data Source=10.1.15.1\\SQL2K";

SqlCommand cmdObj = new SqlCommand("SELECT * FROM jobs", ConObj);
SqlDataReader drObj;
ConObj.Open();
drObj = cmdObj.ExecuteReader();
while (drObj.Read())
{
listBox1.Items.Add(drObj.GetString(2));
}
drObj.Close();
ConObj.Close();

Thanks in advance for any help!!!

-Rao

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com