CorrectFilePaths & SQL Compact Edition problems
Hello,
I've got some problems using Application Compatibility Tool and the CorrectFilePaths fix for one of our Applications that use MS SQL Compact Edition 3.5 SP2 for storing users settings.
We are using redirected AppData Roaming (points to P:\Profiles\AppData, P:\ is a network drive), the issue originated with some users having trouble running 2 or more instances of the application. SQL CE only allows ONE process to write to the .sdf file
if it's on a network drive. This is not the case if the .sdf is on a local drive, ex. in C:\Users\%username%\AppData\Local, so I thought I'd try to use CorrectFilePaths to redirect that .sdf to the local appdata folder.
After many tries to redirect just the .sdf and no luck I decided to try to redirect the whole application folder in Roaming AppData to the Local AppData, this seems to work for everything except the SQL CE .sdf file.. D'oh!
The command I've used with CorrectFilePaths: "%userappdata%\Infor;%userprofile%\AppData\Local\Infor"
Some info from Process Monitor:
14:07:18,6760837 MangoClient.exe 4452 CreateFile C:\Users\xxx\AppData\Local\Infor\Infor Smart Office\S0\U0\Local\DB\Mango.sdf PATH NOT FOUND Desired
Access: Read Attributes, Dis, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
14:07:18,7130720 MangoClient.exe 4452 CreateFile C:\Users\xxx\AppData\Roaming\Infor\Infor Smart Office\S0\U0\Local\DB\Mango.sdf PATH NOT FOUND Desired
Access: Read Attributes, Synchronize, Dis, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: None, AllocationSize: n/a
Error in the applications log file:
27.08.2014 14:07:18 ERROR Mango.Core.Persistance.DataBase.CreateDatabase COR0001 The SQL CE database could not be created from the connection string Data Source="C:\Users\xxx\AppData\Roaming\Infor\Infor Smart Office\S0\U0\Local\DB\Mango.sdf";LCID=1033.
Functions depending on database will not be available.
The path is not valid. Check the directory for the database. [ Path = C:\Users\xxx\AppData\Roaming\Infor\Infor Smart Office\S0\U0\Local\DB\Mango.sdf ]
Anyone know how I can get this to work? :)
14:07:18,6760837 MangoClient.exe 4452 CreateFile C:\Users\xxx\AppData\Local\Infor\Infor Smart Office\S0\U0\Local\DB\Mango.sdf PATH NOT FOUND Desired
Access: Read Attributes, Dis, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
14:07:18,7130720 MangoClient.exe 4452 CreateFile C:\Users\xxx\AppData\Roaming\Infor\Infor Smart Office\S0\U0\Local\DB\Mango.sdf PATH NOT FOUND Desired
Access: Read Attributes, Synchronize, Dis, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: None, AllocationSize: n/a
Hi,
According to the Process Monitor information, the path you try to create file is not exit. Please confirm the path or file name correct.
According to the error message:
Functions depending on database will not be available.
The path is not valid. Check the directory for the database. [ Path = C:\Users\xxx\AppData\Roaming\Infor\Infor Smart Office\S0\U0\Local\DB\Mango.sdf ]
It's functions problem, please check it. If so, I think maybe it would be better to provide this question at SQL forum.
Contact SQL Server:http://social.technet.microsoft.com/Forums/en-US/home?category=sqlserver
Roger Lu
TechNet Community Support
Similar Messages
-
Encryption algorithms used in SQL Compact Edition 3.5
Hi,
In the info for SQL Compact Edition 3.5 it states that one of the features is:
Support for newer and more secure encryption algorithms.
I can't seem to find details of exactly what these new, more secure algorithms are. It appears 3.1 used 128-bit RSA. Is this the same in 3.5, or has this changed?
ThanksThe official word is now out here: http://209.34.241.67/laxmi/archive/2008/04/15/sql-server-compact-database-file-security.aspx
-
Is Compact Edition still the best small database choice?
I need a compact database to use with my Windows Form application. What is the best version of SQL Server to use? I see Compact Edition 4.0, however it looks like a couple of years old now.
TIA,
Miles
Miles GibsonMS SQL Server has been released in various versions and editions. Please see these links to find what is best for your application:
Features Supported by the Editions of SQL Server 2014
SQL Express v LocalDB v SQL Compact Edition
T-SQL Articles
T-SQL e-book by TechNet Wiki Community
T-SQL blog -
Inserting data to a . SDF database (SQL Server Compact Edition connection)
Hi, all.
I'm working on a project that worked fine while connecting to SQL Server 2008. I used a connection string like this:
Driver={SQL Server Native Client 10.0};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
Now, I've replaced all database connections in my project to work with SQL Server Compact Edition, and my connection string is something like this:
Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=myDir\myDataBase.sdf;
After changing the type of connection, I'm getting an error on "DB Tools Insert Data.vi". This is what I get:
Error -2147217872 occurred at NI_Database_API.lvlib:Cmd Execute.vi->NI_Database_API.lvlib: DB Tools Insert Data.vi->Main.vi
Possible reason(s):ADO Error: 0x80040E30 Exception occured in Microsoft SQL Server Compact OLE DB Provider: The given type name was unrecognized. [,,,,,] in NI_Database_API.lvlib:Rec Create - Command.vi->NI_Database_API.lvlib:Cmd Execute.vi->NI_Database_API.lvlib: DB Tools Insert Data.vi->Main.vi
This is a simplified block diagram (as I said, it worked perfectly while using SQL Server 2008 connection):
Could you please help me?
Thanks in advance,
FranciscoHi, Steve. Thanks for your answers.
I worked around this problem by using directly a SQL query instead of this function (you were right, using DBTools Execute Query VI). But now I'm getting problems with other functions, when inserting data into the DB including NULL values.
I make a SQL query like this using DBTools Execute Query VI:
INSERT INTO Table1 (Column1, Column2, Column3, Column4, Column5, Column6) VALUES ('Value1', 'Value2', 'Value3', 'NULL', 'Value5', 'Value6')
and get the following error:
ADO Error: 0x80040E07Exception occured in Microsoft SQL Server Compact OLE DB Provider: A literal value in the command could not be converted to the correct type due to a reason other than data overflow. [,,,,,] in NI_Database_API.lvlib:Conn Execute.vi->INSERT (new) restricción (DBCT).vi->Restricciones a Base de Datos (DBCT).vi->Definir - editar restricciones.vi->Main.vi
The same SQL query worked perfectly when using the SQL Server 2008 connection, so it's not a database structure issue.
Could somebody please help me?
Regards,
Francisco -
JDBC driver for SQL Server Compact Edition
Hi,
I'm trying to run pc java application on Pocket Pc (Mobile 5.0) with SQL Server Compact edition.
The error message is:
java.lang.UnsatisfiedLinkError: java/sql/DriverManager.getCallerClassLoader()Ljava/lang/ClassLoader;
at java.sql.DriverManager.getConnection(Unknown Source)...
Should I use a special jdbc driver for SQL Server Compact Edition? Is there one?
MixxoHi,
I got an answer from msdn forum:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2307542&SiteID=1.
There is no jdbc driver for SQL Server Compact Edition. OleDB and ADO.net are available. Now I need to know how to use them (in Java)...
Thanks, Mixxo -
Northwind sample and SQL Compact 3.5 (PROBLEMS)
using vb express
I'm totaly new to the VB and SQL
Using the Learn VB and getting to the part about "Displaying Related Data"
When I try to add a connection
Using SQL Server Compact 3.5 as a Data Source
Using (C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Samples\Northwind.sdf) as Database
no password
hit ok
and I get the error access to the database is not allowed. [file name = C:\Program files\microsoft SQL Server Compact
Edition \v3.5\Samples\Northwind.sdf]
What Am I doing wrong. It can't be that hard, IS IT?For diagnostic purposes, try the following.
Create a new project; a VB Windows Forms project.
In the Data Sources view, create a data source for:
C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Samples\Northwind.sdf
If you do not understand that, then ask for clarification. If the wizard says that the database is not part of the project, then answer the question by saying no, that you do not want a copy made. However note that that (let the wizard make a copy) is probably what you actually want to do for development purposes, but for now, we want to test the situation where you read from the original copy.
In the "Choose Your Database Objects" page, choose (put a check in a checkbox) a table and only one table; any table. The important thing is to select at least one table; it will likely work if you select all tables.
Now, be sure that the form is being viewed in design view. If you have just now created the project, then the form is being viewed in design view. In the Data Sources view, click on the table (a table) and there will be a drop-down box; select DataGridView. Then drag the table and drop onto the form. Adjust the size and position to your preferences. Compile and test that. Note that you do not need to add or modify any code yourself, but you can put the following in the
Form1_Load event to verify that the datasource is what you think it is:
Code SnippetMessageBox.Show(Me.CategoriesTableAdapter.Connection.ConnectionString)
Note that this program is only reading; it is not updating but I think that the connection is capable of updates. The important thing is to determine if you can do this much; I can and I do not remember if I made any modifications to allow it to happen. I might have modified the security on the file to allow update access; I am not sure. -
SQL Server Compact Edition 3.5 C++ Sample
Hi,
I am looking for C++ example using SQL Server Compact Edition 3.5.
I managed to compile and run the "northwindoledb" c++ example, but still, I am looking for source code to 3.5 (And not 3.1).Hi,
Someone on this post asked about sample code. I am here, posting sample code to talk to SQL Compact 3.5.
CoCreateInstance(CLSID_SQLSERVERCE, NULL, CLSCTX_INPROC_SERVER, IID_IUnknown, (void **)&pDSO);
pDSO->QueryInterface(IID_IDBProperties, (void**)&pIDBProp);
hr = pIDBProp->SetProperties(cPropSets, pDbPropSet);
pDSO->QueryInterface(IID_IDBInitialize, (void**)&pIDBInit);
hr = pIDBInit->Initialize();
pIDBInit->QueryInterface(IID_IDBCreateSession, (void **) &pIDBCSession);
pIDBCSession->CreateSession(NULL, IID_IUnknown, (LPUNKNOWN *) &pDBSession);
pDBSession->QueryInterface(IID_IDBCreateCommand, (void **)&pIDBCreateCommand);
pIDBCreateCommand->CreateCommand(NULL, IID_IUnknown, (IUnknown **)&pCommand);
hr = pCommand->QueryInterface(IID_ICommandText, (void **)&pICommandText);
hr = pICommandText->SetCommandText(DBGUID_DBSQL, (LPCOLESTR)pszSQL);
hr = pCommand->QueryInterface(IID_ICommand, (void **)&pICommand);
hr = pICommand->Execute(NULL, IID_NULL, NULL, NULL, NULL);
and CLSID_SQLSERVERCE for 3.5 is (As you might already know)
GUID CLSID_SQLSERVERCE = {0xf49c559d, 0xe9e5, 0x467c, {0x8c, 0x18, 0x33, 0x26, 0xaa, 0xe4, 0xeb, 0xcc}};
Thanks
Udaya -
I've installed & uninstalled MS SqlSever 2005 in my system (OS - Windows 8). When am try to access my photo gallery on desktop, I'm getting above mentioned error. How come photo gallery is dependent on MS SqlServer 2005 compact edition? Now,
I've installed & using MS SqlServer 2008.ErikEJ,
I tried the link you provided and it points to the SQL Server 2005 Compact Edition that will not install in Windows 8. IS there some other package you are trying to send us to? I cannot install / run Photo Gallery because it needs SQL Server 2005 Compact
Ed and the latter when run reports it is not compatible with my operating system, ie., Windows 8 Pro, x64.
Can you help?
TigerWizard
Brenda W [email protected]; [email protected] -
Remote sql server 3.5 compact edition
hi sir,
what is the correct vb.net remote connection string for sql server 3.5 compact edition if my database is inside vps or from remote computer?
thanks in advancedYou cannot access a SQL Server Compact dataabase remotely, use SQL Server Express instead.
Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com -
I have downloaded the MS Security Compliance Manager, which is in two parts: MS SQL Server 2008 Express Edition & the SCM. The install instructions state the the server needs to be install before the SCM. So as the install continues I get
an error message, which cancels the installation. So, I am trying to install SQL 2008 EE separate from SCM. My question is:
Can I upgrade from my current SQL Server 2005 Compact Edition [ENU]
directly to SQL Server 2008 Express Edition (or higher)?So as the install continues I get an error message, which cancels the installation.
And which error message did you got?
SQL Server Compact Edition is something different then SQL Server Express (or Standard) Edition, you can't upgrade it as you asked for,.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
SQLite, Firebird or SQL compact
Hi All,
I'm trying to replace an existing applications use of text and excel files for data storage with an embedded database model. I've narrowed it down to 3: Sqlite, Firebird, and Microsofts SQL Compact.
For simplicity i like sqlite, but i'd like some thread safety, and concurrency.
My biggest hang up in trying to finalize my decision, is that in the future i'll want to query another database (i.e query a customer's remote database to retrieve employee passwords) or allow another database to insert or query my tables to retrieve operational data. My google-fu is strong, but I have yet to see examples or read documentation that specifically mentions whether this is possible. What's the correct terminology? I've seen discussions about linked databases (pros and cons), as well as cross database queries, but never a definitive "Yes, i did this... and it worked". It could be so commonly done that noone mentions it, and i'm just retarded. :-/
If i adopt Firebird, will a customer with SQL Server just be able to use an odbc connection to interact with my database? It's got to be a simple thing, i'm just missing it.
Please help me put this monkey to rest.NI has a design pattern solution for SQLLite that even works on their CompactRIO RT controller hardware to use SQLLite from within LabVIEW. And http://www.ch-werner.de/sqliteodbc/ shows an ODBC driver for SQLLite. There are of course problems since the ODC driver contains the actual SQLLite engine and accesses the database file. So remote access through ODBC seems not trivial, though you could of course share the database file over the network and access it through an ODBC driver installed on a different computer. This probably still leaves the difficulty how to deal with concurrent access to the database file if your client tries to query the database file at the same time as your application has it open to write or query data from it.
Firebird also has an ODBC driver: http://www.firebirdsql.org/index.php?op=files&id=odbc. Firebird seems to either have a filebased access model that does allow concurrent access to the same database as well as a so called super server mode, where a service process controls access to the database file(s) and access is done through network communication to this service process. Not sure if the ODBC driver supports the super server mode transparently but if it does this would be a very easy solution to have your application use the database to store date and allow your clients to query the database from other computers directly.
Microsoft SQL Compact I'm not sure. If this is what was before the SQL Server Desktop Edition, then it is basically a full featured SQL Server installation with the database size limitation to 2GB. This would certainly work also with remote access through ODBC and/or ADO .Net. But if you have ODBC drivers for your database you can basically access it through ADO ActiveX or ADO .Net as well and it doesn't even have to be slower if the driver and interface are done well.
Message Edited by rolfk on 03-23-2010 09:15 AM
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Which sql server edition is better for client application?
Hello all,
Iam going to create Point Of Sale system using winforms. I want such type of database which should not install when installing POS setup and should be lightweight also and work without having to install. I have heared about LocalDB and sql server compact
editions.
So my question is which one is more better and light weight and should not install on client computer but still work ???
please note: iam using sql server express 2012 this time which install on client system(which i dont want to install). And also i have written so many stored procedure to communite between frontend and backend. Please suggest which one is better.
Thanks in advanceIt depends on many things mostly related to business requirements.
http://msdn.microsoft.com/en-us/library/cc645993.aspx
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Hi there,
Can I use MS. SQL Developer Edition for SAP Web Application Server Java 6.4 SP3 ? I've a problem during installation of SAP WAS 6.4 SP3 that came up with Enterprise Portal on MS SQL-Developer Edition-Sneak Preview Package.
Thanks in advance for any info.
Cheers,
DannyHello Danny,
have a look at this thread: Re: Inst. EP6.0 SP2 with MSDE 2000. It helped me installing the MSDE correct. Have you tried the SDN Forums search engine?
Regards
Gregor -
Hi,
I was wondering if anyone could tell me whether it's possible to install SAP onto Microsoft's SQL Developer Edition in Pre-Production platforms. Microsoft state publicly that Developer Edition has all the functionalilty of Enterprise and is essentially a rebadged Enterprise Edition with a development-centric Licensing model.
Furthermore, I understand that Microsoft's licensing documents cite a three tiered environment approach - Dev, Test and Prod - using Enterprise in production and Developer Edition in Dev and Test, as per pretty much any other SQL based environment.
I understand that the SAP system installation can be carried out manually (as opposed to the VBS scripted method), allowing the use of non-SAP provided media for the SQL installation but I'm unsure as to whether it will accept the Developer Edition installation at this point.
Thanks
WHi,
SQL Server 2000 and SQL Server 2005 are only tested in the Enterprise Edition by SAP. Therefore, only the Enterprise Edition is supported. The SAP support may not be able to solve problems that occur with other editions
if you want to try to use Developer Edition you need to install it manually check the installation document to install SQL server manually but do it as your own risk as SAP support is concern
regards,
kaushal -
How to solve Oracle SQL Developer connection problem ?
Folks,
Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
My OS is Linux and connects to internet successfully.
In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection Name: DB1 (this is my database name as well)
Username: SYS (this is the user name I used to login to the Console)
Password: SYS (this the password used to login to the Console)
Connection Type: Basic
Host Name: localhost
Port: 1158
SID: DB1 (this is created during installing the Database)
But the error message comes up: "Status: Failure - IO exception Connection Reset."
Can any folk tell me how to solve Oracle SQL Developer connection problem ?user8860348 wrote:
Folks,
Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
My OS is Linux and connects to internet successfully.
In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection Name: DB1 (this is my database name as well)
Username: SYS (this is the user name I used to login to the Console)
Password: SYS (this the password used to login to the Console)
Connection Type: Basic
Host Name: localhost
Port: 1158
SID: DB1 (this is created during installing the Database)
But the error message comes up: "Status: Failure - IO exception Connection Reset."
Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
password: enter_your_correct_password given at the time of oracle installation
role: select sysdba if you would connect as sysdba else select normal for users other than sys
hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
to find the hostname open terminal/command prompt in oracle installed machine
type ---> hostname
type ---->ping hostname
you can find the ipaddress of the server
port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
SID: DB1
try it
Good Luck
Maybe you are looking for
-
How to add a symbol to existing keyframes
I have completed a bunch of keyframes with 2 symbol on each moving around. Now I want to add another symbol that will be static. That is, at the same position in each keyframe. How can I add the new symbol to 250 keyframes that are already set and
-
Problem with ringtones after update
I ran a major update yesterday and now my purchased ringtones are not on my phone. They still appear in the itunes library, but they will not synch.
-
I am not able to burn DVD on my Satellite A60
Hi! I have a Toshiba Satellite A60 with a Pioneer DVD-RW DVR-K13A. And Every time I try to burn a dvd it doesn't work. The drive detects the dvd but I can't burn it. I've tried several burning programs such as Record Now! and Intervideo WinDvD Creato
-
Actions not displaying in Overview for ONE user ID
Hi Frnz... For only ONE user ID Actions not displaying in Overview tab. For this User ID Overview details are visible for some Employee IDs and for some its not visible. Already checked Roles & Authorisations and IT 0302 & 0000 are active. Have also
-
VPN between Mac and Windows? share printer and USB drive
Hey everyone, I'm out at college and have a Windows SP2 desktop set up in my room with the printer and our external hard drive. I travel around campus with my macbook pro (10.5), and it'd be really nice to access the printer and my external hard driv