473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VB.NET CF query remote SQL server.

Im new to the VB.NET stuff but I am looking for a way to query a remote SQL database from a pocket PC application. I have done this in the past with VB6 in wondows using data environment disigners but I dont believe that this is supported with the compact framework.

Any help or sample code would be great!
Nov 20 '05 #1
2 3425
Hi Leo,

Do you know that there is a newsgroup

microsoft.public.framework.compactframework

Pretty active.

Cor
Nov 20 '05 #2
You just need to add a reference to the SqlClient dll and then add IMports
System.Data.SqlClient namespace (technically you don't have to do this last
step but it will make life easier).Basically just add this reference, build
your connection string and off you go, I can't think of any differences
between full SQL Server and accessing it on the CF (although Sql Server CE
has a bunch of differences).

If you head over to devbuzz, we have two CF forums (one for VB.NET
http://forums.devbuzz.com/%25NET_Com...umid_20/tt.htm)
and one for C#
http://forums.devbuzz.com/%25NET_Com...umid_43/tt.htm
and we also have a Sql Server CE forum
http://forums.devbuzz.com/SQL_Server...rumid_4/tt.htm if you
are interested in using CE. After you build add the reference, it's almost
identical to using SQL Server on the desktop although you probably will want
to specify the permissions. Dan Fergus (author of The Definitive Guide to
the Compact Framework) and Rob Tiffany author of Sql Server CE and the
compact framework (two must have books) both actively participate there and
we have a bunch of Cf mvps' as moderators and authors and we all help out
on the forums.

www.opennetcf.org is also a site that you don't want to miss. It's the best
CF site on the web and although not focued to sql Server and SqlClient,
there's a lot of discussion on it and there's a ton of knowledge. If you
are going to do any CF development, Opennetcf is Definitely the best
resource there is and something that will make your life much easier.
Casey Chesnut also has a bunch of great content at www.brains-n-brawn.com
and he discusses SQL Server, CF stuff, Web Services and much more. It will
be helpful too.
HTH,

Bill

--

W.G. Ryan, eMVP

http://forums.devbuzz.com/
http://www.knowdotnet.com/williamryan.html
http://www.msmvps.com/WilliamRyan/
"Leo_Dee" <an*******@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
Im new to the VB.NET stuff but I am looking for a way to query a remote SQL database from a pocket PC application. I have done this in the past with
VB6 in wondows using data environment disigners but I dont believe that this
is supported with the compact framework.
Any help or sample code would be great!

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ray | last post by:
Hi - I have a query which extracts data from multiple tables (9i server), one of the tables is on a remote server with 8.1.7 Oracle running on it. Whenever this query is run, the performance is...
5
by: Bernie | last post by:
Greetings, I have 3 servers all running SQL Server 2000 - 8.00.818. Lets call them parent, child1, and child 2. On parent, I create a view called item as follows: CREATE view Item as...
7
by: Dan V. | last post by:
Situation: I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their XML file. Their file may be...
20
by: xixi | last post by:
hi, we use db2 udb v8.1 on windows, i am trying to use federated database objects to create wrapper, even though i have update dbm cfg using federated yes, i still get error "the instance for the...
4
by: MLH | last post by:
I apologize in advance to forum readers noticing this somewhat redundant post. I fear that my Subject Heading was ill-chosen in earlier post I made on this topic. Am hoping that a clearer Subject...
6
by: Access Newbie | last post by:
I'm using Access 2000 and I'm trying to create a pass-through query to append all the data from a local table to a remote table. I'm using the SQL query editor in MS Access to create the query (I...
6
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows...
1
by: traceable1 | last post by:
I have 2 SQL databases which are the same and are giving me different query plans. select s.* from hlresults h inner join specimens s on s.specimen_tk = h.specimen_tk where s.site_tk = 9 and...
9
by: Adrian Dev | last post by:
Hi, I have succesfully used a ManagementScope object to get WMI information about workstations on the current domain using "//xp10/root/cimv1". But if I make a request to a workstation on a...
7
by: mak1084 | last post by:
Hi, I want to make online registration script. To do this I searched google and found that cURL can be used, to send a query to the remote sever and getting the data back. Can you guys help me...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.