IT Community - Software Programming, Web Development and Technical Support

GUI way for DB and tables in mobile devices

This is a discussion on GUI way for DB and tables in mobile devices within the Windows Mobile forums, part of the Mobile Software Development category; Hi all, I need to create db and create table there in mobile device. I have already created the database ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development > Windows Mobile

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-30-2007, 11:35 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Question GUI way for DB and tables in mobile devices

Hi all,

I need to create db and create table there in mobile device.

I have already created the database itself on the device, but I need a way to add tables and columns to those tables and establish relationships. Is there a GUI way to do this?
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-01-2007, 02:50 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
amansundar is on a distinguished road
Exclamation Re: GUI way for DB and tables in mobile devices

Are you using vs2005?
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-04-2007, 11:13 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Question Re: GUI way for DB and tables in mobile devices

Yes...

I'm using VS.2005. I've added the database as a datasource and I can create the tables and stuff that way, but it appears that it's only a dataset and not the actual database file.

Is there a quick way I could just update my dataset to the database?
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-16-2007, 03:03 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
amansundar is on a distinguished road
Smile Re: GUI way for DB and tables in mobile devices

Hi friend ,

I prefer to create the DB objects through code - it's rather simple...

But to do it from VS 2005

VIEW menu - Server Explorer. You will see Data Connections - ADD connections. I left it selected to My Computer - browsed to a folder where the SQL CE db was - put in the password - tested the connection - all that worked.
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-16-2007, 10:19 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Smile Re: GUI way for DB and tables in mobile devices

Thanks!

I've created my tables and columns using code,

How do I assign a column as the primary key?

Is there a way to get it to auto increment as I add new records?
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-19-2007, 01:18 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 324
amansundar is on a distinguished road
Smile Re: GUI way for DB and tables in mobile devices

Hi buddy...


Code:
Create Table XYZ (Col1 int identity, Col2 nvarchar(1), Primary Key (Col1))
I believe that's the SQL CE syntax for auto-increment (identity) and how to create a primary key.
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-26-2007, 06:45 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: GUI way for DB and tables in mobile devices

When I try to create it on my computer it gives me an OK on test connection, but when I try to hit next, it fails and says it can't access the file.

It works fine when I create it on my device though, but I still end up with a dataset and not the actual database file in datasources explorer.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-28-2007, 09:49 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Smile Re: GUI way for DB and tables in mobile devices

...

I'll give your code a try, thanks again for the help. More to come I'm sure.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the cache sizes for mobile devices? S.Vinothkumar Windows Mobile 6 11-20-2007 01:45 AM
How Can we search Bluetooth Devices using C# for windows mobile? mobilegeek Windows Mobile 2 08-17-2007 08:07 AM
VISTA - Able to use Concurrent Devices prasannavigneshr Operating Systems 8 08-02-2007 04:07 AM
Can I nest tables within tables? oxygen HTML, CSS and Javascript Coding Techniques 2 07-27-2007 03:33 AM
Any idea about Connecting Windows Mobile to Wireless HID devices? itbarota Windows Mobile 0 07-23-2007 07:12 AM


All times are GMT -7. The time now is 03:22 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0