473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to use a sql server database on LAN network using VB 2008

Hi, could anyone help me....

I've already installed VB and sql server express 2008. I've created a database in the sql server and connected the database to VB project which works fine. My problem is... how to use this VB project on a LAN network. If I complete the project using the database which is on my hard drive, how Could I build this project and put it on the network, so as other users using the project to update the database.

Pls guide or refer me to any site where I could continue working on the project.
Jul 13 '12 #1
6 6490
PsychoCoder
465 Expert Mod 256MB
Going that route I would check out SQL Compact. You can embed the database into your application.
Jul 13 '12 #2
Thanks bro for replying but how the can each user connected to that project and update the database. I've copied the database to the folder and share the project folder on the LAN... the forms are load but not the data from the database. One main thng I've installed sql server only on my pc and not on others....
Jul 13 '12 #3
PsychoCoder
465 Expert Mod 256MB
If you're wanting multiple users to connect to the same DB then you're going to need a hosted SQL database
Jul 14 '12 #4
How to use a hosted SQl Database on a LAN Network????
Jul 14 '12 #5
lyodmichael
75 64KB
use your connection string and set the right hosted, hmm.

Data Source=myServerAddress;Database=myDataBase;User ID=myUsername;Password=myPassword;

just like that if im not mistaken .
Jul 15 '12 #6
I've done as u said, when I ran it from my computer it works but after building the project. I launched the Vb Application on another computer found on the network, the connection string failed to response. my connection string is like that:
Dim connetionString As String
Dim cnn As SqlConnection
connetionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=C:\DBMS_DataS ource\DBMS_Database.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
cnn = New SqlConnection(connetionString)
Try
cnn.Open()
MsgBox("Connection Open ! ")
cnn.Close()
Catch ex As Exception
MsgBox("Can not open connection ! ")
End Try

The question is how other computers on the network will locate my computer database location???

Pls any suggestion....
Jul 15 '12 #7

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

Similar topics

2
by: Irishmaninusa | last post by:
I have a client who is trying to connect to a sql server database using asp.net and this is the error message that they get, any ideas on what is causing the error message and what the correction...
4
by: TC | last post by:
Hello All, I apology for posting to many groups but I wasn't sure which group would be best targeted with my question. I have inherited an ASP.Net application that requires some maintenance &...
2
by: Trond Hindenes | last post by:
Hello all, I am working on a application for analyzing data from a SQL Server Database using vb.net. THe application will mostly be web-based, although we migt use some Windows Forms for some of...
9
by: TC | last post by:
Like a lot of database developers, I often choose Jet for the back- end. I'm starting to worry about what will happen when Jet is deprecated. Ostensibly, Jet users like me must switch to SQL Server...
0
by: ssrirao | last post by:
There is an Excel Spreadsheet containing data, residing in an internet site. It’s very easy to Import data from a local Excel Spreadsheet into SQL Server Database Table using DTS. But in my case...
2
by: Dabulsta | last post by:
I am trying to design a network using Windows Server 2003 Active Directory infrastructure for the following company(below) and I was wondering if there was some sort of walk through available to...
1
by: kusmanf | last post by:
Sir, I am a beginer to SQL Server, as well as to networking. I have a VB program to manage a SQL server database. I need to share database informations using a second PC. Both PC's are installed...
0
by: VVRNB | last post by:
I would like to know how to develop Client server program in Visual Basic 6 with Ms Access database. I do not know how to write code for client and Server . How to prepare activex DLL. A simple...
7
by: saadkhan | last post by:
Is there any way to create xml file and save it in SQL Server database all using javascript? I have no security issues for the purpose i need to do it. Though if anyone could give me some better idea...
2
by: manee1982 | last post by:
i tried to connect data base in network using workgroup, I set up a SQL server without Username and password, and i treid to use (New SQL Server Registration) wizard. i did all the steps requred to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.