dbTalk Databases Forums  

problem with connecting to sql server via a wireless application

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss problem with connecting to sql server via a wireless application in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #41  
Old   
Hezal
 
Posts: n/a

Default Re: problem with connecting to sql server via a wireless applicati - 02-28-2008 , 04:50 PM






Thanks for the reply Rick. I appreciate it

I tried your suggestion but it still gives error.
I realised while debugging the following message: "SQL Server does not
exist or access denied."



"Rick Byham, (MSFT)" wrote:

Quote:
Sorry. I don't know much about Visual Studio.
My only other suggestion is to turn on the SQL Server Browser Service on the
SQL Server computer. SQL Server Express listens on dynamic ports, and it's
possible it is not using port 1433. Remove ",1433" from the string, and the
Browser Service should provide the correct port, if it's not 1433.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:FB510836-1F18-4FDD-AEE3-E962DB82B325 (AT) microsoft (DOT) com...
The string is automatically created by visual studio therefore when I
remove
one slash it complains about unrecognised escape sequence..


"Rick Byham, (MSFT)" wrote:

You have too many slashes. HEZAL-PC\\SQLEXPRESS should be
HEZAL-PC\SQLEXPRESS
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:1F5FCD5E-80FB-4C7E-A6A7-4770790B8A3E (AT) microsoft (DOT) com...
Hi,
I have created a SQL Server 2005 database in VS 2005 and I am using
windows
mobile to access directly to SQL Server.
I use Vista and Windows Mobile device centre for the connection between
the
device and the PC.
I have enabled remote connections for TCP/IP and named pipes. I have
also
checked the firewall settings and made an exception for sqlsrv.exe
Building it is fine but When I debug the application, the status says
deployed successfully then it gives me the following error :
SqlException was unhandled- int returnValue =
this.Adapter.Fill(dataTable);
When I comment out the line that calls this 'Fill' method the It
displays
the column heading but no data in it off course..
So I am very confused whether this is a connection error or not...
The code is automatically generated by visual studio.
The connection string I use is:
"Data Source=HEZAL-PC\\SQLEXPRESS,1433;Initial Catalog=MEDITERRANEAN
_RESTAURANT_MANAGEMENT;Integrated Security=True;"

Here is the stack trace:

at System.Data.SqlClient.SqlConnection.get_ServerVers ion() 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
Orders.MEDITERRANEAN__RESTAURANT_MANAGEMENTDataSet 1TableAdapters.Customer_DetailsTableAdapter.Fill()
at Orders.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 Orders.Program.Main()

Sorry for the information overload.. I need some help urgently as I
have
spent days reading searching but nothing helped

Can anyone help me please?
Thanks



Reply With Quote
  #42  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: problem with connecting to sql server via a wireless applicati - 02-29-2008 , 11:17 AM






OK. Time to check the bonehead things.
Is the SQL Server Service started?
Did you restart SQL Server after enabling the remote connections?
Did you spell the name correctly?

More complicated things.
Since you enabled TCP, can you connect to the IP Address/port? Check the SQL
Server error log and confirm that SQL Server is listening on port 1433. Get
the IP address of the SQL Server computer. Then try to connect to the IP
address and port number in the format: 127.0.0.1,1433
like
"Data Source=127.0.0.1,1433;Initial
Catalog=MEDITERRANEAN_RESTAURANT_MANAGEMENT;Integr ated Security=True;"

Can you ping the IP address from the client computer?
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks for the reply Rick. I appreciate it

I tried your suggestion but it still gives error.
I realised while debugging the following message: "SQL Server does not
exist or access denied."



"Rick Byham, (MSFT)" wrote:

Sorry. I don't know much about Visual Studio.
My only other suggestion is to turn on the SQL Server Browser Service on
the
SQL Server computer. SQL Server Express listens on dynamic ports, and
it's
possible it is not using port 1433. Remove ",1433" from the string, and
the
Browser Service should provide the correct port, if it's not 1433.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:FB510836-1F18-4FDD-AEE3-E962DB82B325 (AT) microsoft (DOT) com...
The string is automatically created by visual studio therefore when I
remove
one slash it complains about unrecognised escape sequence..


"Rick Byham, (MSFT)" wrote:

You have too many slashes. HEZAL-PC\\SQLEXPRESS should be
HEZAL-PC\SQLEXPRESS
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:1F5FCD5E-80FB-4C7E-A6A7-4770790B8A3E (AT) microsoft (DOT) com...
Hi,
I have created a SQL Server 2005 database in VS 2005 and I am using
windows
mobile to access directly to SQL Server.
I use Vista and Windows Mobile device centre for the connection
between
the
device and the PC.
I have enabled remote connections for TCP/IP and named pipes. I have
also
checked the firewall settings and made an exception for sqlsrv.exe
Building it is fine but When I debug the application, the status
says
deployed successfully then it gives me the following error :
SqlException was unhandled- int returnValue =
this.Adapter.Fill(dataTable);
When I comment out the line that calls this 'Fill' method the It
displays
the column heading but no data in it off course..
So I am very confused whether this is a connection error or not...
The code is automatically generated by visual studio.
The connection string I use is:
"Data Source=HEZAL-PC\\SQLEXPRESS,1433;Initial Catalog=MEDITERRANEAN
_RESTAURANT_MANAGEMENT;Integrated Security=True;"

Here is the stack trace:

at System.Data.SqlClient.SqlConnection.get_ServerVers ion() 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
Orders.MEDITERRANEAN__RESTAURANT_MANAGEMENTDataSet 1TableAdapters.Customer_DetailsTableAdapter.Fill()
at Orders.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 Orders.Program.Main()

Sorry for the information overload.. I need some help urgently as I
have
spent days reading searching but nothing helped

Can anyone help me please?
Thanks




Reply With Quote
  #43  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: problem with connecting to sql server via a wireless applicati - 02-29-2008 , 11:17 AM



OK. Time to check the bonehead things.
Is the SQL Server Service started?
Did you restart SQL Server after enabling the remote connections?
Did you spell the name correctly?

More complicated things.
Since you enabled TCP, can you connect to the IP Address/port? Check the SQL
Server error log and confirm that SQL Server is listening on port 1433. Get
the IP address of the SQL Server computer. Then try to connect to the IP
address and port number in the format: 127.0.0.1,1433
like
"Data Source=127.0.0.1,1433;Initial
Catalog=MEDITERRANEAN_RESTAURANT_MANAGEMENT;Integr ated Security=True;"

Can you ping the IP address from the client computer?
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks for the reply Rick. I appreciate it

I tried your suggestion but it still gives error.
I realised while debugging the following message: "SQL Server does not
exist or access denied."



"Rick Byham, (MSFT)" wrote:

Sorry. I don't know much about Visual Studio.
My only other suggestion is to turn on the SQL Server Browser Service on
the
SQL Server computer. SQL Server Express listens on dynamic ports, and
it's
possible it is not using port 1433. Remove ",1433" from the string, and
the
Browser Service should provide the correct port, if it's not 1433.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:FB510836-1F18-4FDD-AEE3-E962DB82B325 (AT) microsoft (DOT) com...
The string is automatically created by visual studio therefore when I
remove
one slash it complains about unrecognised escape sequence..


"Rick Byham, (MSFT)" wrote:

You have too many slashes. HEZAL-PC\\SQLEXPRESS should be
HEZAL-PC\SQLEXPRESS
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:1F5FCD5E-80FB-4C7E-A6A7-4770790B8A3E (AT) microsoft (DOT) com...
Hi,
I have created a SQL Server 2005 database in VS 2005 and I am using
windows
mobile to access directly to SQL Server.
I use Vista and Windows Mobile device centre for the connection
between
the
device and the PC.
I have enabled remote connections for TCP/IP and named pipes. I have
also
checked the firewall settings and made an exception for sqlsrv.exe
Building it is fine but When I debug the application, the status
says
deployed successfully then it gives me the following error :
SqlException was unhandled- int returnValue =
this.Adapter.Fill(dataTable);
When I comment out the line that calls this 'Fill' method the It
displays
the column heading but no data in it off course..
So I am very confused whether this is a connection error or not...
The code is automatically generated by visual studio.
The connection string I use is:
"Data Source=HEZAL-PC\\SQLEXPRESS,1433;Initial Catalog=MEDITERRANEAN
_RESTAURANT_MANAGEMENT;Integrated Security=True;"

Here is the stack trace:

at System.Data.SqlClient.SqlConnection.get_ServerVers ion() 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
Orders.MEDITERRANEAN__RESTAURANT_MANAGEMENTDataSet 1TableAdapters.Customer_DetailsTableAdapter.Fill()
at Orders.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 Orders.Program.Main()

Sorry for the information overload.. I need some help urgently as I
have
spent days reading searching but nothing helped

Can anyone help me please?
Thanks




Reply With Quote
  #44  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: problem with connecting to sql server via a wireless applicati - 02-29-2008 , 11:17 AM



OK. Time to check the bonehead things.
Is the SQL Server Service started?
Did you restart SQL Server after enabling the remote connections?
Did you spell the name correctly?

More complicated things.
Since you enabled TCP, can you connect to the IP Address/port? Check the SQL
Server error log and confirm that SQL Server is listening on port 1433. Get
the IP address of the SQL Server computer. Then try to connect to the IP
address and port number in the format: 127.0.0.1,1433
like
"Data Source=127.0.0.1,1433;Initial
Catalog=MEDITERRANEAN_RESTAURANT_MANAGEMENT;Integr ated Security=True;"

Can you ping the IP address from the client computer?
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks for the reply Rick. I appreciate it

I tried your suggestion but it still gives error.
I realised while debugging the following message: "SQL Server does not
exist or access denied."



"Rick Byham, (MSFT)" wrote:

Sorry. I don't know much about Visual Studio.
My only other suggestion is to turn on the SQL Server Browser Service on
the
SQL Server computer. SQL Server Express listens on dynamic ports, and
it's
possible it is not using port 1433. Remove ",1433" from the string, and
the
Browser Service should provide the correct port, if it's not 1433.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:FB510836-1F18-4FDD-AEE3-E962DB82B325 (AT) microsoft (DOT) com...
The string is automatically created by visual studio therefore when I
remove
one slash it complains about unrecognised escape sequence..


"Rick Byham, (MSFT)" wrote:

You have too many slashes. HEZAL-PC\\SQLEXPRESS should be
HEZAL-PC\SQLEXPRESS
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:1F5FCD5E-80FB-4C7E-A6A7-4770790B8A3E (AT) microsoft (DOT) com...
Hi,
I have created a SQL Server 2005 database in VS 2005 and I am using
windows
mobile to access directly to SQL Server.
I use Vista and Windows Mobile device centre for the connection
between
the
device and the PC.
I have enabled remote connections for TCP/IP and named pipes. I have
also
checked the firewall settings and made an exception for sqlsrv.exe
Building it is fine but When I debug the application, the status
says
deployed successfully then it gives me the following error :
SqlException was unhandled- int returnValue =
this.Adapter.Fill(dataTable);
When I comment out the line that calls this 'Fill' method the It
displays
the column heading but no data in it off course..
So I am very confused whether this is a connection error or not...
The code is automatically generated by visual studio.
The connection string I use is:
"Data Source=HEZAL-PC\\SQLEXPRESS,1433;Initial Catalog=MEDITERRANEAN
_RESTAURANT_MANAGEMENT;Integrated Security=True;"

Here is the stack trace:

at System.Data.SqlClient.SqlConnection.get_ServerVers ion() 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
Orders.MEDITERRANEAN__RESTAURANT_MANAGEMENTDataSet 1TableAdapters.Customer_DetailsTableAdapter.Fill()
at Orders.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 Orders.Program.Main()

Sorry for the information overload.. I need some help urgently as I
have
spent days reading searching but nothing helped

Can anyone help me please?
Thanks




Reply With Quote
  #45  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: problem with connecting to sql server via a wireless applicati - 02-29-2008 , 11:17 AM



OK. Time to check the bonehead things.
Is the SQL Server Service started?
Did you restart SQL Server after enabling the remote connections?
Did you spell the name correctly?

More complicated things.
Since you enabled TCP, can you connect to the IP Address/port? Check the SQL
Server error log and confirm that SQL Server is listening on port 1433. Get
the IP address of the SQL Server computer. Then try to connect to the IP
address and port number in the format: 127.0.0.1,1433
like
"Data Source=127.0.0.1,1433;Initial
Catalog=MEDITERRANEAN_RESTAURANT_MANAGEMENT;Integr ated Security=True;"

Can you ping the IP address from the client computer?
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks for the reply Rick. I appreciate it

I tried your suggestion but it still gives error.
I realised while debugging the following message: "SQL Server does not
exist or access denied."



"Rick Byham, (MSFT)" wrote:

Sorry. I don't know much about Visual Studio.
My only other suggestion is to turn on the SQL Server Browser Service on
the
SQL Server computer. SQL Server Express listens on dynamic ports, and
it's
possible it is not using port 1433. Remove ",1433" from the string, and
the
Browser Service should provide the correct port, if it's not 1433.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:FB510836-1F18-4FDD-AEE3-E962DB82B325 (AT) microsoft (DOT) com...
The string is automatically created by visual studio therefore when I
remove
one slash it complains about unrecognised escape sequence..


"Rick Byham, (MSFT)" wrote:

You have too many slashes. HEZAL-PC\\SQLEXPRESS should be
HEZAL-PC\SQLEXPRESS
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:1F5FCD5E-80FB-4C7E-A6A7-4770790B8A3E (AT) microsoft (DOT) com...
Hi,
I have created a SQL Server 2005 database in VS 2005 and I am using
windows
mobile to access directly to SQL Server.
I use Vista and Windows Mobile device centre for the connection
between
the
device and the PC.
I have enabled remote connections for TCP/IP and named pipes. I have
also
checked the firewall settings and made an exception for sqlsrv.exe
Building it is fine but When I debug the application, the status
says
deployed successfully then it gives me the following error :
SqlException was unhandled- int returnValue =
this.Adapter.Fill(dataTable);
When I comment out the line that calls this 'Fill' method the It
displays
the column heading but no data in it off course..
So I am very confused whether this is a connection error or not...
The code is automatically generated by visual studio.
The connection string I use is:
"Data Source=HEZAL-PC\\SQLEXPRESS,1433;Initial Catalog=MEDITERRANEAN
_RESTAURANT_MANAGEMENT;Integrated Security=True;"

Here is the stack trace:

at System.Data.SqlClient.SqlConnection.get_ServerVers ion() 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
Orders.MEDITERRANEAN__RESTAURANT_MANAGEMENTDataSet 1TableAdapters.Customer_DetailsTableAdapter.Fill()
at Orders.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 Orders.Program.Main()

Sorry for the information overload.. I need some help urgently as I
have
spent days reading searching but nothing helped

Can anyone help me please?
Thanks




Reply With Quote
  #46  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: problem with connecting to sql server via a wireless applicati - 02-29-2008 , 11:17 AM



OK. Time to check the bonehead things.
Is the SQL Server Service started?
Did you restart SQL Server after enabling the remote connections?
Did you spell the name correctly?

More complicated things.
Since you enabled TCP, can you connect to the IP Address/port? Check the SQL
Server error log and confirm that SQL Server is listening on port 1433. Get
the IP address of the SQL Server computer. Then try to connect to the IP
address and port number in the format: 127.0.0.1,1433
like
"Data Source=127.0.0.1,1433;Initial
Catalog=MEDITERRANEAN_RESTAURANT_MANAGEMENT;Integr ated Security=True;"

Can you ping the IP address from the client computer?
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks for the reply Rick. I appreciate it

I tried your suggestion but it still gives error.
I realised while debugging the following message: "SQL Server does not
exist or access denied."



"Rick Byham, (MSFT)" wrote:

Sorry. I don't know much about Visual Studio.
My only other suggestion is to turn on the SQL Server Browser Service on
the
SQL Server computer. SQL Server Express listens on dynamic ports, and
it's
possible it is not using port 1433. Remove ",1433" from the string, and
the
Browser Service should provide the correct port, if it's not 1433.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:FB510836-1F18-4FDD-AEE3-E962DB82B325 (AT) microsoft (DOT) com...
The string is automatically created by visual studio therefore when I
remove
one slash it complains about unrecognised escape sequence..


"Rick Byham, (MSFT)" wrote:

You have too many slashes. HEZAL-PC\\SQLEXPRESS should be
HEZAL-PC\SQLEXPRESS
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:1F5FCD5E-80FB-4C7E-A6A7-4770790B8A3E (AT) microsoft (DOT) com...
Hi,
I have created a SQL Server 2005 database in VS 2005 and I am using
windows
mobile to access directly to SQL Server.
I use Vista and Windows Mobile device centre for the connection
between
the
device and the PC.
I have enabled remote connections for TCP/IP and named pipes. I have
also
checked the firewall settings and made an exception for sqlsrv.exe
Building it is fine but When I debug the application, the status
says
deployed successfully then it gives me the following error :
SqlException was unhandled- int returnValue =
this.Adapter.Fill(dataTable);
When I comment out the line that calls this 'Fill' method the It
displays
the column heading but no data in it off course..
So I am very confused whether this is a connection error or not...
The code is automatically generated by visual studio.
The connection string I use is:
"Data Source=HEZAL-PC\\SQLEXPRESS,1433;Initial Catalog=MEDITERRANEAN
_RESTAURANT_MANAGEMENT;Integrated Security=True;"

Here is the stack trace:

at System.Data.SqlClient.SqlConnection.get_ServerVers ion() 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
Orders.MEDITERRANEAN__RESTAURANT_MANAGEMENTDataSet 1TableAdapters.Customer_DetailsTableAdapter.Fill()
at Orders.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 Orders.Program.Main()

Sorry for the information overload.. I need some help urgently as I
have
spent days reading searching but nothing helped

Can anyone help me please?
Thanks




Reply With Quote
  #47  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: problem with connecting to sql server via a wireless applicati - 02-29-2008 , 11:17 AM



OK. Time to check the bonehead things.
Is the SQL Server Service started?
Did you restart SQL Server after enabling the remote connections?
Did you spell the name correctly?

More complicated things.
Since you enabled TCP, can you connect to the IP Address/port? Check the SQL
Server error log and confirm that SQL Server is listening on port 1433. Get
the IP address of the SQL Server computer. Then try to connect to the IP
address and port number in the format: 127.0.0.1,1433
like
"Data Source=127.0.0.1,1433;Initial
Catalog=MEDITERRANEAN_RESTAURANT_MANAGEMENT;Integr ated Security=True;"

Can you ping the IP address from the client computer?
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks for the reply Rick. I appreciate it

I tried your suggestion but it still gives error.
I realised while debugging the following message: "SQL Server does not
exist or access denied."



"Rick Byham, (MSFT)" wrote:

Sorry. I don't know much about Visual Studio.
My only other suggestion is to turn on the SQL Server Browser Service on
the
SQL Server computer. SQL Server Express listens on dynamic ports, and
it's
possible it is not using port 1433. Remove ",1433" from the string, and
the
Browser Service should provide the correct port, if it's not 1433.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:FB510836-1F18-4FDD-AEE3-E962DB82B325 (AT) microsoft (DOT) com...
The string is automatically created by visual studio therefore when I
remove
one slash it complains about unrecognised escape sequence..


"Rick Byham, (MSFT)" wrote:

You have too many slashes. HEZAL-PC\\SQLEXPRESS should be
HEZAL-PC\SQLEXPRESS
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:1F5FCD5E-80FB-4C7E-A6A7-4770790B8A3E (AT) microsoft (DOT) com...
Hi,
I have created a SQL Server 2005 database in VS 2005 and I am using
windows
mobile to access directly to SQL Server.
I use Vista and Windows Mobile device centre for the connection
between
the
device and the PC.
I have enabled remote connections for TCP/IP and named pipes. I have
also
checked the firewall settings and made an exception for sqlsrv.exe
Building it is fine but When I debug the application, the status
says
deployed successfully then it gives me the following error :
SqlException was unhandled- int returnValue =
this.Adapter.Fill(dataTable);
When I comment out the line that calls this 'Fill' method the It
displays
the column heading but no data in it off course..
So I am very confused whether this is a connection error or not...
The code is automatically generated by visual studio.
The connection string I use is:
"Data Source=HEZAL-PC\\SQLEXPRESS,1433;Initial Catalog=MEDITERRANEAN
_RESTAURANT_MANAGEMENT;Integrated Security=True;"

Here is the stack trace:

at System.Data.SqlClient.SqlConnection.get_ServerVers ion() 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
Orders.MEDITERRANEAN__RESTAURANT_MANAGEMENTDataSet 1TableAdapters.Customer_DetailsTableAdapter.Fill()
at Orders.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 Orders.Program.Main()

Sorry for the information overload.. I need some help urgently as I
have
spent days reading searching but nothing helped

Can anyone help me please?
Thanks




Reply With Quote
  #48  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: problem with connecting to sql server via a wireless applicati - 02-29-2008 , 11:17 AM



OK. Time to check the bonehead things.
Is the SQL Server Service started?
Did you restart SQL Server after enabling the remote connections?
Did you spell the name correctly?

More complicated things.
Since you enabled TCP, can you connect to the IP Address/port? Check the SQL
Server error log and confirm that SQL Server is listening on port 1433. Get
the IP address of the SQL Server computer. Then try to connect to the IP
address and port number in the format: 127.0.0.1,1433
like
"Data Source=127.0.0.1,1433;Initial
Catalog=MEDITERRANEAN_RESTAURANT_MANAGEMENT;Integr ated Security=True;"

Can you ping the IP address from the client computer?
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks for the reply Rick. I appreciate it

I tried your suggestion but it still gives error.
I realised while debugging the following message: "SQL Server does not
exist or access denied."



"Rick Byham, (MSFT)" wrote:

Sorry. I don't know much about Visual Studio.
My only other suggestion is to turn on the SQL Server Browser Service on
the
SQL Server computer. SQL Server Express listens on dynamic ports, and
it's
possible it is not using port 1433. Remove ",1433" from the string, and
the
Browser Service should provide the correct port, if it's not 1433.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:FB510836-1F18-4FDD-AEE3-E962DB82B325 (AT) microsoft (DOT) com...
The string is automatically created by visual studio therefore when I
remove
one slash it complains about unrecognised escape sequence..


"Rick Byham, (MSFT)" wrote:

You have too many slashes. HEZAL-PC\\SQLEXPRESS should be
HEZAL-PC\SQLEXPRESS
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:1F5FCD5E-80FB-4C7E-A6A7-4770790B8A3E (AT) microsoft (DOT) com...
Hi,
I have created a SQL Server 2005 database in VS 2005 and I am using
windows
mobile to access directly to SQL Server.
I use Vista and Windows Mobile device centre for the connection
between
the
device and the PC.
I have enabled remote connections for TCP/IP and named pipes. I have
also
checked the firewall settings and made an exception for sqlsrv.exe
Building it is fine but When I debug the application, the status
says
deployed successfully then it gives me the following error :
SqlException was unhandled- int returnValue =
this.Adapter.Fill(dataTable);
When I comment out the line that calls this 'Fill' method the It
displays
the column heading but no data in it off course..
So I am very confused whether this is a connection error or not...
The code is automatically generated by visual studio.
The connection string I use is:
"Data Source=HEZAL-PC\\SQLEXPRESS,1433;Initial Catalog=MEDITERRANEAN
_RESTAURANT_MANAGEMENT;Integrated Security=True;"

Here is the stack trace:

at System.Data.SqlClient.SqlConnection.get_ServerVers ion() 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
Orders.MEDITERRANEAN__RESTAURANT_MANAGEMENTDataSet 1TableAdapters.Customer_DetailsTableAdapter.Fill()
at Orders.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 Orders.Program.Main()

Sorry for the information overload.. I need some help urgently as I
have
spent days reading searching but nothing helped

Can anyone help me please?
Thanks




Reply With Quote
  #49  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: problem with connecting to sql server via a wireless applicati - 02-29-2008 , 11:17 AM



OK. Time to check the bonehead things.
Is the SQL Server Service started?
Did you restart SQL Server after enabling the remote connections?
Did you spell the name correctly?

More complicated things.
Since you enabled TCP, can you connect to the IP Address/port? Check the SQL
Server error log and confirm that SQL Server is listening on port 1433. Get
the IP address of the SQL Server computer. Then try to connect to the IP
address and port number in the format: 127.0.0.1,1433
like
"Data Source=127.0.0.1,1433;Initial
Catalog=MEDITERRANEAN_RESTAURANT_MANAGEMENT;Integr ated Security=True;"

Can you ping the IP address from the client computer?
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks for the reply Rick. I appreciate it

I tried your suggestion but it still gives error.
I realised while debugging the following message: "SQL Server does not
exist or access denied."



"Rick Byham, (MSFT)" wrote:

Sorry. I don't know much about Visual Studio.
My only other suggestion is to turn on the SQL Server Browser Service on
the
SQL Server computer. SQL Server Express listens on dynamic ports, and
it's
possible it is not using port 1433. Remove ",1433" from the string, and
the
Browser Service should provide the correct port, if it's not 1433.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:FB510836-1F18-4FDD-AEE3-E962DB82B325 (AT) microsoft (DOT) com...
The string is automatically created by visual studio therefore when I
remove
one slash it complains about unrecognised escape sequence..


"Rick Byham, (MSFT)" wrote:

You have too many slashes. HEZAL-PC\\SQLEXPRESS should be
HEZAL-PC\SQLEXPRESS
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:1F5FCD5E-80FB-4C7E-A6A7-4770790B8A3E (AT) microsoft (DOT) com...
Hi,
I have created a SQL Server 2005 database in VS 2005 and I am using
windows
mobile to access directly to SQL Server.
I use Vista and Windows Mobile device centre for the connection
between
the
device and the PC.
I have enabled remote connections for TCP/IP and named pipes. I have
also
checked the firewall settings and made an exception for sqlsrv.exe
Building it is fine but When I debug the application, the status
says
deployed successfully then it gives me the following error :
SqlException was unhandled- int returnValue =
this.Adapter.Fill(dataTable);
When I comment out the line that calls this 'Fill' method the It
displays
the column heading but no data in it off course..
So I am very confused whether this is a connection error or not...
The code is automatically generated by visual studio.
The connection string I use is:
"Data Source=HEZAL-PC\\SQLEXPRESS,1433;Initial Catalog=MEDITERRANEAN
_RESTAURANT_MANAGEMENT;Integrated Security=True;"

Here is the stack trace:

at System.Data.SqlClient.SqlConnection.get_ServerVers ion() 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
Orders.MEDITERRANEAN__RESTAURANT_MANAGEMENTDataSet 1TableAdapters.Customer_DetailsTableAdapter.Fill()
at Orders.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 Orders.Program.Main()

Sorry for the information overload.. I need some help urgently as I
have
spent days reading searching but nothing helped

Can anyone help me please?
Thanks




Reply With Quote
  #50  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: problem with connecting to sql server via a wireless applicati - 02-29-2008 , 11:17 AM



OK. Time to check the bonehead things.
Is the SQL Server Service started?
Did you restart SQL Server after enabling the remote connections?
Did you spell the name correctly?

More complicated things.
Since you enabled TCP, can you connect to the IP Address/port? Check the SQL
Server error log and confirm that SQL Server is listening on port 1433. Get
the IP address of the SQL Server computer. Then try to connect to the IP
address and port number in the format: 127.0.0.1,1433
like
"Data Source=127.0.0.1,1433;Initial
Catalog=MEDITERRANEAN_RESTAURANT_MANAGEMENT;Integr ated Security=True;"

Can you ping the IP address from the client computer?
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks for the reply Rick. I appreciate it

I tried your suggestion but it still gives error.
I realised while debugging the following message: "SQL Server does not
exist or access denied."



"Rick Byham, (MSFT)" wrote:

Sorry. I don't know much about Visual Studio.
My only other suggestion is to turn on the SQL Server Browser Service on
the
SQL Server computer. SQL Server Express listens on dynamic ports, and
it's
possible it is not using port 1433. Remove ",1433" from the string, and
the
Browser Service should provide the correct port, if it's not 1433.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:FB510836-1F18-4FDD-AEE3-E962DB82B325 (AT) microsoft (DOT) com...
The string is automatically created by visual studio therefore when I
remove
one slash it complains about unrecognised escape sequence..


"Rick Byham, (MSFT)" wrote:

You have too many slashes. HEZAL-PC\\SQLEXPRESS should be
HEZAL-PC\SQLEXPRESS
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hezal" <Hezal (AT) discussions (DOT) microsoft.com> wrote in message
news:1F5FCD5E-80FB-4C7E-A6A7-4770790B8A3E (AT) microsoft (DOT) com...
Hi,
I have created a SQL Server 2005 database in VS 2005 and I am using
windows
mobile to access directly to SQL Server.
I use Vista and Windows Mobile device centre for the connection
between
the
device and the PC.
I have enabled remote connections for TCP/IP and named pipes. I have
also
checked the firewall settings and made an exception for sqlsrv.exe
Building it is fine but When I debug the application, the status
says
deployed successfully then it gives me the following error :
SqlException was unhandled- int returnValue =
this.Adapter.Fill(dataTable);
When I comment out the line that calls this 'Fill' method the It
displays
the column heading but no data in it off course..
So I am very confused whether this is a connection error or not...
The code is automatically generated by visual studio.
The connection string I use is:
"Data Source=HEZAL-PC\\SQLEXPRESS,1433;Initial Catalog=MEDITERRANEAN
_RESTAURANT_MANAGEMENT;Integrated Security=True;"

Here is the stack trace:

at System.Data.SqlClient.SqlConnection.get_ServerVers ion() 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
Orders.MEDITERRANEAN__RESTAURANT_MANAGEMENTDataSet 1TableAdapters.Customer_DetailsTableAdapter.Fill()
at Orders.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 Orders.Program.Main()

Sorry for the information overload.. I need some help urgently as I
have
spent days reading searching but nothing helped

Can anyone help me please?
Thanks




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.