SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Access Denied of the SDF in mode ReadOnly


Access Denied of the SDF in mode ReadOnly

Author
Message
leonardosalvatore
leonardosalvatore
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 5
Hi,
i'm planning to use SqlServerCe that read SDF file from DVD rom.
To do that, I started with that connection string:
 String.Format("Data Source = Database1.sdf;Mode = Read Only;Temp Path={0} ;Persist Security Info=False;","c:\\ASpecialFolder");



This application, open, read and close the database.
If i run the application on the DEV machine (vista 32, vs2008 sp1,sqlserverce sdk) all run well, from CDROM,DVD,or a local disk folder.
Instead from others machine (2003,xp or vista) nothing .. error with this excetpion (inner was null)...


Message: Permission denied.
Source: SQL Server Compact ADO.NET Data Provider
StackTrace: at System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
at System.Data.SqlServerCe.SqlCeConnection.Open()
at ConsoleApplication2.testservice.GetDBInfo() in C:\X\Test\ConsoleApplicatio
n2\ConsoleApplication2\testservice.cs:line 46
at ConsoleApplication2.Program.Main(String[] args) in C:\X\Test\ConsoleApplic
ation2\ConsoleApplication2\Program.cs:line 19

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search