473,385 Members | 1,942 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,385 software developers and data experts.

C# Project with Sql 2005 database

JustRun
127 100+
Well, Hope someone answer me this time.

I have a SQL 2005 Database attached to my project with this connection string:

Expand|Select|Wrap|Line Numbers
  1. Data Source=.\SQLEXPRESS;AttachDbFilename=D:\CSharp\Store\Database\Store.mdf;Integrated Security=True
  2.  
The problem is: when I release the project to setup.exe, it ask for the database,

I need a solution that doesn't require me to give the database to the client.

Please answer me
Sep 16 '09 #1
5 1859
cloud255
427 Expert 256MB
Well if you want to maintain control of the DB, you will have to implement a client server application. Where the client machine connects to your server which will in turn handle DB actions...
Or you could place the database on a separate SQL server and provide the remote server name in the connection string, this will remove the need for a server side application but will reduce the security and flexibility of your overall solution.
Sep 16 '09 #2
JustRun
127 100+
yeah, but what i mean is to let the setup folder contains the database as a non-readable file even the client has a SqlServer, he aill not be able to open it.
and the program only will be able to work with

Is this logical ? or it can't be proccessed?
Sep 23 '09 #3
cloud255
427 Expert 256MB
Well I've never done something like that before. If the file cannot be opened by SQL server you will not be able to run queries against the database, so I can't see why you would want to do something like that...

Also be careful here as the data generally belongs to your customer and not the developer, keeping the user from accessing their data (or forcing them to use your application to access their data) is probably illegal in most countries. You will have to check the laws regulating that in your region to be certain.
Sep 28 '09 #4
JustRun
127 100+
You are right, it's not legal to force the customer and thanks for clarifying the SQL query point

Thank you
Sep 29 '09 #5
Plater
7,872 Expert 4TB
If you make your database take a specific username/password, then only applications that know the username/password (such as your own) can open it.
Sep 29 '09 #6

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

Similar topics

4
by: Brad | last post by:
I'm not one to rant or flame....so please excuse me while I do so for this once. I've now spent a bit of time working with VS2005 beta 2 to see how it functions for web development, especially how...
1
by: tcg_gilbert | last post by:
I'm stuggling with where to build my databas projects using .NET 2005. I've got visual Studio 2005 installed and I'm trying to pull data from a Teradata database and I would like to have a place...
5
by: GaryDean | last post by:
(my original post was inaccurate but this post accurately describes what I think is a very bad vs2005 bug) short description... Deleting a dataset and recreating it from the dataadapter causes...
1
by: Dan Bass | last post by:
-- Installed -- Visual Studio 2005 (.Net 2.0) Sql Server 2005 Express Sql Server 2005 Mobile SDK I'm trying to add a "SQL Mobile Database" component to my Smart Device project through Visual...
5
by: Mo | last post by:
Hello all, I'm trying to set up an access 2000 .adp project connecting to a SQL server 2005 database. I can set up the connection ok, but once I have completed the setup process, I get the...
1
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
13
by: anantnigam03 | last post by:
hI, Can any one give me some ideas for creating a finaly year project using C#.NET. The project should be bit complicated. I am not that experienced in C#.NET yet but i am learning every day. So a...
3
by: Maha | last post by:
Hi all, It is my first time with windows forms applications using Visual Studio .net 2005, and I have a question; My project is a database driven one which will be distributed on a CD. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.