Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server CE / March 2008

Tip: Looking for answers? Try searching our database.

sqlserver compact 3.5 - double precision in tables not possible

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aberger@nemetschek.de - 13 Mar 2008 21:52 GMT
Hi,

I'm evaluating sqlserver compact and I have detected an ugly
restriction.
Apparently, its not possible to create a table containing 'double
precision' values, like

Create Table myTab (myDbl DOUBLE PRECISION);

The result is:
SQL Execution Error.
Executed SQL statement: Create Table myTab (myDbl DOUBLE PRECISION);
Error Source: SQL Server Compact ADO.NET Data Provider
Error Message: There was an error parsing the query. [ Token line
numer = 1, Token line offset = 27, Tiken in error = DOUBLE ]

While spending some time with the problem, I have found MS
documentations that claims double precision is a valid data type for
sqlserver compact. This is also what I expect from a database system.

I got the sqlserver compact 3.5 by installing VS 2008. I also ran an
update to the latest runtime version, but this seems to have changed
nothing.

I use ADO from unmanaged C++ to access the sqlserver compact database
files which works fine so far.

ADO::Connection::GetProvider() returns: Microsoft.SQLSERVER.CE.OLEDB.
3.5
ADO::Connection::GetVersion() returns: 2.8

Using a NUMERIC datatype may be a workaround but how to get a NUMERIC
into a ADO::Command parameter in C++?
In my application its essential to store double values (64 Bit) and
run selects against it.

Has anybody hints or a solution for this?

thanks & regards
Axel
ErikEJ - 14 Mar 2008 07:18 GMT
The supported data types are listed here:
http://msdn2.microsoft.com/en-us/library/ms172424(SQL.100).aspx

Signature

Erik Ejlskov Jensen, Mobile App Dev MCTS
Check out my SQL Compact blog at
http://erikej.blogspot.com

> Hi,
>
[quoted text clipped - 36 lines]
> thanks & regards
> Axel
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.