Click here to Skip to main content
15,912,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am looking to create a database that I can put on a server and have multiple computers pull information from via software I am attempting to write. I have looked at creating a sql database in Microsoft Access and using it to connect to via my software.... I know absolutely nothing about how to do this and Im attempting to teach myself.... Is this the correct way to go? Is there a better way?
Posted
Comments
BillWoodruff 6-Nov-14 15:08pm    
Why don't you search CodeProject for articles on Access and SQL and read them ? Get started writing code, and then come back here with specific questions.
Coder_2002 6-Nov-14 15:14pm    
OK.. no problem in doing that but I hate to spend a week researching an item and find out it will not work for the task I am trying to accomplish... Are you telling me Im on the right track here?

You don't want to use Access, you want to use SQL. There are even free versions of SqlExpress at Microsoft's site.

As suggested by Bill, search the articles here for sql and C# and google has tons of examples as well.

When you get stuck on something specific, come back and we'll gladly help you.
 
Share this answer
 
Comments
Coder_2002 6-Nov-14 15:18pm    
Hey thanks!!!
ZurdoDev 6-Nov-14 15:20pm    
Another keyword to search for would be ADO.Net. Those are the classes you use in C# to work with databases.
Afzaal Ahmad Zeeshan 6-Nov-14 15:25pm    
You posted if before me, +5 :)
Visual Studio is an IDE for you to create applications and projects. You can create a database in it, use it in your client systems, allow users to work all through the Visual Studio.

But there is a better way of doing this. Go ahead, install SQL Server in your machine. You can use Express version that is free and you will get the understanding of the SQL Server. Access is not that much efficient while working with Internet based applications. Use SQL Server.

Secondly, you can then create an instance of your database connection, that connection string is used to connect to the databases, locally or remotely. Even if you're inside the SQL Database Management Studio, you will still be required to provide with that connection string. It is of this form generally

C#
// yes it is a string.
string connectionString = "Server= myServerAddress; Database= myDataBase; Trusted_Connection= True;"


Above connection string was captured from this website[^]. You can find more of these connection strings from that website.

Usually people set the authentication mode to Windows authentication thus the above connection string works. Otherwise you can set username and passwords too.

Try giving this one article[^] of mine a read to start your SQL database progress.

You can create user accounts from your SQL DBMS, you can then use a connection string on your client machine to work with the SQL. Visual Studio has nothing to do with this one. It is just an IDE and will be used for developmental process only, once developed it will be a job for your SQL Server to allow remote (since you're going to use the database from client computers) connections to your database and your clients will connect to the database on the server which you specify inside your connection string.
 
Share this answer
 
v2
Comments
ZurdoDev 6-Nov-14 15:28pm    
+5. Good descriptions.
Afzaal Ahmad Zeeshan 6-Nov-14 15:30pm    
Thanks Ryan. :)
Coder_2002 6-Nov-14 15:31pm    
Ok I will check it out. Many Thanks!!!
Afzaal Ahmad Zeeshan 6-Nov-14 15:32pm    
You're most welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900