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 / October 2007

Tip: Looking for answers? Try searching our database.

SQL Server Mobile and SQL Scripts.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Vaccaro - 16 Oct 2007 18:16 GMT
I have an application written in another language (CASL) on a Windows Mobile
platform and I want to convert the databases to SQL Mobile so that I can
create a version of my app for Smartphones. The databases for the CASL app
use a single table that has 17 columns and anywhere from 100 plus to 700
plus records. There are 72 databases in all; 36 data tables and 36 index
tables. The index tables have 4 columns and less than 100 records each.

I am creating the tables on the emulator since, for some reason or the
other, running a Create Table script in the VS IDE seems to bomb out. The
Insert Table script also bombs our in the VS IDE. I have the tables
completed and wrote a little app that creates the SQL scripts of the data
from a CSV file. Two things are happening: 1) the script is truncated
somewhere around the 246th record and 2) the script doesn't execute unless I
do one Insert command at a time.

The first one I can fix by cutting the SQL script files into smaller files.
The second problem is a major issue. Query Manager in SQL Mobile doesn't
like the GO command after each insert and removing the GO command crashes at
the second Insert of the script. Is there any way to run a SQL script of
more than one command without having to do it one command at a time? The app
is a freeware app and I don't want to spend that much time just creating a
database. All of the scripts work perfectly in SQL Server 2005.

Thanks,

John
Erik Ejlskov - 20 Oct 2007 16:18 GMT
You should consult the book by Bill Vaughn, he has the sceleton for a sqlcmd
utility for SQL Compact.
http://www.hitchhikerguides.net/EBooks/5582.aspx

Signature

Erik Ejlskov Jensen
- see my SQL Compact blog at
http://erikej.blogspot.com

>I have an application written in another language (CASL) on a Windows
>Mobile platform and I want to convert the databases to SQL Mobile so that I
[quoted text clipped - 24 lines]
>
> John
John Vaccaro - 20 Oct 2007 23:29 GMT
Erik,

Thanks for the response. I actually did it a different way; by using the CSV
files that I used to create the scripts with and writing a little app that
will populate the tables on the emulator. Worked out real nice, but I'm sure
it was much slower than Sql Scripts.

I will look into that e-Book.

John

> You should consult the book by Bill Vaughn, he has the sceleton for a sqlcmd
> utility for SQL Compact.
[quoted text clipped - 33 lines]
> >
> > John
Jin - 22 Oct 2007 02:52 GMT
> Erik,
>
[quoted text clipped - 53 lines]
>
> > > John

When performing bulk inserts (using CSV or other techniques), I found
the following article very useful:

http://www.pocketpcdn.com/print/articles/?&atb.set(c_id)=74&atb.set(a_id)=11003&
atb.perform(details
)=&

- Jin
John Vaccaro - 22 Oct 2007 12:37 GMT
Thanks,

I checked that site before I started migrating the data but I must have
missed the article. Since the database is done, I will keep the link for
future reference

John

> > Erik,
> >
[quoted text clipped - 56 lines]
> When performing bulk inserts (using CSV or other techniques), I found
> the following article very useful:

http://www.pocketpcdn.com/print/articles/?&atb.set(c_id)=74&atb.set(a_id)=11
003&atb.perform(details)=&

> - Jin
 
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.