C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » SQL Server »

How to enter values into sqlce data table


Posted Date: 06 Nov 2009      Posted By: kumari      Member Level: Silver     Points: 1   Responses: 2



I have 1 sqlce table i.e domain list.In this table i have 2 columns i.e domain id,domain name.Domain Id automatically coming.I have to insert values into in this table i used the following query.
INSERT INTO Domain List
(DomainID, DomainName)
VALUES
(1, 'ibm')
But iam getting the following error.
Major Error 0x80040E14, Minor Error 25501
> INSERT INTO Domain List
(DomainID, DomainName)
VALUES
(1, 'dow')
There was an error parsing the query. [ Token line number = 1,Token line offset = 20,Token in error = List ]
Whats the problem.can you please verified.





Responses

Author: soniumesh    06 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi,

You said domainid is automatically coming why you insert domainid?
Second thing never use space in table name.

Regard,
umesh soni



Author: Manick    06 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

As you said domain_id created automatically. So you have to give the domain_name while inserting.

Regards,
Manick



Post Reply
You must Sign In to post a response.
Next : Query Plz!!
Previous : Error occured while attaching the database
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use