SQL Everywhere SLSErver To SQLEv Without SSI && IIS

Jul 15, 2006

Due to client requirements i have found it necessary to write an application that moves data from SQL Server to SQLEv

To do this I open the SQLServer table and using a FOREACH Statement track through the table

I then cast each of the fields I require into a variable

Each record then calls and INSERT INTO statement to insert the data into SQLEV

One serious problem is how do I get round NULLs

ie if contents = (string)ditem["CONTENTS"]; returns a NULL it crashes

So I want something like

IF ditem["CONTENTS"] = NULL

contents = ""

else

contents = (string)ditem["CONTENTS"]



It is very slow the insert statement takes about .7 of a second (although it does seem to speed up)

I enclose a bit of the code

Get the required data

contents = (string)ditem["CONTENTS"];

metrics = (string)ditem["METRICS"];

pickface = (string)ditem["PICKFACE"];

profile = (string)ditem["PROFILE"];

stocktake = (DateTime)ditem["STOCKTAKE"]; //&& ditem["STOCKTAKE"] is DBNull;



// now update the database

this.iTEMTableAdapter1.InsertQuery(

isbom, vendno, item, posloc, desc,

longdesc,size,style,colour,classname,

upccode,upcinner,upcouter,upccase,cuscode ,status,

donhand,dphysical,dnumeric1,dnumeric2,

logic3,logic1,obselete,donorder,

contents,metrics,pickface,profile);

Any ideas please

Richard

View 4 Replies


ADVERTISEMENT

SQLEv && Blobs

Aug 17, 2006

I want to store message database in SQLEv. Each message contains fixed header and a body. Body is UTF-16 encoded text. Average size of the body is about 700 symbols. Standard deviation about 1000 symbols. Maximum size - 200K symbols. Total count of the messages is up to 2 millions.

The only type I can use for body is text or binary blob. But blob larger than 256 bytes store in separate pages. Because of most message bodies lager than 256 bytes, each message take avg. PageSize / 2 not used for storing data, but occupied space.

For 2M messages this space will be 4096 / 2 * 2M = 4G. But SQLEv has 4G limit for database size!

Is it any way to store such data in SQLEv more efficiently?

View 5 Replies View Related

Sqlev Maintenance Utility

Aug 21, 2006

Hi
We are devloping a database management utility for MSDE,sql server enterprise and sql EV
There are system queries available for performing index rebuild and setting minimum and max memory on msde and sql server by using the following statements below
"DBCC DBREINDEXALL(S)"
"SP_configure 'min server memory',1024 Reconfigure"
"SP_configure 'max server memory',6144 Reconfigure"
But is there a way I can perform the same on SQL Ev. I tried using the above statements, but it doesn't work out, can anyone help me with statements specific to SQL Mobile or Ev.

View 3 Replies View Related

|DataDirectory| - Minor Issue SQLev

Oct 16, 2006

It seems that the |DataDirectory| macro is giving VS 2005 fits. It's a minor issue though and I've stumbled on it recently.

The issue actually doesn't come up until you try to "add a new data source" to your project (after you've made the modification in your app settings/Project Properties to use the macro). So if you started of with ".something.sdf" and then changed it to use the macro, things do run fine....until you try to add a new datasource (new database datasource)

The error is: "Illegal characters in path" which is the pipe symbol.....

While on this subject, here's a tip to those who maybe going through some debugging mysteries:

Even if your sdf file is in your app "root" folder, if you debug, the file your app is actually working on is in the "indebug" folder. So it pays to create another connection in your Server Explorer to this file while debugging.

I spent quite some time trying to figure out why my code didn't seem to be working and got even more frustrated since obviously no errors were reported. Turns out I was looking at the wrong db file....hope this helps...

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved