Reputation: 1
This is our environment:
Visual Studio 2008
Handheld: Datalogic X4 Skorpio WE7 (Don't have another WE7 device yet to see if the behavior is the same)
System.Data.SqlServerCe.dll
: 3.5.8080Here is what we are experiencing:
When attempting to apply an INDEX to any table of any .SDF
file, it executes okay and applies the constraint. This Index can be done through code or through a database viewer such as sdfviewer. The issue is only evident when the .SDF
has been sent to the X4 skorpio. What happens is, any column that has an INDEX constraint applied to it fails to return anything but a 0 when queries (i.e. SELECT * FROM Users WHERE [TheIndexedColumn] = 'Bananas'
returns 0, Banana's exist but if you do 'SELECT * FROM Users', you get all the columns.).
Example: table Users
UserID (INT or BIGINT or NVARCHAR) – This is the primary key and also indexed
Firstname (NVARCHAR)
LastName (NVARCHAR)
...
Let’s say that this Users
table has been populated with many users with first name and last names (unique users). If we were to query the UserID
column, we get a result of 0. If the index is removed, we are able to apply many different queries successfully.
Opening the .SDF
file using an sdf viewer shows no sign of corruption (from what we can see). On the Datalogic X4 device, the database is able to be opened and closed without any runtime errors.
Are there any scenarios where this issue doesn’t exist?
Please refer to this table to see where it works without fault
Troubleshooting findings so far:
.SDF
(database file) behaves normally if being deployed (database opened and closed) from a Windows 7 environment.SDF
file that has been kept on a Windows 7 machine to the Skorpio X4, the application behaves fine.Any assistance would be highly appreciated as we have exhausted all options so far. Using Windows 7 is not an option :(
Upvotes: 0
Views: 161