473,461 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to get connectionstring to connect to SQL Express 2005 on the client PCs?

OuTCasT
374 256MB
Hi.
I have a application that i want to deploy to multiple pcs.
Included sql express 2005 to the prerequisites and is installed first time.

My pc has Sql Server 2005 and manager. The solution works 100% on my pc.
The connectionstring is the problem with the client pc.
I need the connectionstring to connect to sql express 2005 on the pc's that the solution will be installed on.

At the moment im using
Expand|Select|Wrap|Line Numbers
  1. Server =(local);Data Source=.\SQLEXPRESS;DataBase=;Integrated Security=SSPI;Trusted_Connection=True
This gives me error.

I have done this before but ive lost the project some time back.

Could anyone please help me.
Nov 17 '10 #1
4 1773
OuTCasT
374 256MB
Problem is with access rights to create the database.
Nov 17 '10 #2
ck9663
2,878 Expert 2GB
Are you saying your application is creating a database?

~~ CK
Nov 17 '10 #3
OuTCasT
374 256MB
What happens is, when they first use the application they create a company/database. I did some debugging and found that the application was being installed under program files, and then when i tried to create the database in the application folder it gave a access denied error.
So either set security on the program folder or install application directly into C:\Program Name.
Nov 18 '10 #4
ck9663
2,878 Expert 2GB
There are a lot of factors to consider. Remember that even though it's a database that's being created, it's still a file as far as the Windows OS is concerned. Where this file (data and log) will be created needs to be accessible (with the proper user rights) to the one creating it. That would depend on who's user the OS is getting from your app.

Good Luck!!!

~~ CK
Nov 18 '10 #5

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

Similar topics

4
by: Devante | last post by:
Hi, I am fairly new to ASP.NET and have been working on a web form that will allow a user to upload images to a database. I have found a sample web form that I have been trying to get working,...
2
by: oswald verlinden | last post by:
Hi all, i have a client with an old working app. in PowerBuilder for which i need to create new modules. The db is sqlanywhere 5.0.4 The db is configured in ODBC. Now, i don't seem to be able...
2
by: G. Dean Blake | last post by:
We currently distribute a web application to serveral servers for a customer. We have been putting the connection string in our web.config file under <appSettings> <add...
6
by: Tony | last post by:
Dear All, When I run an example program on the http://www.dotnetjunkies.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/webforms/data/datagrid1.src&file=VB\datagrid1.aspx&font=3 ...
4
by: Shapper | last post by:
Hello, I have this connectionString in a DataReader: Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=C:\db.mdb" It's working fine. Now i...
10
by: Laura K | last post by:
Tried all kinds of things. I get the error. The ConnectionString property has not been initialized. Any help appreciated. ...
2
by: Chen | last post by:
I have a project which contain several WinForms. I put a SqlDataAdapter in Many of the Forms. I want these SqlConnection1.ConnectionString Point to the same SQL Server. So I create a Global Const...
3
by: Jim Andersen | last post by:
Hi, I would appreciate if someone could explain this behaviour, and maybe offer a better solution. I have been working with the GridView control. And SqlDataSource. It works great if I do:...
3
by: Arpan | last post by:
I recently installed SQL Server 2005 (Management Studio Express) along with SQL Server 2005 Express (Configuration Manager) in my Win2K Pro m/c & use IIS 5.0 to run ASPX projects. I could add my...
5
by: Radu | last post by:
Hi. In a repeater I have as ItemTemplate the following, among others, and everything works great: <asp:SqlDataSource ID="LocationSqlDataSource" SelectCommand="SELECT blah-blah-blah"...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.