473,788 Members | 2,841 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Server Compact Edition 3.5

bob
Hi,

VS2008 IDE Desktop app.

Anybody out there deploying this db?
I am finding a strange problem with column names.
I am using an SQLCeCommand to create a datareader.
I have a where clause that is refusing some of the column names.
Saying the column name is not valid.
The columns are visible in Server explorer.

It seems to be column names that where added later on in the tables
design.
example of problem
"select * from unit where parent_id = 1" //fails parent_id was added
after initial table construction

A third party Database console has no problems running the queries

SqlCeConnection conn = new SqlCeConnection (mstrConnection String);
//mstrConnection just has "DataSource = myFullPath\myda tabase.sdf

conn.Open();
string sql = "select * from unit where parent_id = 1";
SqlCeCommand cmd = new SqlCeCommand(sq l,conn);
SqlCeDataReader r = cmd.ExecuteRead er(); //DROPS DEAD
HERE

Appreciate any thoughts on the above.

Thanks
Bob
Jun 27 '08 #1
0 1073

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2182
by: NetIdiot | last post by:
I have had to install and uninstall VS.NET 2005 a couple of times because of some errors. The SQL Server express refuses to install ... and hence I can't most things I want to work on. I even tried installing an evaluation version of SQL 2000. It seems I haven't uninstalled in the right sequnce ... causing all the problems. Help please !!!!
2
2335
by: Earl | last post by:
Is there any sort of check that can be done to see if a particular instance of SQL Server is present? I already call a method to check for connection -- if no connection, I have the user re-enter server settings (server name and database name). But the connection check is made by calling for a scalar value in the database. What I'd rather do is graduate the error messages: 1. No server installed 2. Specified database name not installed...
6
2163
by: John | last post by:
Hi My app is running on a windows 2000 server with isa 2000 installed. How can it access an external sql server (using its ip) from within the isa 2000 firewall/proxy via code? Thanks Regards
0
1041
by: MZ | last post by:
Hello. Is there a possibility to use SQL Server 2005 Compact Edition with Visual C# 2005 Exoress Edition. I'm thinking about easy way (drag and drop) to build database application using embedded database file in graphical way - the same like building application connected to SQL Server 2005 Express? I found an info that it is possible only in Visual Studio versions starting from Standard version. Is that true? Thanks, Marcin.
6
13327
by: antonyliu2002 | last post by:
I was able to view table content easily before, but after I reinstalled everything, I cannot find the option to view table content in MS SQL Server Express. I can define table with no problem. Check out the screen snapshot below, from which you'll see that the popup menu frrom right-clicking on the table name does not have the "Open table" option. What is going on? http://farm1.static.flickr.com/167/426251515_b839620d0b_o.png
4
4101
by: Wolfgang Kraus | last post by:
Hi, i want to create a solution which shall consist of a sql server 2005 - data base (express edition if the following features are available by express edition) and a mobile windows application (running on a smartphone under windows mobile 5.0). The sql server shall be installed on a ordinary laptop using windows xp (not professionall edition).
7
6565
by: TerpZebra | last post by:
I am having difficulty connecting to SQL Server 2000 on one of our servers via a VB6 program on Vista. I can connect fine to a different server, but it gives me the following error with the server in question: "Unable to connect to database. Please check your internet connection Error# -2147467259 SQL Server does not exist or access denied"
1
6054
by: gerbrandc | last post by:
Hello, how can I insert into the sql compact edition 3.5 multiple rows. I have following query INSERT INTO network (name, adname, timezone) VALUES ('rm', 'rm', 1), ('pm', pm', 1) , ('PLURIELLES', 'PLURIELLES', 1), ('SPORTS', 'SPORTS', 1);
1
2197
by: Neil.Young | last post by:
Hi, I have written a WinForm app using VS 2008. The app uses LINQ to SQL for a SQL Server Compact Edition database. The Setup has only one requirement (by default): .net 3.5 runtime. Now I got a notice from a colleague of mine, reporting problems with running my app on Windows XP, SP 2, .net 3.5 runtime installed. This machine doesn't have any binaries of the Visual Studio environment installed, just plain ..net 3.5.
0
2032
by: sarabonn | last post by:
Hello everyone, Iam using visual studio 2008 and sql server compact edition 3.5. I created a windows application and when i try to add the northwind.sdf or even my own database(which i created) iam getting an error "the data provider required to connect to the local data file could not be found. the file will be added to the project but the typed dataset associated with the file will not be generated".. any idea...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10175
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10112
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.