how to get host_name from vb.net code

G

Guest

Hi all,
Needed urgently. I am implementing pocket pc application with vb.net and sql
server . I am able to synchronize . I am using dynamic filter for filtering
data for that purpose i am using host_name() but i dont know how to get that
value when we connect to pocket pc . My application is similar to field sales
application where data is loaded into pocket pc according to region of the
sales person . There is no login or password to enter into pocket pc . I want
to use device id as primary key to identify the region.
 
I

Ilya Tumanov [MS]

If you trying to get device name, you can use this:

System.Net.Dns.GetHostName()

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
D

Darren Shaffer

no Ilya, he's not talking about DNS hostname. He's referring to the
subscription
HOST_NAME that you can specify to allow publishers to identify which
subscriber
they are dealing with (and subsequently filter data that gets returned to
the suscriber in
the merge replication process).

you obtain this in a SQL CE or SQLMobile database after replication as
follows:
select HostName from __sysMergeSubscriptionProperties
--
Darren Shaffer
..NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com
 
G

Guest

Hi ,
I am using System.Net.Dns.GetHostName()
to get the device name its working . And keeping the result value in
repl.hostname in vb.net code while synchronising
how to get netbios name or anyother name which is unique and should not be
able to change by subscribers because device name is easy to change.
--
yours truly,
Pramod Renikindi,
creativesoft,
australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top