Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I have an application created by VB 2010 Express and I need to store the data from vb application to my local database.

But I don't know how to create a local database in mssql server managament studio 2012.

How to let the vb application connect to local database?

Please help me. It's very emergency right NOW!!! Thank you for answering. ^^
Posted

Hi,

Please go through with the following video, This video walks you through how to create a database in SQL Server 2012

http://www.youtube.com/watch?v=WKWZZcrin5I

it ll help you if it helps you mark it as answer else let me know for the issues.


Thanks.
 
Share this answer
 
Comments
[no name] 3-Jan-13 2:25am    
Thank you very much. It is a good tutorial. But I have some questions about database if I already created the database. And I want my application on different computers to access my local database through the application.

Do you have any idea how to do it? I tried using Access connection but it failed.

Thank you again!
nehas1jan 3-Jan-13 2:29am    
ya sure there are many ways to do this like:

1.if you have intranet or if you are using local network then you can use it on other connected PCs also

2.If you have internet then you can uplod your database on internet

3.if you have not any connecting facilities then you can attach your database on each PCs.

but as i consider you need to use intranet or internet.

hope you are now clear if not let me know please.

Thanks.
[no name] 3-Jan-13 2:43am    
ya i understand now. but now is how to do it? i tried the online database already but i want to use in local network. I need to deal this with ip address, isn't?

Thank you.
nehas1jan 3-Jan-13 2:47am    
ok that's fine,

You can do it by using connection string that you are using there in your application on other PCs.

Note PCs need to be connect over LAN.
[no name] 3-Jan-13 2:51am    
the connection string for connecting the sql database is like this:
server=localhost; user id=root; password=; database=custinfo; ?
I'm sorry, that you're not competent for your job, is not an emergency at all, it's just sad. When you ask for free help because you can't do your own work, you don't have the right to give a time line.

You create a DB by right clicking and choosing 'New Database', from memory. You connect by writing a connection string and then the right code. If you don't know these things, I doubt you know how to write code to connect to a DB. You should stop now, and work through some books so you know how to do the task you've undertaken.
 
Share this answer
 
Comments
[no name] 2-Jan-13 4:47am    
Sorry, sir/miss. I doesn't mean that but it's really emergency for me now. I know how to write the codes but not to create database. I know how to create database and using XAMPP but the database is only store in one pc and other pc cn't access to it via application.

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