473,511 Members | 14,975 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to have a single database for a LAN and server application in vb.net

2 New Member
I am developing an application VB.NET and SQL server express as backend for a hospital

management system. The application will have two parts - the vb.net application will work in LAN

and there will be a website which will be asp.net with VB. People will be able to book appointments

directly in hospital or from website. Now, my question is how to have one database for both. And

the second question is how to make the vb.net application work over LAN.
Jul 26 '13 #1
2 7807
vijay6
158 New Member
Hey doctorj97, for your second question,

how to make the vb.net application work over LAN.

1) Install SQL Server Express edition in a machine which you want to act as server machine.

2) Allow TCP/IP connection in server machine. Open SQL Server Configuration Manager -> in left panel expand SQL Server [version] Network Configuration -> double click Protocols for SQLEXPRESS -> in right panel right click TCP/IP and select Enable.

3) Set exception for the port number which you're using for SQL Server in server machine.

I) Default port number is 1433. To find/set your port number, open SQL Server Configuration Manager -> in left panel expand SQL Server [version] Network Configuration -> double click Protocols for SQLEXPRESS, right click TCP/IP and select Properties -> Select IP Addresses tab -> scroll down to IP4 -> TCP Port (your port number).

II) Control Panel > Windows Firewall > Advanced settings -> Inbound Rules (in left panel) -> Select New Rule... (in Actions) -> Select Port -> Click Next -> Select TCP and Enter your SQL Server's port number (1433 default port number) -> Click Next -> Select Allow the connection -> Click Next -> Select the network types in which you want to allow set an exception -> Click Next -> Enter any name -> Click Finish.

4) Connect other computers to this server machine via your lan cable.

5) Assign unique IP address to all machines over this lan network including the server machine.

6) In your application's connection string line use Data Source as Server machine's IP Address (lan's IP address), Port Number.

Eg: Data Source=190.190.190.1,1433;

For your first question,

how to have one database for both.

1) Host your website in any server like IIS in your server machine.

2) Assign your internet's IP address (If you're using this website only in your lan network means use your server machine's lan connection's IP address. Else if you want to use apart from lan network means then assign your internet's IP address) to your website in IIS.

3) In your website's connection string line use Data Server as Server machine's IP Address , Port Number. Eg:

Data Server=190.190.190.1,1433;

4) You can browse your website using your server's IP address (internet's IP address not lan's IP address).
Jul 28 '13 #2
doctorj97
2 New Member
@vijay6
thank you very much.I will try in this way.I hope it works for me.
Jul 28 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

16
7454
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
5
2543
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server...
5
5694
by: Jonathan Allen | last post by:
Is this the correct way to use application roles? Public Function GetDBConnection() As SqlConnection Dim oCon As New SqlConnection(myConnectionString) oCon.Open() Using oCmd As SqlCommand =...
5
3218
by: HSP | last post by:
hi. i need to restore an old database. The db was backed up using a DLT drive, using 2 volumes. The content for the tapes was copied to file onto Solaris machine using rsh and dd (for backup...
1
1482
by: apoc69 | last post by:
Hi people, i have a own server application (written in .net) which proceess different message types, like XML, EDI, SPEC2000, SAP IDOCs. and so on... this application is doing a lot of different...
3
1905
by: asadikhan | last post by:
Hi, I have a client server application where the client sends a request to the server with a filename. The server needs to read the file contents, massage the data, and then add it to the...
11
4862
by: Jeff | last post by:
Hello everyone. I've searched through the archives here, and it seems that questions similar to this one have come up in the past, but I was hoping that I could pick your Pythonic brains a bit. ...
4
1815
by: ethangk | last post by:
Hey This is a little hard to explain but I will try my best. Is it possible to have a application running on a specific computer on a network, and to have all requests sent from the internet sent to...
0
1620
by: tajabadi | last post by:
Hello I have installs the server application 10.1.2.0 .2 in Windows 2003 server. I have forms 6i that j' converted into forms 10g. The language that j' use is Persan. With posting in browser IE,...
1
1696
by: Emek Taydas | last post by:
You cannot vote on your own post 0 Helloes good people of Bytes.com, I have a .NET client-server application running with a few hundred of clients. The project was migrated from VB6 to .NET about...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
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,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7093
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...
1
5077
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
3230
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...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
452
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.