473,479 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VPN connected sql servers

Hi All

I have an appointment based application (Windows forms vb.net 2008) which in
the case of 1 customer is running at 3 different physical locations

They are connected via a secure VPN

Any 1 store can bring up the appointment screen for any other store and make
appointments etc

I currently use a windows.forms.timer to refresh the appointment screen
every 10 secs to ensure the appointment screens at each location display the
current data

I am sure there is a better way to determine when an appointment screen
refresh is needed at a particular location

What is the industry standard for doing this....

1. Should I set a flag or timestamp in the remote database when an
appointment has been added from another location and check that flag within
a timer before calling a refresh?

2. Or is there a better way
Regards
Steve
Nov 2 '08 #1
2 1577
Hello Steve,

As I understand, you have three application clients running on three
different physical locations, they're use the same SQL Server database.
When one client update the data in the database, you want the other two
clients to display the new data.

Before we go any further, would you please tell me which SQL Server version
do you use?

Anyway, you can try the Query Notifications in SQL Server, it is used for
applications that need to refresh displays or caches in response to changes
in underlying data. For more information about Query Notifications, you can
refer to these documents:

Query Notifications in SQL Server (ADO.NET)
http://msdn.microsoft.com/en-us/library/t9x04ed2.aspx

Working with Query Notifications
http://msdn.microsoft.com/en-us/library/ms130764.aspx

Using Query Notifications in .NET 2.0 to handle ad-hoc data refreshes
http://www.codeproject.com/KB/databa...fications.aspx

If you have any questions or concerns, please feel free to let me know.

Sincerely,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can

improve the support we provide to you. Please feel free to let my manager
know what you think of the level

of service provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the

community or a Microsoft Support Engineer within 2 business day is
acceptable. Please note that each follow

up response may take approximately 2 business days as the support
professional working with you may need

further investigation to reach the most efficient resolution. The offering
is not appropriate for situations

that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working

with a dedicated Microsoft Support Engineer by contacting Microsoft
Customer Support Services (CSS) at

http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 4 '08 #2
Hi Zhi-Xin

Thanks for the reply

Sorry for leaving the SQL Server version out of the post, I am using SQL
Server 2005 Express

You are correct I have a client running my application at 3 different
physical locations

Each location is stand alone in that they have their own SQL Server express
instance and data

However within my application, Location A can bring up the appointment
screen for any other location e.g Location B, and make, edit or delete an
appointment at Location B

Location B needs to have their appointment screen refreshed so they can see
the changes made to their appointments by Location A

As this doesn't happen regularly, I don't just want to call a refresh from a
windows forms timer every 10 seconds or so, but only refresh when there is
evidence the appointments have changed

Regards
Steve
"Zhi-Xin Ye [MSFT]" <v-****@online.microsoft.comwrote in message
news:NK**************@TK2MSFTNGHUB02.phx.gbl...
Hello Steve,

As I understand, you have three application clients running on three
different physical locations, they're use the same SQL Server database.
When one client update the data in the database, you want the other two
clients to display the new data.

Before we go any further, would you please tell me which SQL Server
version
do you use?

Anyway, you can try the Query Notifications in SQL Server, it is used for
applications that need to refresh displays or caches in response to
changes
in underlying data. For more information about Query Notifications, you
can
refer to these documents:

Query Notifications in SQL Server (ADO.NET)
http://msdn.microsoft.com/en-us/library/t9x04ed2.aspx

Working with Query Notifications
http://msdn.microsoft.com/en-us/library/ms130764.aspx

Using Query Notifications in .NET 2.0 to handle ad-hoc data refreshes
http://www.codeproject.com/KB/databa...fications.aspx

If you have any questions or concerns, please feel free to let me know.

Sincerely,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can

improve the support we provide to you. Please feel free to let my manager
know what you think of the level

of service provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the

community or a Microsoft Support Engineer within 2 business day is
acceptable. Please note that each follow

up response may take approximately 2 business days as the support
professional working with you may need

further investigation to reach the most efficient resolution. The offering
is not appropriate for situations

that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working

with a dedicated Microsoft Support Engineer by contacting Microsoft
Customer Support Services (CSS) at

http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.


Nov 4 '08 #3

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

Similar topics

3
1681
by: vishnu mahendra | last post by:
Hello to all, Can you give me the code so that i can make sure that my system is connected to the internet. thank you in advance, vishnu
11
9528
by: Prabhat | last post by:
Hi All, Is there a way that I can know if any user connected to any of my website (or any specific website) in IIS 5? I wanted to know this before I restart the Service. Thanks Prabhat
3
2277
by: Martin Ho | last post by:
My application (before is actually fully loads) should check if user is connected to internet. Is there any way to check this with certainty? Thanks a lot. Martin ----== Posted via...
7
16904
by: semedao | last post by:
Hi all, I view many posts about this issue , the connected property does not tell us the current status of the socket. based on couple of suggestions of msdn , and some article here , I try to...
5
12235
by: alingsjtu | last post by:
Hello, every body. When execute dynamic generated multiple OPENQUERY statements (which linkes to DB2) in SQLServer, I always got SQL1040N The maximum number of applications is already connected...
2
1346
by: Parasyke | last post by:
I have a form with two comboboxes: one for manufacturers and one for product types. These after updating populate the results of the queries envolved to a subform. Works great. I choose "IBM" from...
0
891
by: arjun | last post by:
hey i am Manju, I want to access the exchange server information like : No of Exchange servers connected to a Domain Controller, Names of the Exchange servers, Their Version Numbers etc...
1
2541
by: MADS | last post by:
Hi everybody, I've five instances of SQL Server 2000 with the SAME database with a DIFFERENT owner in each server. I, as the administrator, have a lot of queries that I have to execute in some...
2
2051
by: Anne150585 | last post by:
I have an occasionally connected app, i need to recognise when there is any type of connection to the internal networks, be wired or wireless, however currently if connected wirelessly the app...
0
6899
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6719
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4757
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4463
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2980
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
555
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.