C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to rename SQLCe database Table name using .Net CF?


Posted Date: 07 Aug 2008      Total Responses: 3

Posted By: G.Joychandrasekaran       Member Level: Silver     Points: 1



Dear all,

I am developing Pocket PC application with help of .Net CF and SQL CE database.

My one of the scenario i needed to rename the particular table name.

Actually in SQL server 2005 having a command 'sp_rename', its working with sql server 2005. but its not supporting in .NET CF.

Help me anyone know.






Responses

Author: Vidhya    07 Aug 2008Member Level: GoldRating:     Points: 5

hi,

sp_rename: Changes the name of a user table in the current database. Currently, sp_rename support in SQL Server Compact 3.5 is limited to tables.



sp_rename [ @objname = ] 'object_name' , [ @newname = ] 'new_name' [ , [ @objtype = ] 'object_type' ]
In the following example I will demonstrate it's use (using the VS 2008 beta 2 Server Explorer):

The current tablename is Test.

Run the sp_rename command, with the 2 parameters: Old name and new name

The query parser complains.

Do a refresh...

And voila... all from plain old T-SQL!

Happy programming!



Author: G.Joychandrasekaran    08 Aug 2008Member Level: SilverRating:     Points: 3

First of all thanks for your response,

Actually i tried this in SQL server its working fine,

But i cannot do this same in SQL server CE.

Actually i am using SQL CE 3.5 in my mobile.

I expecting more on this.



Author: syed shakeer hussain     01 Dec 2008Member Level: GoldRating:     Points: 5

Hi.

You can you tell me how to store data permenanly in a mobile database.
Actually my problem is ,when i insert values using sqlce ,it is storing in mobile and i can see what values i had inserted.but when my mobile application is closed completly and re-opend again the previous data what i had stored in mobile that data is not present.

why it is happening can you send a little code for inserting data



Post Reply
You must Sign In to post a response.
Next : How to execute web mobile applications in Black Berry simulator in asp.net
Previous : C# and mssql compact problem
Return to Discussion Forum
Post New Message
Category: Smart Devices

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use