Re: Connect to Desktop SQL Server 2000 from Pocket PC
From: Robert J (paa_at_bigpond.com)
Date: 06/23/04
- Next message: Robert J: "Re: Write File to Network Drive using Wi Fi connection"
- Previous message: Robert J: "Re: Moving cursor in textbox"
- In reply to: Mystic Mong: "Re: Connect to Desktop SQL Server 2000 from Pocket PC"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Jun 2004 23:13:01 GMT
I am using :
Imports System.Data.SqlClient
Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdLogin.Click
Dim Conn As New SqlConnection
Dim strConnString As String
Try
strConnString = "server=" & strServer & "; uid=sa; password=;
database=" & strDBase
Conn.ConnectionString = strConnString
Conn.Open()
Catch ex as exception
Arggghhhhhhhhhhhhh !!!!
End Try
End Sub
For SQL Server 7 but MSDE should be the same
Cheers
Robert
"Mystic Mong" <alastair.williamson@tiso.co.uk> wrote in message
news:40d73b0a$0$4576$db0fefd9@news.zen.co.uk...
> Hi there,
>
> I have been attempting to perform a similar task today - I need to send
data
> from a local SqlCe table to a database residing on a desktop machine. I
have
> MSDE installed on the desktop and it accepts network requests (tested from
> another laptop).
>
> My problem is that when my PDA is connected to the desktop via ActiveSync
I
> get "Could not find server" exceptions when I try to execute the
> SqlConnection Open command.
>
> My connection string is essentially the same as Leonardo's (server name,
> instance name, username and password). My connection string is the same as
I
> use for connecting to our enterprise SQL Server via wireless connection so
> is there a reason why I am having problems via ActiveSync? I am assuming I
> have missed something basic as my knowledge is limited on this stuff.
>
> Any help (code snippet would be fab!) would be much appreciated.
>
> Cheers
>
> C-Ya Aly
>
> "Leonardo Castillo" <castillolj@hotmail.com> wrote in message
> news:eV%23I4s6VEHA.1652@TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > I need to connect from a program in the Pocket PC to SQL Server in my
> > desktop. How i can do than in VB.NET ?.
> > (I need an information in one table in SQL Server 2000).
> >
> > Thanks,
> >
> > Leonardo Castillo.
> >
> >
>
>
- Next message: Robert J: "Re: Write File to Network Drive using Wi Fi connection"
- Previous message: Robert J: "Re: Moving cursor in textbox"
- In reply to: Mystic Mong: "Re: Connect to Desktop SQL Server 2000 from Pocket PC"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|