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

SQL Database Read Only

15
Mine C# WinForm Application is using SQL Server 2008 Express and it's database to store/browse Data.

On computer which I've used to develop application everything is working, but on my brother's computer I get an Exception that Database is Read Only when I try to submit some changes.

I've menage to get it working with Connection string:
Expand|Select|Wrap|Line Numbers
  1. Data Source=.\SQLEXPRESS;AttachDbFilename=C:\MyApp\Base.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True
and with it, it's working.

But I would like to connect and use Database from my computer also so he should use:

Expand|Select|Wrap|Line Numbers
  1. Data Source=.\SQLEXPRESS;AttachDbFilename=C:\MyApp\Base.mdf;UID=sa;PWD=*****;Connect Timeout=30;Integrated Security=False;User Instance=False
so I can use same Server Instance at the same time from my computer:

Expand|Select|Wrap|Line Numbers
  1. Data Source=Bros\SQLEXPRESS;AttachDbFilename=C:\MyApp\Base.mdf;UID=sa;PWD=*****;Connect Timeout=30;Integrated Security=False;User Instance=False
As I'm aware 'sa' User by Default should have All Permissions.

Could someone Please explain me what I'm doing wrong?
Sep 12 '12 #1
0 1575

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

Similar topics

1
by: Fie Fie Niles | last post by:
I have IIS installed on XP Professional workstation machine. I have an ASP page that open connection to an Access database, then when trying to update the database, it gave me the error "cannot...
7
by: Graham Taylor | last post by:
I've tried posting this in the 'microsoft.public.access' but I will post it here also, as I think it might be the webserver which is causing my problem. --------- I have an Access 2003 database...
1
by: Bruce Hendry | last post by:
In a nutshell, I have a stored proc that takes appx 15 minutes when it uses a read-only database, and about 2 minutes when the database is not read-only. Details: SQL Server 7 The stored...
2
by: Trina | last post by:
Is there anyway to link tables between 2 Access databases with one of the databases being read only? On the other hand, would it be best just to create a user account that is read only? Trina
3
by: Dale Walker | last post by:
After a recent hard disk failure, I've rebuilt my PC (clean install) and uploaded the backed-up database. However, I can now only open the database in read-only mode. I did not set any special...
1
by: samuelgreene | last post by:
Hello, I have a front-end access db on a server share - the users should COPY the db to their desktop - but we know how that goes. I've tried to make it read only and have denied execute...
2
by: keithb | last post by:
This is on a remote server. Everything works in the development envirmonment. Any ideas? Thanks, Keith Failed to update database "C:\BTM_ROOT\APP_DATA\ASPNETDB.MDF" because the database is...
8
by: paquer | last post by:
Database Users need to have Read/Write etc... permissions to the folder where the Database resides in order to create the lock file. I have read only users. I have set up the Shortcut that links...
4
by: farhaaad | last post by:
Hi all, i wanted to know how can i make my mdb file read only recommended, i mean when the user opens the database with holding the SHIFT key it shouldn't be read only and when opening the...
3
by: JulesII | last post by:
Hi, I have a database which is able to show projects which are current and those which are archived. The users need to be able to search the archived data but are not allowed to edit it in anyway. ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.