Solved

Client Server in Visual Basic Express

Posted on 2009-05-16
5
325 Views
Last Modified: 2013-11-27
Hi all
Just wanted to know did anyone have any pointers, webistes or tutorials as I want to turn my simple vb sql server express application into a client server model.  the client should simply be able to grab information from the database and also update some of the fields.  security is not an issue, i just need a simple way to connect the two.  for the moment there would only be one client machine but that may change in the future.

help or advice would be very much appreciated.
0
Comment
Question by:viralss
5 Comments
 
LVL 22

Expert Comment

by:8080_Diver
ID: 24403819
Does your "simple VB SQL Server Express Application already access a database?  If so, then, basically, all you have to do is to change the connection strings and the location of the database from a local one to the Server based database.
You will probably want to use Windows NT Authentication or Mixed Mode authentication.
Will you be connecting via an Intranet or via the Internet?
0
 
LVL 46

Expert Comment

by:tbsgadi
ID: 24405271
0
 

Author Comment

by:viralss
ID: 24408181
The VB.Net front end already accesses the sql server database and updates, views and deletes records.  this is the administration side of the application.  there is also a smaller application which allows another machine to access the database via an intranet and view records as well as some simple updating.  

>>If so, then, basically, all you have to do is to change the connection strings and the location of the >>database from a local one to the Server based database.

by this do you mean that it in the client application all i would need do is change the connection string to point at the same database?  so changing

con.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ShinFlow;Data Source=SHIN-LAPTOP\SQLEXPRESS"

to something different?

i was hoping just to have the client connect to the database over the intranet and not have to worry about being routed through the server application but im wondering what would happen if both applications tried to access the database at the same time.  

Thanks for your help both. Gary, i will check out those links you suggested and get back to you.
0
 
LVL 2

Accepted Solution

by:
JAVI1065 earned 500 total points
ID: 24443518
change the connection string to something like this:
 Public conn As New SqlClient.SqlConnection("Data Source=My server's IP Address,1433;Network Library=DBMSSOCN;Initial Catalog=MyDatabase;User ID=DatabaseUserName;Password=yourpassword;")

And if I remember correctly SQL Express does not support remote connections, I'm really not sure.
Let me know if this helped.
0
 

Author Comment

by:viralss
ID: 24450336
Ah, if it doesnt support remote connections then i think im in trouble before i even begin.  I shall read more into that and see what i come up with.  Thanks for your help JAV
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now