Solved

Client Server in Visual Basic Express

Posted on 2009-05-16
5
331 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

776 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