Hi All,
Over the past couple of days i have been having a problem when trying to connect my Mobile Application to my database.
The error i receive is SQL Exception. Which is strange as i have transferred the code to a Windows Project and it works fine.
System is
SQL-Server 2000
WIndows XP Pro (No service packs installed!)
IIS Running
.Net Famework 1.1
Visual Studio 2003
Pocket PC Emulator 2002
The code that is failing to execute is
The code throws and sql exception at the Open() command. I have tried this both in VB and c# but to no avail.
I'm fairly inexperienced with setting up and configuring windows; i would greatly appreciate it someone could advise a method of solving my dilemma.
Many Thanks
James
Over the past couple of days i have been having a problem when trying to connect my Mobile Application to my database.
The error i receive is SQL Exception. Which is strange as i have transferred the code to a Windows Project and it works fine.
System is
SQL-Server 2000
WIndows XP Pro (No service packs installed!)
IIS Running
.Net Famework 1.1
Visual Studio 2003
Pocket PC Emulator 2002
The code that is failing to execute is
Code:
conn = new SqlConnection(conString);
conn.Open();
//Query and pass it to the DataAdapter
string strCustomers = "SELECT CustId, (CustSName + ' ' + CustFName) as [CustName] FROM TblCustTable";
daCustomers = new SqlDataAdapter(strCustomers, conn);
dsCustomers= new DataSet();
daCustomers.Fill(dsCustomers, "CustList");
comboBox1.DataSource = dsCustomers.Tables["CustList"];
comboBox1.DisplayMember = "CustName";
I'm fairly inexperienced with setting up and configuring windows; i would greatly appreciate it someone could advise a method of solving my dilemma.
Many Thanks
James