Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We are using Sql Server database as our project back end and VB.Net 2012 as Front End. Now we want to deploy this project to client side. But we dont want to install Sql server at client side. So how can we access Sql Server database without Installing Sql Server. We are using Visual basic 2012 for Our Project Fornt End.
Posted
Comments
Ankur\m/ 24-Apr-14 7:42am    
You don't need to install SQL Server but will need server credentials where you have your database and it should be accessible over the network.

Assuming that you are using a connection string[^] to connect the database just amend that to point towards your SQL Server.

Sql Server Connection String Examples[^]

For a trusted connection
VB
Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;
 
Share this answer
 
You can't.

SQL Server is a server based system, and you need to have an instance of it available in order to use an SQL database - the file alone is not sufficient.

If you are using your DB for a single user (and not sharing the data with any other users at all) then you could change your code to use a single user database file which would not require SQL server such as SqlCE or SqLite or even Access, but any multi user activity really needs a server based system such as Sql Server or MySql.

You can;t just copy a file over and have it work as an SQL database for multiple users without SQL server.
 
Share this answer
 

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