﻿<rss version="2.0"><channel><title>sqlexpress</title><link>http://news.xb2.net/sqlexpress</link><description /><lastBuildDate>Fri, 16 May 2008 15:23:45 GMT</lastBuildDate><generator>MPNews http://www.messagepixels.com</generator><ttl>10</ttl><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/594/Re%3a+MULTITHREADED+QUESTION.html</guid><title>Re: MULTITHREADED QUESTION</title><pubDate>Wed, 15 Nov 2006 11:48:41 -0500</pubDate><link>http://news.xb2.net/sqlexpress/594/Re%3a+MULTITHREADED+QUESTION.html</link><comments>http://news.xb2.net/sqlexpress/594/Re%3a+MULTITHREADED+QUESTION.html</comments><author>edimail3@news.nmsc.gov</author><description>&lt;pre&gt;If I run the backup command from the architect my web application functions 
normally.  I used the backup function to demonstate that a statement that 
takes a long time will hault all other statements until it's complete.  I 
will test further but it seems to be a problem with accessing the database 
through odbc.  I will post the question on the advantage website .

Thanks,

Erik


&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message 
news:Xns987C4849D5461SQLExpress@80.32.233.35...
&amp;gt; Hi Erik,
&amp;gt;
&amp;gt; This is really a question for ADS tech support.
&amp;gt;
&amp;gt; I suppose that ADS is locking the database while the backup operation is
&amp;gt; executing. I don't think it has anything to do with ODBC and/or
&amp;gt; SQLExpress, it's just the way ADS is designed.
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools
&amp;gt;
&amp;gt; edimail3@news.nmsc.gov wrote in
&amp;gt; news:h5kb4b7yjc0mrmw.151120060336@ANDREA:
&amp;gt;
&amp;gt;&amp;gt; I am having a problem on a xb2.net/sqlexpress/ads web bases
&amp;gt;&amp;gt; application. All libraries are the latest version.  If one thread
&amp;gt;&amp;gt; executes a statement like this:
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; PROCEDURE BU_SYSTEM()
&amp;gt;&amp;gt; LOCAL cStmt := &amp;quot;EXECUTE PROCEDURE
&amp;gt;&amp;gt; sp_BackupDatabase('\\SERVER2\VOL2\Backup\LIVE','')&amp;quot;
&amp;gt;&amp;gt; LOCAL oStmt:=NIL
&amp;gt;&amp;gt; LOCAL oConn := TASK_CONNECT_SQL()
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; oStmt := oConn:NewStatement()
&amp;gt;&amp;gt; oStmt:SQLString := cStmt
&amp;gt;&amp;gt; oStmt:Execute()
&amp;gt;&amp;gt; oStmt:Destroy()
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; RETURN
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; ALL other threads are &amp;quot;paused&amp;quot; until this statement completes.  The
&amp;gt;&amp;gt; TASK_CONNECT_SQL() function opens a new connection to the ADS server
&amp;gt;&amp;gt; so there is not a problem with the requests being &amp;quot;serialized&amp;quot;.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Am I mission something -or- is the ads odbc/sqlexpress combination
&amp;gt;&amp;gt; unable to process multiple statements at the same time?
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Any information on this appreciated.
&amp;gt;
&amp;gt;&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/594</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/595/Re%3a+Problems+reaching+you..html</guid><title>Re: Problems reaching you.</title><pubDate>Thu, 21 Sep 2006 21:01:33 +0200</pubDate><link>http://news.xb2.net/sqlexpress/595/Re%3a+Problems+reaching+you..html</link><comments>http://news.xb2.net/sqlexpress/595/Re%3a+Problems+reaching+you..html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Stu Fraser&amp;quot; &amp;lt;stuart-fraser@shaw.ca&amp;gt; wrote in
news:he4vhxvjvghkven.210920062035@ANDREA: 

&amp;gt; Our accounting department has said they are having trouble getting
&amp;gt; through to you at support@sqlexpress.net in order to renew our annual
&amp;gt; subscription. Can you please email me at stuart.fraser@gov.bc.ca ?

The problem is likely SPAM filters. I have replied to you by email already 
with an alternate email address.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/595</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/596/Re%3a+Firebird+databases.html</guid><title>Re: Firebird databases</title><pubDate>Thu, 8 Mar 2007 15:56:33 +0100</pubDate><link>http://news.xb2.net/sqlexpress/596/Re%3a+Firebird+databases.html</link><comments>http://news.xb2.net/sqlexpress/596/Re%3a+Firebird+databases.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Bengt Ovelius&amp;quot; &amp;lt;bengt@gopico.net&amp;gt; wrote in 
news:dk6yizk8cwf3tu1.080320070949@ANDREA:

&amp;gt; I got the question today,
&amp;gt; if XBASE and sqlEXPRESS can access FIREBIRD databases

Yes, you can access firebird using SQLExpress. Simply install the firebird 
ODBC driver on the client machine then create a connection using SQLExpress  
(the same as any other database).

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/596</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/597/Re%3a+e-mail.html</guid><title>Re: e-mail</title><pubDate>Fri, 17 Nov 2006 13:14:42 +0100</pubDate><link>http://news.xb2.net/sqlexpress/597/Re%3a+e-mail.html</link><comments>http://news.xb2.net/sqlexpress/597/Re%3a+e-mail.html</comments><author>Sander@pbih.eu</author><description>&lt;pre&gt;Hi Boris,

Checking again? I did not hear back from you, so now I doubt if you
got my mail's form past week?

regards
Sander
Regards
Sander Elias

-------------------------------------------------------------
xbHCL (http://www.xbHCL.com) the xbase HTML command layer
PBIH  (http://pbih.eu)       Polar Bear International Hosting
-------------------------------------------------------------
also a member off the XXP (http://www.xxp.nl)&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/597</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/598/Re%3a+SQLDataSet.html</guid><title>Re: SQLDataSet</title><pubDate>Mon, 29 Jan 2007 18:12:14 -0700</pubDate><link>http://news.xb2.net/sqlexpress/598/Re%3a+SQLDataSet.html</link><comments>http://news.xb2.net/sqlexpress/598/Re%3a+SQLDataSet.html</comments><author>ramirezosvaldo@prodigy.net.mx</author><description>&lt;pre&gt;Thanks Boris Borzic

I have another problem

My pc, has 1.9 with SQLExpress++ for it.
But when I send the exe file to my client, I have 1.82
but my SqlExpress++ version for 1.82 does not have some function
like oCursor:getSQLColumn(&amp;quot;tra_ref&amp;quot;):length

I want to ask if I download the version for 1.82 and use my key
or I need some one else. ?

Best Regards
Osvaldo Ramirez





&amp;gt; Osvaldo Ramirez &amp;lt;ramirezosvaldo@prodigy.net.mx&amp;gt; wrote in 
&amp;gt; news:wbw6tn7hkl1jh1m.280120072046@ANDREA:
&amp;gt; 
&amp;gt;&amp;gt; I have this error, when I try to compile my project.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;    [Error] : ALK2102: unresolved external symbol SQLDATASET
&amp;gt;&amp;gt;    [Fatal Error] : ALK4102: 1 external symbols unresolved
&amp;gt; 
&amp;gt; Try adding the following statement in your main procedure:
&amp;gt; 
&amp;gt; REQUEST SQLDataSet
&amp;gt; 
&amp;gt; Best regards,
&amp;gt; Boris Borzic&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/598</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/599/Re%3a+PostgreSQL+and+updateable+cursors.html</guid><title>Re: PostgreSQL and updateable cursors</title><pubDate>Sat, 13 May 2006 17:27:22 +0100</pubDate><link>http://news.xb2.net/sqlexpress/599/Re%3a+PostgreSQL+and+updateable+cursors.html</link><comments>http://news.xb2.net/sqlexpress/599/Re%3a+PostgreSQL+and+updateable+cursors.html</comments><author>phil@idep.org.uk</author><description>&lt;pre&gt;Rudolf,

&amp;gt; I would like to use PostgreSQL, but it seems that I cannot use functions 
&amp;gt; like oCursor:fieldput(). Is this correct or what does it mean, that I cannut 
&amp;gt; use updateable cursors ?

Don't read too much into it. Step back a moment and think in DBF terms. You
go to a record, and you want to read it into memory, display it to the user,
and allow the user to edit it. Before you read it into memory, you can lock
the record, unlocking the record when the user moves to another record. This
sort of thing is very similar to an updateable cursor, but working only on
the current record. It is usually a bad idea, because the record is locked
regardless of whether the user wants to edit it, and remains locked as long
as the user remains on that record.

An updateable cursor means 'create a dataset, and for each row (record) in
the dataset, apply a lock on the row'.

In SQL, you normally don't bother with locks, but doing so guarantees that
the copy of the record (you only ever see a copy) exactly matches the real
record - in other words, it cannot be updated by anyone else.

In reality, as long as you can uniquely identify a record, you can issue an
update for it.

SQLExpress handles this sort of thing for you automatically (you'd have to
ask Boris how), so you really shouldn't care. The *only* thing that is
important, is that you can't issue the statement:
 
  DECLARE mycursor CURSOR FOR UPDATE [OF &amp;lt;column,...&amp;gt;];

This will cause an error.

You *can* issue SELECT ... FOR UPDATE though, so you can still do it on a
straight dataset.

Regards,
-- 
Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

If the beautiful princess that I capture says &amp;quot;I'll never marry you! Never,
do you hear me, NEVER!!!&amp;quot;, I will say &amp;quot;Oh well&amp;quot; and kill her.
          [Things I'd do as an Evil Overlord]&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/599</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/600/Data.html</guid><title>Data</title><pubDate>Wed, 31 May 2006 09:17:21 +0200</pubDate><link>http://news.xb2.net/sqlexpress/600/Data.html</link><comments>http://news.xb2.net/sqlexpress/600/Data.html</comments><author>fst-procurement@telkomsa.net</author><description>&lt;pre&gt;Hi,

I am new to Sql and would like some advice on data formats.

We intend porting our existing application to PostGreSql and advice on which
data format to use would be appreciated. When setting up PostGreSql the
recommended format is Utf8. After purchasing SqlExpress I read in the Docs
that collation should be set to ASCII. Should I set up PostGreSql to use
ASCII data format or should I use some other setting in SqlExpress to agree
with PostGreSql.

Any help appreciated.

regards,

jimmy&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/600</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/601/Re%3a+sort()+method+missing.html</guid><title>Re: sort() method missing</title><pubDate>Mon, 20 Feb 2006 11:08:33 +0100</pubDate><link>http://news.xb2.net/sqlexpress/601/Re%3a+sort()+method+missing.html</link><comments>http://news.xb2.net/sqlexpress/601/Re%3a+sort()+method+missing.html</comments><author>office@c-tec.at</author><description>&lt;pre&gt;Hello Boris,
thank you, found it
regards
Rudolf

&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; schrieb im Newsbeitrag 
news:Xns976CB65A66BB7SQLExpress@80.32.233.35...
&amp;gt; &amp;quot;Reinthaler Rudolf&amp;quot; &amp;lt;office@c-tec.at&amp;gt; wrote in
&amp;gt; news:b5x8llb2320cxt1.160220060854@ANDREA:
&amp;gt;
&amp;gt;&amp;gt; I get no sort() method in sqldataset() and sqlselect(). What I am
&amp;gt;&amp;gt; missing ?
&amp;gt;&amp;gt;
&amp;gt;
&amp;gt; I don't know, but SQLDataSet class does have a :sort() method. See the 
&amp;gt; help
&amp;gt; file (note, there is no :sort method for SQLSelect).
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/601</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/602/Re%3a+Relations.html</guid><title>Re: Relations</title><pubDate>Fri, 22 Sep 2006 15:24:27 +0200</pubDate><link>http://news.xb2.net/sqlexpress/602/Re%3a+Relations.html</link><comments>http://news.xb2.net/sqlexpress/602/Re%3a+Relations.html</comments><author>fst-procurement@telkomsa.net</author><description>&lt;pre&gt;Hi Boris,

Thank you. Works perfectly.

Where do I get a listing of these methods? :refreshchildren() does not
appear in the help docs.

regards,

Jimmy&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/602</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/603/Re%3a+Relations.html</guid><title>Re: Relations</title><pubDate>Wed, 20 Sep 2006 05:41:12 +0200</pubDate><link>http://news.xb2.net/sqlexpress/603/Re%3a+Relations.html</link><comments>http://news.xb2.net/sqlexpress/603/Re%3a+Relations.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Jimmy Malan&amp;quot; &amp;lt;fst-procurement@telkomsa.net&amp;gt; wrote in
news:j4m057dfz1ccx40.190920061537@ANDREA: 

&amp;gt; Without the following commands the record pointers are not in sync.
&amp;gt; except for oDtlMat which is the first relation establised.
&amp;gt; 
&amp;gt; Is this correct ?

It should work fine without you explicitly calling :fetchData on the child 
datasets. I wonder if perhaps the problem is in your browser not updating. 
Can you test with minimal additional code (eg. SQLTEST3.PRG).

BTW, I notice that you added ORDER BY statements in all of your SELECT's 
even when it makes no sense to do so, like in this statement:

SELECT * FROM Jcdtl WHERE Accmth=1234 AND category='MAT' AND Jno=xxx
ORDER BY Jno

In many cases, the DBMS will need to create a static cursor first, then 
sort it before it can send you the result set (a very costly operation). 
Unless you know that you have an index on the ORDER BY expression, it is 
best to do the sort on the client side.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/603</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/604/Re%3a+Relations.html</guid><title>Re: Relations</title><pubDate>Wed, 20 Sep 2006 16:17:12 +0200</pubDate><link>http://news.xb2.net/sqlexpress/604/Re%3a+Relations.html</link><comments>http://news.xb2.net/sqlexpress/604/Re%3a+Relations.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Jimmy Malan&amp;quot; &amp;lt;fst-procurement@telkomsa.net&amp;gt; wrote in
news:et632nr7xpj4kwd.200920061239@ANDREA: 

&amp;gt;&amp;gt; It should work fine without you explicitly calling :fetchData on the
&amp;gt;&amp;gt; child datasets. I wonder if perhaps the problem is in your browser
&amp;gt;&amp;gt; not updating. Can you test with minimal additional code (eg.
&amp;gt;&amp;gt; SQLTEST3.PRG). 
&amp;gt; 
&amp;gt; After the first setrelation command I checked Jno field of oDtlMat in
&amp;gt; the debugger and it was correct. However after subsequent setrelation
&amp;gt; commands the Jno field in oDtlLab and oDtlSub was incorrect. At this
&amp;gt; point the browser had not been setup.

The relations should be in sync when the parent record pointer is moved.
At the start, you may need to call oParent:RefreshChildren() to get the 
children in sync prior to any record movent.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/604</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/605/SQLListTables+fails+at+the+scond+call.html</guid><title>SQLListTables fails at the scond call</title><pubDate>Fri, 24 Mar 2006 10:59:59 +0100</pubDate><link>http://news.xb2.net/sqlexpress/605/SQLListTables+fails+at+the+scond+call.html</link><comments>http://news.xb2.net/sqlexpress/605/SQLListTables+fails+at+the+scond+call.html</comments><author>office@c-tec.at</author><description>&lt;pre&gt;Hello,
I have a strange effect when calling SQLListTables in a MY SQL Database. The 
first time it works, but if I call it the second time, I get no tables back.
Any idea ?
regards
Rudolf

function show_tables()
******************************************************************
local oBrowse,aTables := {},nPointer := 1,getlist := {},oCursor,nSuccess
local oConn := MyDefaultSQLConnection(,.t.)
oConn:displayErrors := .t.

oCursor  := SQLListTables():new( oConn)
nSuccess := oCursor:execute()
while ! oCursor:Eof()
     aTmp := {}
     for i := 1 to oCursor:Fcount
          aadd(aTmp,oCursor:fieldget(i))
     next
     aadd(aTables,aTmp)
     oCursor:skip()
end
@ 1,1 DCBROWSE oBrowse DATA aTables SIZE  100 ,30   PRESENTATION 
cstat(&amp;quot;BROWSEPRES&amp;quot;) ID 'BROWSEET' POINTER nPointer;
          COLOR 
{||{GRA_CLR_BLACK,GraMakeRGBColor(cstat(&amp;quot;SYS_BROWSECOLOR&amp;quot;))}}  CURSORMODE 
XBPBRW_CURSOR_ROW;
          DATALINK {||show_cols(oConn,aTables,nPointer)}
DCBROWSECOL ELEMENT  1 WIDTH   10  HEADER 'Table Cat'       PARENT oBrowse
DCBROWSECOL ELEMENT  2 WIDTH   10  HEADER 'Table Schema'    PARENT oBrowse
DCBROWSECOL ELEMENT  3 WIDTH   10  HEADER 'Table Name'      PARENT oBrowse
DCBROWSECOL ELEMENT  4 WIDTH   10  HEADER 'Table Type'      PARENT oBrowse
DCBROWSECOL ELEMENT  5 WIDTH   20  HEADER 'Remarks'         PARENT oBrowse

DCREAD GUI FIT MODAL ADDBUTTONS TO lOk TITLE &amp;quot;Tables&amp;quot;

oConn:destroy()
return .t.&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/605</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/606/Re%3a+SQLExpress%2c+ADS+and+deleted+records.html</guid><title>Re: SQLExpress, ADS and deleted records</title><pubDate>Mon, 30 Oct 2006 13:21:17 +0100</pubDate><link>http://news.xb2.net/sqlexpress/606/Re%3a+SQLExpress%2c+ADS+and+deleted+records.html</link><comments>http://news.xb2.net/sqlexpress/606/Re%3a+SQLExpress%2c+ADS+and+deleted+records.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Toma Grom&amp;quot; &amp;lt;tomaz.grom@siol.net&amp;gt; wrote in
news:pgnqwbpmnr4dea5.301020060947@ANDREA: 

&amp;gt; maybe you know what happens, when xBase programmer hide deleted
&amp;gt; records inside .DBF table with command SET DELETED OFF and then with
&amp;gt; an SQL statement request data from the .DBF table.
&amp;gt; Are deleted records hidden or not, I mean, does the cursor (result
&amp;gt; set) brings back only desired data, or mixture of deleted and
&amp;gt; undeleted records ? 

There is no concept of deleted records with SQL. ADS will not return 
deleted records to you using SQL.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/606</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/607/Re%3a+Ace+Wrappers+getting+started.html</guid><title>Re: Ace Wrappers getting started</title><pubDate>Wed, 24 May 2006 07:17:24 +0200</pubDate><link>http://news.xb2.net/sqlexpress/607/Re%3a+Ace+Wrappers+getting+started.html</link><comments>http://news.xb2.net/sqlexpress/607/Re%3a+Ace+Wrappers+getting+started.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Mahanimann&amp;quot; &amp;lt;paaldalen@gmail.com&amp;gt; wrote in 
news:8uuqxu26gpyizfa.200520061225@ANDREA:

&amp;gt;    *! Here I would like to connect to the ADS remote
&amp;gt;    *! server (running Win2K with NTFS) on P:
&amp;gt;    *! The ADT's and the dictionary file (SHP.ADD) are
&amp;gt;    *! in P:\Data. The IP-adress is 169.254.0.15
&amp;gt;    *! The network name is &amp;quot;ADVANTAGE&amp;quot;
&amp;gt;    *!
&amp;gt;    *! QUESTION I: How do I connect to the _database_?
&amp;gt;    *!                        (i.e. the dictionary)

You cannot connect to the ADS dictionary with the current version of Ace 
Wrappers. At the time that the ACE Wrappers were written, Advantage did not 
have a dictionary. 

Since you have the source code, you should be able to modify to suit your 
specific needs without too much trouble. 

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/607</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/608/Re%3a+Error+connecting+SQLExpress+to+oracle+10g.html</guid><title>Re: Error connecting SQLExpress to oracle 10g</title><pubDate>Fri, 1 Dec 2006 10:03:18 -0800</pubDate><link>http://news.xb2.net/sqlexpress/608/Re%3a+Error+connecting+SQLExpress+to+oracle+10g.html</link><comments>http://news.xb2.net/sqlexpress/608/Re%3a+Error+connecting+SQLExpress+to+oracle+10g.html</comments><author>stuart.fraser@cgi.com</author><description>&lt;pre&gt;Hi Eugenio,

What ODBC Driver are you using?  I would not recommend the Microsoft one. 
There are limitations.
We always use the Oracle provided drivers here.

To me it looks like you are connecting via a DNS as well.  I have never done 
it this way, but choose to connect directly instead.

Here is some stuff cut and modified from my connection routine.  Note: this 
is an oracle 9i database but it should be relatively the same.

Local cDriver:=&amp;quot;Oracle ODBC Driver&amp;quot;
Local cServer:=&amp;quot;MyServer&amp;quot;    // put your server name here as it would appear 
in the tnsnames.ora file
Local cUID:=&amp;quot;stu&amp;quot;
Local cPW:=&amp;quot;mypassword&amp;quot;
Local oConn

Begin Sequence

oConn:=SQLConnection():New()

cConStr:=&amp;quot;DRIVER=&amp;quot;+cDriver+&amp;quot;;SERVER=&amp;quot;+cServer+&amp;quot;;DBQ=&amp;quot;+cServer+&amp;quot;;UID=&amp;quot;+cUID+&amp;quot;;PWD=&amp;quot;+cPW

oConn:DriverConnect(,cConStr,SQL_DRIVER_COMPLETE_REQUIRED )
If !oConn:isConnected
 ErrorMsg({&amp;quot;Error Connecting to Server: &amp;quot;+cServer,;
     &amp;quot;As User: &amp;quot;+cUID, ;
     &amp;quot;In The '&amp;quot;+NiceEnviro()+&amp;quot;' Environment&amp;quot;},&amp;quot; Data Mart Error&amp;quot;)
 lOk:=.f.
Endif

EndSequence

Hope that helps,

Stu.

&amp;quot;Eugenio Abordi&amp;quot; &amp;lt;eugenioabordi@romeomaestri.it&amp;gt; wrote in message 
news:6lggktf7mdhcscm.281120062237@ANDREA...
&amp;gt; After many tests I solved the problem. The PATH did not include the dir of 
&amp;gt; Oracle:
&amp;gt;
&amp;gt; C:\oracle\product\10.2.0\client\bin
&amp;gt;
&amp;gt; Now I can connect. But the system does not return the database name:
&amp;gt;
&amp;gt; ? &amp;quot;Connected to: &amp;quot;, oConn:DbmsName, &amp;quot;, Database: &amp;quot;, oConn:DatabaseName
&amp;gt;
&amp;gt; oConn:DbmsName display &amp;quot;Oracle&amp;quot;
&amp;gt; oConn:DatabaseName des not display anything
&amp;gt;
&amp;gt; Do you know why ?
&amp;gt;
&amp;gt; Best Regards.
&amp;gt;
&amp;gt; &amp;quot;Eugenio Abordi&amp;quot; &amp;lt;eugenioabordi@romeomaestri.it&amp;gt; ha scritto nel messaggio 
&amp;gt; news:jc75dee1157hcc1.281120062201@ANDREA...
&amp;gt;&amp;gt;I have tried a little sample like this:
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; oConn := SQLConnection():new('mydb', 'myuser', 'mypasswd')
&amp;gt;&amp;gt; if oConn:isConnected
&amp;gt;&amp;gt;   oStmt := oConn:NewStatement()
&amp;gt;&amp;gt;   oStmt:SQLString := 'SELECT COUNT(*) FROM ANSADID'
&amp;gt;&amp;gt;   if oStmt:Execute() != SQL_XPP_ERROR
&amp;gt;&amp;gt;      MsgBox(&amp;quot;SQL OK&amp;quot;)
&amp;gt;&amp;gt;   endif
&amp;gt;&amp;gt; endif
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; and I receive a system error 1114.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Do you have an example of connection to Oracle 10g db ?
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Best Regards.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;quot;Eugenio Abordi&amp;quot; &amp;lt;eugenioabordi@romeomaestri.it&amp;gt; ha scritto nel messaggio 
&amp;gt;&amp;gt; news:agg8facv2wx5u85.281120062117@ANDREA...
&amp;gt;&amp;gt;&amp;gt; There is no specific error message.
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; Previously when I use sqlexpress with Informix with the syntax I wrote 
&amp;gt;&amp;gt;&amp;gt; you the connection start without problems.
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; It seems that the program does not found the ODBC connection.
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; The syntax I use is correct for Oracle ? Do you have tested SQLExpress 
&amp;gt;&amp;gt;&amp;gt; wth Oracle 10g Release 10.2.0.2.0 ?
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; Best Regards
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; &amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; ha scritto nel messaggio 
&amp;gt;&amp;gt;&amp;gt; news:Xns98898C5A5DC71SQLExpress@80.32.233.35...
&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;Eugenio Abordi&amp;quot; &amp;lt;eugenioabordi@romeomaestri.it&amp;gt; wrote in
&amp;gt;&amp;gt;&amp;gt;&amp;gt; news:v1rs5haiih0wlho.281120061831@ANDREA:
&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; When the program start it shows the ODBC box and then show the box 
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; with
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;Unable to connect to data source&amp;quot;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; What error message do you get?
&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Best regards,
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Boris Borzic
&amp;gt;&amp;gt;&amp;gt;&amp;gt; -- 
&amp;gt;&amp;gt;&amp;gt;&amp;gt; news://news.Xb2.NET
&amp;gt;&amp;gt;&amp;gt;&amp;gt; http://www.Xb2.NET
&amp;gt;&amp;gt;&amp;gt;&amp;gt; http://www.SQLExpress.net
&amp;gt;&amp;gt;&amp;gt;&amp;gt; industrial strength Xbase++ development tools
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;
&amp;gt;
&amp;gt;&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/608</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/609/Re%3a+Converting+character+string.html</guid><title>Re: Converting character string</title><pubDate>Thu, 21 Jun 2007 14:10:39 +0200</pubDate><link>http://news.xb2.net/sqlexpress/609/Re%3a+Converting+character+string.html</link><comments>http://news.xb2.net/sqlexpress/609/Re%3a+Converting+character+string.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Toma Grom&amp;quot; &amp;lt;tomaz.grom@siol.net&amp;gt; wrote in
news:litzorhw7ytdrou.210620071005@VDS-472773: 

&amp;gt; Boris, my tests included only few data fields. And in such
&amp;gt; circumstances ADS API is quicker, then SqlExpress.
&amp;gt; 
&amp;gt; But if they are many, SQLExpress speed accelerates in comparison to
&amp;gt; ADS API.

Thanks for the update.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/609</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/610/Re%3a+Converting+character+string.html</guid><title>Re: Converting character string</title><pubDate>Fri, 15 Jun 2007 08:26:53 +0200</pubDate><link>http://news.xb2.net/sqlexpress/610/Re%3a+Converting+character+string.html</link><comments>http://news.xb2.net/sqlexpress/610/Re%3a+Converting+character+string.html</comments><author>tomaz.grom@siol.net</author><description>&lt;pre&gt;Hello, I have to correct myself.

Further investigation shows, that xBase++ functions ConvToAnsiCP( 
&amp;lt;cOemFormatString&amp;gt; ) and vice versa works with both, SQLExpress and pure ADS 
API calls.
But prooper functioning demands transformation to ANSI when making SQL 
request sentence and later back to OEM, while retreiving the data from the 
server.

Speed difference remains. For samaller data amound  1 : 2 , for bigger up to 
1 : 6.

Best regards

Toma&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/610</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/611/Re%3a+vacation+alert.html</guid><title>Re: vacation alert</title><pubDate>Tue, 8 Aug 2006 09:08:34 +0200</pubDate><link>http://news.xb2.net/sqlexpress/611/Re%3a+vacation+alert.html</link><comments>http://news.xb2.net/sqlexpress/611/Re%3a+vacation+alert.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;Hi Jim,

You should know better you're in the software business too &amp;lt;g&amp;gt;.

I wish I could afford to take that much time off. It's more like a 
working vacation. I'm visiting family in Europe and brought my computer 
along to do some work. Unfortunately, Internet access here is very 
sparse.

Best regards,
Boris Borzic
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools 

&amp;quot;Jim Graham&amp;quot; &amp;lt;J.GRAHAM@PROTELEDATA.COM&amp;gt; wrote in
news:pf0qdb1l1bnasrf.280720062101@ANDREA: 

&amp;gt; Hmmmm...
&amp;gt; 
&amp;gt; Consulting and sales must be good.  A one month vacation!!!
&amp;gt; 
&amp;gt; Enjoy...
&amp;gt; 
&amp;gt; 
&amp;gt; &amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message 
&amp;gt; news:Xns980C4EA1996EDSQLExpress@80.32.233.35...
&amp;gt;&amp;gt;I will be on vacation with very limited email access and probably zero
&amp;gt;&amp;gt;news 
&amp;gt;&amp;gt; group access until August 28'th. Please do not expect me to personaly
&amp;gt;&amp;gt; answer any questions posted on this NG until after August 28'th.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Thank you &amp;amp; kind regards,
&amp;gt;&amp;gt; Boris Borzic
&amp;gt;&amp;gt; http://www.Xb2.NET
&amp;gt;&amp;gt; http://www.SQLExpress.net
&amp;gt;&amp;gt; industrial strength Xbase++ development tools 
&amp;gt;&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/611</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/612/Re%3a+Date+Field+that+does+not+accept+NULL+values.html</guid><title>Re: Date Field that does not accept NULL values</title><pubDate>Wed, 5 Apr 2006 11:30:21 -0400</pubDate><link>http://news.xb2.net/sqlexpress/612/Re%3a+Date+Field+that+does+not+accept+NULL+values.html</link><comments>http://news.xb2.net/sqlexpress/612/Re%3a+Date+Field+that+does+not+accept+NULL+values.html</comments><author>mikewheat@tm.net</author><description>&lt;pre&gt;Boris,

Other Database Servers do support Non-Nullable columns, just not empty.  You 
can set default values at the data layer.

If the sql server is responsible for default values which most people would 
prefer as apposed to putting in the software.  Let's leave this up to the 
data layer.  Then we perform an insert on a DataSet with SqlExpress.  I 
found out the following...

Nullable column - Value after Insert: NULL

Shouldn't the value of the column be the default value?
It is NULL because the DataSet is setting the date column to NULL.

Non-Nullable column - Error

This is not nice.  We got this error because the DataSet is trying to set 
the date column with NULL.

This could all be avoided if the DataSet was not trying to set the date 
column to NULL.  If you prefer to continue setting a values for all columns 
by the DataSet, you could check for the default value.

I also found out that if I set default values on the database server for any 
column type, they are ignored by DataSet.

Thank you,
Mike&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/612</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/613/Re%3a+Converting+character+string.html</guid><title>Re: Converting character string</title><pubDate>Fri, 15 Jun 2007 14:27:54 +0200</pubDate><link>http://news.xb2.net/sqlexpress/613/Re%3a+Converting+character+string.html</link><comments>http://news.xb2.net/sqlexpress/613/Re%3a+Converting+character+string.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Toma Grom&amp;quot; &amp;lt;tomaz.grom@siol.net&amp;gt; wrote in
news:68jk7n8nqoy3jl5.150620070827@VDS-472773: 

&amp;gt; Further investigation shows, that xBase++ functions ConvToAnsiCP( 
&amp;gt;&amp;lt;cOemFormatString&amp;gt; ) and vice versa works with both, SQLExpress and
&amp;gt;pure ADS 
&amp;gt; API calls.
&amp;gt; But prooper functioning demands transformation to ANSI when making SQL
&amp;gt; request sentence and later back to OEM, while retreiving the data from
&amp;gt; the server.

You should be able to avoid all of this conversion by setting your ADS 
database as ANSI and in Xbase++ &amp;quot;SET CHARSET TO ANSI&amp;quot;

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/613</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/614/Re%3a+Is+this+the+correct+flow+for+error+catching+in+Transactions%3f.html</guid><title>Re: Is this the correct flow for error catching in Transactions?</title><pubDate>Wed, 1 Mar 2006 14:53:39 -0500</pubDate><link>http://news.xb2.net/sqlexpress/614/Re%3a+Is+this+the+correct+flow+for+error+catching+in+Transactions%3f.html</link><comments>http://news.xb2.net/sqlexpress/614/Re%3a+Is+this+the+correct+flow+for+error+catching+in+Transactions%3f.html</comments><author>mikewheat@tm.net</author><description>&lt;pre&gt;Boris,

You are right.  Reconnect() fails anytime after a network failure.
No need to check the connection or call reconnect.

I guess it is a good idea to always stay in a connectionless environment.

Thank you,
Mike


&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message 
news:Xns9779550551EEFSQLExpress@80.32.233.35...
&amp;gt; &amp;quot;Michael Wheat&amp;quot; &amp;lt;mikewheat@tm.net&amp;gt; wrote in
&amp;gt; news:txaq5xcfedwlfvx.010320061357@ANDREA:
&amp;gt;
&amp;gt;&amp;gt; One more question for clarity.  If the connection breaks due to server
&amp;gt;&amp;gt; reboot.  After the reboot has completed, if the connection object has
&amp;gt;&amp;gt; not been destroyed and I issue reconnect, will it fail?
&amp;gt;
&amp;gt; The best thing to do is to try it with your server/driver combination.
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/614</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/615/SqlDataSet%3aisRowModified.html</guid><title>SqlDataSet:isRowModified</title><pubDate>Fri, 22 Sep 2006 13:09:42 +0200</pubDate><link>http://news.xb2.net/sqlexpress/615/SqlDataSet%3aisRowModified.html</link><comments>http://news.xb2.net/sqlexpress/615/SqlDataSet%3aisRowModified.html</comments><author>andrej.obermajer@litija.com</author><description>&lt;pre&gt;Hi Boris.

What is a point of SqlDataSet:isRowModified function? On MySQL it always 
returns false.

Regards,

Andrej Obermajer&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/615</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/616/oCursor%3alocate+problem.html</guid><title>oCursor:locate problem</title><pubDate>Tue, 9 May 2006 09:23:49 +0200</pubDate><link>http://news.xb2.net/sqlexpress/616/oCursor%3alocate+problem.html</link><comments>http://news.xb2.net/sqlexpress/616/oCursor%3alocate+problem.html</comments><author>office@c-tec.at</author><description>&lt;pre&gt;Hello Boris,
I have a problem with locating a value from a table.

this line works:
lFound := oCursor:Locate(o:EditBuffer(),&amp;quot;NAME&amp;quot;)

this line crashes:
lFound := oCursor:Locate( {|oc|oc:FieldGet(&amp;quot;NAME&amp;quot;) = 
alltrim(o:EditBuffer)} )

with this error message:

------------------------------------------------------------------------------
ERROR LOG of &amp;quot;H:\GASTS\GASTS.exe&amp;quot; Date: 09-05-2006 09:23:13

Xbase++ version     : Xbase++ (R) Version 1.82.306
Operating system    : Windows XP 05.01 Build 02600 Service Pack 2
------------------------------------------------------------------------------
oError:args         :
          -&amp;gt; VALTYPE: A VALUE: {3333, &amp;quot;teST&amp;quot;, &amp;quot;teST&amp;quot;, 0, 0, &amp;quot;&amp;quot;, &amp;quot;J&amp;quot;, &amp;quot;J&amp;quot;, 
&amp;quot;J&amp;quot;, &amp;quot;&amp;quot;, 0, &amp;quot;J&amp;quot;, 0, 0, 0, 0, &amp;quot;&amp;quot;, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 
{3333, &amp;quot;teST&amp;quot;, &amp;quot;teST&amp;quot;, 0, 0, NIL, &amp;quot;J&amp;quot;, &amp;quot;J&amp;quot;, &amp;quot;J&amp;quot;, NIL, 0, &amp;quot;J&amp;quot;, 0, NIL, NIL, 
NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, 
NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, NIL, 
NIL, NIL, NIL, NIL, NIL, NIL, NIL}}
          -&amp;gt; VALTYPE: C VALUE: NAME
oError:canDefault   : N
oError:canRetry     : N
oError:canSubstitute: Y
oError:cargo        : NIL
oError:description  : Parameter has a wrong data type
oError:filename     :
oError:genCode      :          2
oError:operation    : FieldGet
oError:osCode       :          0
oError:severity     :          2
oError:subCode      :       1025
oError:subSystem    : BASE
oError:thread       :          4
oError:tries        :          0
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------
Called from (B)_SEARCHITEM(124)
Called from (B)SQLDATASET:LOCATE(888)
Called from SQLDATASET:LOCATE(888)
Called from _SEARCHITEM(124)
Called from (B)EDIT_ITEM(83)
Called from DC_XBPGET:KEYBOARD(1334)
Called from DC_GETLIST:EVENTLOOP(3861)
Called from DC_GETLIST:READGUI(3323)
Called from DC_READGUI(223)
Called from EDIT_ITEM(94)
Called from (B)PROG_START(0)

any idea ?
regards
Rudolf&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/616</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/617/Sort+method.html</guid><title>Sort method</title><pubDate>Tue, 22 May 2007 15:32:09 +0200</pubDate><link>http://news.xb2.net/sqlexpress/617/Sort+method.html</link><comments>http://news.xb2.net/sqlexpress/617/Sort+method.html</comments><author>fst-procurement@telkomsa.net</author><description>&lt;pre&gt;Hi Boris

Won't you please consider adding a sort method to a server side cursor ?


regards,

Jimmy&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/617</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/618/SQL+data+snapshot+independency.html</guid><title>SQL data snapshot independency</title><pubDate>Thu, 14 Dec 2006 11:10:22 +0100</pubDate><link>http://news.xb2.net/sqlexpress/618/SQL+data+snapshot+independency.html</link><comments>http://news.xb2.net/sqlexpress/618/SQL+data+snapshot+independency.html</comments><author>tomaz.grom@siol.net</author><description>&lt;pre&gt;I am not shore, how different SQL statements interacts with each other.
Can you please clear me out the following situation.

1. Prepare the cursor data
    oCursor --&amp;gt; SELECT FROM MyTable WHERE MarkerField = False 
(SQL_CONCUR_READ_ONLY, SQL_CURSOR_FORWARD_ONLY)

2. Ruin the WHERE condition from previous select
    UPDATE MyTable SET MarkerField = TRUE WHERE MarkerField = FALSE

3. Do some tasks with a cursor
    oCursor:goTop()
    DO WHILE !oCursor:eof()
        ....
    ENDDO

Is the cursor from first line independent from changes, caused just after ?

I know, this is not SQLExpress question, but anyway, in my first steps to 
SQL apporach I want to clear some things out.

Best regards

Toma&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/618</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/619/Re%3a+Unloading+DLL+problem.html</guid><title>Re: Unloading DLL problem</title><pubDate>Wed, 2 Aug 2006 07:18:35 -0500</pubDate><link>http://news.xb2.net/sqlexpress/619/Re%3a+Unloading+DLL+problem.html</link><comments>http://news.xb2.net/sqlexpress/619/Re%3a+Unloading+DLL+problem.html</comments><author>vjharris@starband.net</author><description>&lt;pre&gt;Sander,

I followed your lead and added a destory to oConnReid and a nil... in the 
loop..
   DO WHILE .t.

     oConnRefid := LCS_SQL_Connection(,Trim(SIFServerCommand))
     M-&amp;gt;oCursorRefIds := CreateSifRefIdsCursor( oConnRefid )
     oConnRefid:Destroy()
     oConnRefid := nil
     oCursorRefIds:Destroy()
     oCursorRefIds := nil

   sleep( 100 * 15  )   // runs every 15 seconds

   ENDDO
That did the trick... wow... this has been driving me nuts...

Thanks
Jeanne
&amp;gt;&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/619</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/620/Re%3a+Newbie+question.html</guid><title>Re: Newbie question</title><pubDate>Mon, 6 Nov 2006 14:45:30 -0500</pubDate><link>http://news.xb2.net/sqlexpress/620/Re%3a+Newbie+question.html</link><comments>http://news.xb2.net/sqlexpress/620/Re%3a+Newbie+question.html</comments><author>lmaher@paradox.ca</author><description>&lt;pre&gt;Thanks Boris,


&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message 
news:Xns987393CA94911SQLExpress@80.32.233.35...
&amp;gt; You cannot return a SP param value back to SQLExpress (output params are
&amp;gt; not supported).
&amp;gt;
&amp;gt; What you can do however, is to generate a resultset in the SP and return
&amp;gt; the required data like a cursor. In this case you sould need to call the 
&amp;gt; SP
&amp;gt; from an SQLSelect instance.
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools
&amp;gt;
&amp;gt;
&amp;gt; &amp;quot;Lynne Maher&amp;quot; &amp;lt;lmaher@paradox.ca&amp;gt; wrote in
&amp;gt; news:4qrv8k2hv5m4qym.061120061710@ANDREA:
&amp;gt;
&amp;gt;&amp;gt; I have another question now, can I get a return value from a Stored
&amp;gt;&amp;gt; Procedure executed on the server.
&amp;gt;&amp;gt; Ex.:
&amp;gt;&amp;gt; ALTER PROCEDURE SomeStoredProcedure
&amp;gt;&amp;gt; @param1 bigint,
&amp;gt;&amp;gt; @param2 nvarchar(20),
&amp;gt;&amp;gt; @RetVal bigint OUTPUT
&amp;gt;&amp;gt; as
&amp;gt;&amp;gt; ...
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; How do I get the &amp;quot;RetVal&amp;quot; from the procedure into xBase++? I execute the
&amp;gt;&amp;gt; following but how do I get my returned value.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; oStmt := SQLStatement():New(&amp;quot;{call SomeStoredProcedure(?,?,?)}&amp;quot;, oConn)
&amp;gt;&amp;gt; nRowsAffected := oStmt:Execute( Param1, Param2, RetVal )
&amp;gt;
&amp;gt;&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/620</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/621/Re%3a+ADS+Connection+type.html</guid><title>Re: ADS Connection type</title><pubDate>Wed, 24 May 2006 07:20:44 +0200</pubDate><link>http://news.xb2.net/sqlexpress/621/Re%3a+ADS+Connection+type.html</link><comments>http://news.xb2.net/sqlexpress/621/Re%3a+ADS+Connection+type.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Toma Grom&amp;quot; &amp;lt;tomaz.grom@siol.net&amp;gt; wrote in
news:1phv3n54jjsmwc1.230520062047@ANDREA: 

&amp;gt; Is the connection between xBase program, SQLExpress and ADS native, or
&amp;gt; it should be made through ODBC?

SQLExpress always uses ODBC.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/621</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/622/Re%3a+vacation+alert.html</guid><title>Re: vacation alert</title><pubDate>Wed, 26 Jul 2006 14:30:25 +0100</pubDate><link>http://news.xb2.net/sqlexpress/622/Re%3a+vacation+alert.html</link><comments>http://news.xb2.net/sqlexpress/622/Re%3a+vacation+alert.html</comments><author>phil@pbih.net</author><description>&lt;pre&gt;Boris,

&amp;gt; I will be on vacation with very limited email access and probably zero news 
&amp;gt; group access until August 28'th. Please do not expect me to personaly 
&amp;gt; answer any questions posted on this NG until after August 28'th.

Happy hunting (or whatever you are up to)!

Regards,
-- 
Phil Ide

-----------------------------------------------------------------
xbHCL (http://www.xbHCL.com)     Xbase++ HTML command layer
PBIH  (http://www.pbih.eu)       Polar Bear International Hosting
-----------------------------------------------------------------
Xbase++ FAQ, Libraries and Sources:
http://www.idep.org.uk/xbase

He who dies with the most software WINS!&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/622</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/623/Re%3a+Microsoft+ODBC+for+Oracle+and+Win+XP.html</guid><title>Re: Microsoft ODBC for Oracle and Win XP</title><pubDate>Tue, 6 Jun 2006 09:43:50 -0700</pubDate><link>http://news.xb2.net/sqlexpress/623/Re%3a+Microsoft+ODBC+for+Oracle+and+Win+XP.html</link><comments>http://news.xb2.net/sqlexpress/623/Re%3a+Microsoft+ODBC+for+Oracle+and+Win+XP.html</comments><author>stuart-fraser@shaw.ca</author><description>&lt;pre&gt;Boris,

thanks for the feedback.  I'll give it a try.

Had a tech work on the machines in question yesterday.  It would seem it is 
the particular image on those machines only which is a mix of SP1 with some 
SP2 patches.  We also discovered that when you install the Oracle 8.0.6 
client it updates some of the Microsoft ODBC stuff, but not when you install 
the 9i client, which would explain why it suddenlty worked under 8.0.6 on 
these machines.

Anyway I'll try your suggestion and see if it works across the board on all 
builds.  That would be a problem solver for me.

thx again,

Stu.


-- 
Stu Fraser
Senior Programmer Analyst
IBM Managed Operations / BC Ministry of Health
Victoria, BC
&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message 
news:Xns97D9CAF5A516CSQLExpress@80.32.233.35...
&amp;gt; &amp;quot;Stu Fraser&amp;quot; &amp;lt;stuart-fraser@shaw.ca&amp;gt; wrote in
&amp;gt; news:0hgiidmn7izr7uk.050620062218@ANDREA:
&amp;gt;
&amp;gt;&amp;gt; I guessed it was ODBC related and tried installing MDAC2.8 but that
&amp;gt;&amp;gt; didn't help.  In the end we upgraded it to SP 2, as it was working
&amp;gt;&amp;gt; fine on my SP2 laptop with the 8.0.6 client installed.  Once we were
&amp;gt;&amp;gt; updated to SP 2 however it still did not work correctly.  So in the
&amp;gt;&amp;gt; end we tried installing the 8.0.6 client and then it worked.
&amp;gt;
&amp;gt; have you tried specifying the date by using the ODBC escape sequence:
&amp;gt;
&amp;gt; where RFacts.unit_notified_DTS &amp;gt;= {d '2006-05-15'}
&amp;gt;    and RFacts.unit_notified_DTS &amp;lt;= {d '2006-05-15'}
&amp;gt;
&amp;gt; or by using a date/time value:
&amp;gt;
&amp;gt; where RFacts.unit_notified_DTS &amp;gt;= {ts '2006-05-15 00:00:00'}
&amp;gt;    and RFacts.unit_notified_DTS &amp;lt;= {ts '2006-05-15 24:00:00'}
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools
&amp;gt;&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/623</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/624/Re%3a+Large+datasets.html</guid><title>Re: Large datasets</title><pubDate>Wed, 7 Jun 2006 23:24:05 +0100</pubDate><link>http://news.xb2.net/sqlexpress/624/Re%3a+Large+datasets.html</link><comments>http://news.xb2.net/sqlexpress/624/Re%3a+Large+datasets.html</comments><author>phil@pbih.net</author><description>&lt;pre&gt;Mahanimann,

&amp;gt; Phil Ide's suggestions of using DacPagedDataStore objects and/or &amp;quot;SELECT 
&amp;gt; .... LIMIT 10 OFFSET 10&amp;quot; looks cool, but that means in many ways a kind of 
&amp;gt; goodbye to straightforward, uncomplicated code.  Or does it?

Let me assure you, your code will become much simpler. As an example, I'll
use some code from my PGSql library, but the SqlExpress code would be very
similar:

  oDataSet := Sql( cSqlStatement,, Param1, Param2 )

  While !oDataSet:eof()
     // do something
     oDataSet:skip()
  Enddo


This is a typical structure for navigating a dataset. Compare that to a
typical DBF block:

   SEEK x

   While FIELD-&amp;gt;V == x .and. FIELD-&amp;gt;Y $ cMask .and.;
         FIELD-&amp;gt;L &amp;lt; 5 .and. !Eof()
     // do something
      SKIP
   Enddo

The SQL code looks much cleaner - as far as you are concerned, the oDataSet
object *is your database* AND it will ALWAYS contain ONLY the records you
are interested in - if you craft your queries properly, so once you have the
dataset, no more filtering need be applied.

Regards,
-- 
Phil Ide

-------------------------------------------------------------
xbHCL (http://www.xbHCL.com) the xbase HTML command layer
PBIH  (http://pbih.eu)       Polar Bear International Hosting
-------------------------------------------------------------
Xbase++ FAQ, Libraries and Sources:
http://www.idep.org.uk/xbase

Do the words 'act of war' mean anything to you?&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/624</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/625/Re%3a+Server+Side+Cursor+and+Browse.html</guid><title>Re: Server Side Cursor and Browse</title><pubDate>Sun, 1 Oct 2006 14:08:26 +0200</pubDate><link>http://news.xb2.net/sqlexpress/625/Re%3a+Server+Side+Cursor+and+Browse.html</link><comments>http://news.xb2.net/sqlexpress/625/Re%3a+Server+Side+Cursor+and+Browse.html</comments><author>paaldalen@gmail.com</author><description>&lt;pre&gt;&amp;gt; be fast enough. Maybe we can develop such tool together with the help of 
&amp;gt; Boris.

I still think Phil Ide's idea about storing/caching browse pages like 
DacPagedDataStore() is a great idea.

But the very best solution would of course be to have a built-in, user 
changeable cache in SqlSelect().  I.e. something like 
oSqlSelectCursor:Cache( 100, 100 ) would cache 100 rows above-, and 100 rows 
beneath current row.

Boris, could this or something similar, be something for you to think about 
in future versions?

Regards,
Mahanimann&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/625</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/626/Re%3a+Transaction+tracking.html</guid><title>Re: Transaction tracking</title><pubDate>Wed, 7 Dec 2005 08:56:20 +0100</pubDate><link>http://news.xb2.net/sqlexpress/626/Re%3a+Transaction+tracking.html</link><comments>http://news.xb2.net/sqlexpress/626/Re%3a+Transaction+tracking.html</comments><author>tomaz.grom@siol.net</author><description>&lt;pre&gt;Thank you.&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/626</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/627/Re%3a+SQLErrorHandler.html</guid><title>Re: SQLErrorHandler</title><pubDate>Thu, 14 Dec 2006 10:58:03 -0800</pubDate><link>http://news.xb2.net/sqlexpress/627/Re%3a+SQLErrorHandler.html</link><comments>http://news.xb2.net/sqlexpress/627/Re%3a+SQLErrorHandler.html</comments><author>stuart.fraser@cgi.com</author><description>&lt;pre&gt;Hi Boris,

Yes I had already tried this.

The problem is the SQLErrorHandler never gets called, when 
oConn:DisplayErrors := .f.

Which is why I asked about it.  :o)

I took your example from sqltest3.prg and plugged it into my app, but it 
gets the same result.  I also just simplified it down to give me some debug 
info, and it doesn't even do that, which tells me it's not being called.

Here is my simple &amp;quot;MySQLErrorHandler&amp;quot;

procedure MySQLErrorHandler( oOwner, cError, nRetCode, aErrObj )
   Local oConn
   msgbox(&amp;quot;hello&amp;quot;)

   dcqdebug valtype(oOwner)
   dcqdebug cError
   dcqdebug nRetCode
   dc_arrayview(aErrObj)
return

and it is called like so:

oConn:onError := { |oOwner,cError,nRetCode,aErrObj| ;
       MySQLErrorHandler(oOwner,@cError,@nRetCode,aErrObj), ;
       iif(nRetCode != SQL_SUCCESS_WITH_INFO, break(), nil)}

So any suggestions would be appreciated.

Stu.



&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message 
news:Xns9899665065118SQLExpress@80.32.233.35...
&amp;gt; &amp;quot;Stu Fraser&amp;quot; &amp;lt;stuart.fraser@cgi.com&amp;gt; wrote in
&amp;gt; news:l0es3wnezp2xqcv.131220061954@ANDREA:
&amp;gt;
&amp;gt;&amp;gt; I notice if I set oConn:displayerrors:=.f. then SQLErrorHandler won't
&amp;gt;&amp;gt; create the log when something goes wrong.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; I am looking for a way to not display the ugly blue odbc error dialog
&amp;gt;&amp;gt; when an error occurs, but still be able to log for later analysis
&amp;gt;&amp;gt; anything that might have gone wrong.  Is there anyway to do this?
&amp;gt;
&amp;gt; You can do this by using your own SQLErrorHandler function. There is an
&amp;gt; example in SQLTEST3.PRG (see MySQLErrorHandler).
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/627</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/628/SQL+vs.+Ace+Wrappers.html</guid><title>SQL vs. Ace Wrappers</title><pubDate>Sat, 20 May 2006 12:39:05 +0200</pubDate><link>http://news.xb2.net/sqlexpress/628/SQL+vs.+Ace+Wrappers.html</link><comments>http://news.xb2.net/sqlexpress/628/SQL+vs.+Ace+Wrappers.html</comments><author>paaldalen@gmail.com</author><description>&lt;pre&gt;Another ADS question:

I'm trying out ADS (v7.0) on a remote server with the proprietary ADT table 
format. Using SQLExpress I understand that I have two ways to approach the 
server: Through ODBC using pure SQL and through the API via Ace Wrappers.

Could anyone please explain to me the pros and cons with the two approaches?

I have a Clipper only background and is a complete novice in both using SQL 
and client/server database. My only advantage in this that I have used Comix 
with compound indexes :-)

Thanks for *any* opinion and input.

Mahanimann&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/628</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/629/Re%3a+fieldGet()+question.html</guid><title>Re: fieldGet() question</title><pubDate>Tue, 11 Oct 2005 14:58:56 -0600</pubDate><link>http://news.xb2.net/sqlexpress/629/Re%3a+fieldGet()+question.html</link><comments>http://news.xb2.net/sqlexpress/629/Re%3a+fieldGet()+question.html</comments><author>rogerdonnay@donnay-software.com</author><description>&lt;pre&gt;Thanks Boris.

That saves me a lot of time .

&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message
news:Xns96EC8CE00FA27SQLExpress@80.32.233.35...
&amp;gt; The problem occurs when you are using varchar fields. The DBMS will not
&amp;gt; pad a field with blanks. It will return exactly what was saved. You can
&amp;gt; pad the result in your browse by using a field's max width. Eg:
&amp;gt;
&amp;gt; SQLFieldBlock( oCursor, nField )
&amp;gt;    Local oCol, nLen, nDec
&amp;gt;
&amp;gt;    oCol := oCursor:getSQLColumn(nField)
&amp;gt;    nLen := oCol:length
&amp;gt;
&amp;gt;    if oCol:ValType == &amp;quot;C&amp;quot;
&amp;gt;       Return {|x|if(PCount()==0,PadR(oCursor:fieldGet(nField),nLen),;
&amp;gt;         oCursor:fieldPut(nField,Trim(x)))}
&amp;gt;    elseif oCol:ValType == &amp;quot;N&amp;quot;
&amp;gt;      nDec := oCol:decimals
&amp;gt;      Return {|x|if(PCount()==0,Str(oCursor:fieldGet(nField),nLen,nDec),;
&amp;gt;         oCursor:fieldPut(nField,val(x)))}
&amp;gt;    endif
&amp;gt;
&amp;gt;    Return {|x|if(PCount()==0,oCursor:fieldGet(nField),;
&amp;gt;     oCursor:fieldPut(nField,x))}
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools
&amp;gt;
&amp;gt;
&amp;gt; &amp;quot;Roger Donnay&amp;quot; &amp;lt;rogerdonnay@donnay-software.com&amp;gt; wrote in
&amp;gt; news:ma3p1uy527ydv4q.111020051714@ANDREA:
&amp;gt;
&amp;gt; &amp;gt; What is the prescribed method for creating a Get-Set codeblock for
&amp;gt; &amp;gt; editing a field?
&amp;gt; &amp;gt; I'm using the below function.
&amp;gt; &amp;gt; The problem is that :fieldGet() doesn't pad the value to the maximum
&amp;gt; &amp;gt; length of the field.
&amp;gt; &amp;gt; This is needed when creating a screen of Gets.
&amp;gt; &amp;gt; I know that I could probably build a table with this information but I
&amp;gt; &amp;gt; was hoping there is a simpler answer.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; FUNCTION SQLFieldBlock( oCursor, nField )
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Return {|x| iif(PCount()==0, ;
&amp;gt; &amp;gt;             oCursor:fieldGet(nField), ;
&amp;gt; &amp;gt;             oCursor:fieldPut(nField, x))}
&amp;gt;&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/629</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/630/Re%3a+SQLListTables+fails+at+the+scond+call.html</guid><title>Re: SQLListTables fails at the scond call</title><pubDate>Fri, 24 Mar 2006 15:42:13 +0100</pubDate><link>http://news.xb2.net/sqlexpress/630/Re%3a+SQLListTables+fails+at+the+scond+call.html</link><comments>http://news.xb2.net/sqlexpress/630/Re%3a+SQLListTables+fails+at+the+scond+call.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Reinthaler Rudolf&amp;quot; &amp;lt;office@c-tec.at&amp;gt; wrote in
news:y2iwqus4ci6wfep.240320061100@ANDREA: 

&amp;gt; I have a strange effect when calling SQLListTables in a MY SQL
&amp;gt; Database. The first time it works, but if I call it the second time, I
&amp;gt; get no tables back. Any idea ?

It works OK on my system when I run the sample SQLBRO connecting to MS 
Access or SQL Server.

I would suggest modifying SQLBRO to connect to your DBMS and see if it 
works. If it does, then you have a problem in your code somewhere. If it 
does not work, then there is a bug in the MySQL ODBC driver.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/630</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/631/Re%3a+New+customer.html</guid><title>Re: New customer</title><pubDate>Fri, 25 Nov 2005 20:05:53 +0100</pubDate><link>http://news.xb2.net/sqlexpress/631/Re%3a+New+customer.html</link><comments>http://news.xb2.net/sqlexpress/631/Re%3a+New+customer.html</comments><author>tomaz.grom@siol.net</author><description>&lt;pre&gt;I only hope, that it won't demand to much time and headache when making dual 
approach in my huge code.

Now I am solving the problem of remote acces at few places with remote 
desktop (dedicated machine) in the firm an mostly the director has access 
from its home to the office. So, only the screen and keyboard/mouse 
informations go through the line, nothing else. NetOp is the king for that. 
Microsoft tools are not so good (quick).

But I wander, if my program would be good C/S designed, would it be better 
even in such cases, where dedicated machines are available, to run 
application rather at home computer and have only access throuhg the IP to 
the office server database (line is ADSL 2048/386 Kb/s), or screen transfer 
would remain even then the better choice? Namely in remote desktop approach 
LAN is quick (100MB/1GB), only back (to home) printing is slow.

One more thing.
If I remain on FOXCDX format running on ADS, would you reccomend (is it 
possible) to make referential integritiy keys. Now I use UNIQUE keys for 
that purpose to identify the presence of the code in transaction table to 
prevent the deletion in catalog.

Any suggestion form practice ?

Best regards
  Toma

&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; je napisal v sporoilo 
news:Xns97196BF6F2614SQLExpress@80.32.233.35 ...
&amp;gt; &amp;quot;Toma Grom&amp;quot; &amp;lt;tomaz.grom@siol.net&amp;gt; wrote in
&amp;gt; news:hmuulnn5ss8bt8g.251120051125@ANDREA:
&amp;gt;
&amp;gt;&amp;gt; I have just paid SQLExpress Pro.
&amp;gt;&amp;gt; New era seems to begin for me    :-).
&amp;gt;
&amp;gt; Thank you for the order and welcome to the 21st century &amp;lt;g&amp;gt;
&amp;gt;
&amp;gt; I'm sure you will find that SQL requires a small paradigm shift.
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/631</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/632/Re%3a+EXCEL+cells+without+header.html</guid><title>Re: EXCEL cells without header</title><pubDate>Tue, 24 Jan 2006 15:58:22 +0100</pubDate><link>http://news.xb2.net/sqlexpress/632/Re%3a+EXCEL+cells+without+header.html</link><comments>http://news.xb2.net/sqlexpress/632/Re%3a+EXCEL+cells+without+header.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Reinthaler Rudolf&amp;quot; &amp;lt;office@c-tec.at&amp;gt; wrote in
news:58fxos54fbf8qc2.240120060937@ANDREA: 

&amp;gt; I have to write to a EXCEL Sheet without headers in the columns. How
&amp;gt; can I address this cells without the name of the cell ?

oCur:=oConn:Cursor('SELECT * FROM `Test$A2:Z10`')
oCur:Execute()
? oCur:FieldGet(1), oCur:FieldGet(2),....

&amp;gt; Another question is, how can I creat a new XLS file with a table  ?

see sqlexcel.prg

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/632</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/633/Re%3a+New+customer.html</guid><title>Re: New customer</title><pubDate>Fri, 25 Nov 2005 16:38:52 +0100</pubDate><link>http://news.xb2.net/sqlexpress/633/Re%3a+New+customer.html</link><comments>http://news.xb2.net/sqlexpress/633/Re%3a+New+customer.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Toma Grom&amp;quot; &amp;lt;tomaz.grom@siol.net&amp;gt; wrote in 
news:hmuulnn5ss8bt8g.251120051125@ANDREA:

&amp;gt; I have just paid SQLExpress Pro.
&amp;gt; New era seems to begin for me    :-).

Thank you for the order and welcome to the 21st century &amp;lt;g&amp;gt;

I'm sure you will find that SQL requires a small paradigm shift.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/633</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/634/MySQL.html</guid><title>MySQL</title><pubDate>Thu, 19 Jan 2006 14:50:05 +0100</pubDate><link>http://news.xb2.net/sqlexpress/634/MySQL.html</link><comments>http://news.xb2.net/sqlexpress/634/MySQL.html</comments><author>office@c-tec.at</author><description>&lt;pre&gt;Hello,
does anyone know how to start with MySQL after the installation ? I have 
also installed MySQLAdministrator and created a connection with username and 
password, Hostname localhost. In ODBC I have defined a User DSN with Server 
localhost, Username and password. When testing, I get a errormessage
 [MySQL][ODBC 3.51 Driver]Access denied for user 'ctec'@'localhost' (using 
password: YES)

regards
Rudolf&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/634</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/635/Re%3a+SQLExpress+objects+crash+VXB+debugger.html</guid><title>Re: SQLExpress objects crash VXB debugger</title><pubDate>Thu, 15 Jun 2006 15:39:20 +0200</pubDate><link>http://news.xb2.net/sqlexpress/635/Re%3a+SQLExpress+objects+crash+VXB+debugger.html</link><comments>http://news.xb2.net/sqlexpress/635/Re%3a+SQLExpress+objects+crash+VXB+debugger.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Mahanimann&amp;quot; &amp;lt;paaldalen@gmail.com&amp;gt; wrote in
news:mw7kcbzjckzcrti.150620061437@ANDREA: 

&amp;gt; Now I've upgraded to v1.90.331 and SQLExpress v...24.  VXB still
&amp;gt; crashes, XppDbg.exe is better, but freezes randomly in the same way.
&amp;gt; Any suggestions? Which debugger do you use successfully?

Actually, I don't use the debugger. I write my own debug code that is 
enabled by the pre-processor when compiling with a debug define. The debug 
output is simply routed to a separate CRT window and logged to a file.

First, I would make sure that I don't have any DLL version mis-matches. If 
I'm 100% sure that everything is up-to-date and the problem is still there, 
then I would report the problem to Alaska Software.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/635</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/636/Re%3a+How+to+do+a+browse+(no+kidding).html</guid><title>Re: How to do a browse (no kidding)</title><pubDate>Wed, 20 Dec 2006 12:05:19 -0500</pubDate><link>http://news.xb2.net/sqlexpress/636/Re%3a+How+to+do+a+browse+(no+kidding).html</link><comments>http://news.xb2.net/sqlexpress/636/Re%3a+How+to+do+a+browse+(no+kidding).html</comments><author>jwrl@charter.net</author><description>&lt;pre&gt;As an aside note you should not use SELECT *

Specify only the fields (columns) needed for the browse. This can speed
things up a lot since only the required fields are moved across the network.

Jim

Mahanimann wrote:
&amp;gt; Hi,
&amp;gt; 
&amp;gt; Have a look at the thread &amp;quot;Large datasets&amp;quot; which is a discussion on your 
&amp;gt; topic.  I think the conclusion is summarized to Boris' reply....
&amp;gt; 
&amp;gt;&amp;gt; If you really need to browse such a large result set, the
&amp;gt;&amp;gt; solution is to use SQLSelect with either a dynamic or keyset driven cursor.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; However, I do not recomend browsing such a large result set. I suggest that
&amp;gt;&amp;gt; you redesign the UI and browse data in smaller chunks.
&amp;gt; 
&amp;gt; ... or Phil Ide's idea....
&amp;gt; 
&amp;gt;&amp;gt; If I had time, I'd knock up an SqlDacPagedDataStore for use with 
&amp;gt;&amp;gt; SqlExpress,
&amp;gt;&amp;gt; because I think that would prove a very useful tool to a great many people.
&amp;gt;&amp;gt; Unfortunately I am so busy at the moment that I can't really say for 
&amp;gt;&amp;gt; certain
&amp;gt;&amp;gt; when I'd be able to get around to it.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; When I get some free time, and if no-one has beaten me to it, I'll 
&amp;gt;&amp;gt; certainly
&amp;gt;&amp;gt; have a go.
&amp;gt; 
&amp;gt; ...I quite agree that this would be a VERY usefull too to a great many 
&amp;gt; people.  A little later Phil wrote...
&amp;gt; 
&amp;gt;&amp;gt; Ok, I've written one :-)
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Don't get excited just yet, it'll need a bit of testing and debugging, but
&amp;gt;&amp;gt; it was (generally) much simpler than I thought, knocking in at around 240
&amp;gt;&amp;gt; lines of code. I have to add the methods scrollUp, scrollDown and scrollTo,
&amp;gt;&amp;gt; but won't do that until the rest of it is working.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; When I get my next free 10 minutes, I'll start debugging it :-)
&amp;gt; 
&amp;gt; I don't think he has had the time for that yet.  I have posted a couple of 
&amp;gt; reminders for him... (Phil, are you there?)
&amp;gt; 
&amp;gt; Anyways, I started with Xbase this summer and have not yet any good idea on 
&amp;gt; how to handle large cursors.  With &amp;quot;large cursors&amp;quot; in this context I presume 
&amp;gt; we are using SqlSelect (serverside) cursors.
&amp;gt; 
&amp;gt; Because of time preassure I have not had the time to experiment much, so 
&amp;gt; until I get a better idea from here/by myself I use a &amp;quot; 'Fetch previous/next 
&amp;gt; XX records'-buttons&amp;quot;-solution.  Searching goes through a temporary 
&amp;gt; search/lookup-cursor from where I get a unique key (:aPrimaryKey) which I 
&amp;gt; then search for in the primary cursor. If it's not there, I change the 
&amp;gt; oCurs:SqlString accordingly and do a oCurs:Refresh().  Cumbersome, but the 
&amp;gt; best I have had the time to come up with so far.
&amp;gt; 
&amp;gt; I have not yet implemented this solution into my app yet (at the moment I 
&amp;gt; retrieve all rows, not subsets), but I've tested it and it works pretty 
&amp;gt; fast.  What I have implemented as a result from this testing is sorting 
&amp;gt; SqlSelect cursors in browses.  When the user clicks on a browse heading the 
&amp;gt; cursor gets sorted by that column by changing the oCurs:SqlString as 
&amp;gt; mentioned above (in this case the only change in the :SqlString is the &amp;quot;... 
&amp;gt; ORDER BY ...&amp;quot; part).
&amp;gt; 
&amp;gt; I also have a generic browse function and all calls to SqlDataSet/SqlSelect 
&amp;gt; goes through one semi-generic function.  This makes it a snap to change any 
&amp;gt; behaviour for the whole app.
&amp;gt; 
&amp;gt;&amp;gt; It is possible to limit the dataset, but how do I deal with the scrolling
&amp;gt;&amp;gt; up/scrolling down?
&amp;gt; 
&amp;gt; Yes, this is why I have not implemented it yet.  When scrolling in my (test) 
&amp;gt; browse and you reach oCurs:Bof()/Eof() you have to push either the &amp;quot;Fetch 
&amp;gt; next XX records&amp;quot; button or the &amp;quot;Fetch previous XX records&amp;quot; button.  When I 
&amp;gt; get the time I will make this fetching automatic.  This will give the user 
&amp;gt; the impression of scrolling through a full cursor, not just a subset of a 
&amp;gt; couple of houndred rows.  I think I sat the subset limit to 200 
&amp;gt; rows/records, and that works very fast in my test environment which (in a 
&amp;gt; separate test) also included a 10 m/bit network.
&amp;gt; 
&amp;gt; I hope many people give their oppinion on this!
&amp;gt; 
&amp;gt; Best regards,
&amp;gt; Mahanimann
&amp;gt; 
&amp;gt;&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/636</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/637/Re%3a+SQLDataSet%3aSort().html</guid><title>Re: SQLDataSet:Sort()</title><pubDate>Wed, 15 Feb 2006 20:32:32 +0100</pubDate><link>http://news.xb2.net/sqlexpress/637/Re%3a+SQLDataSet%3aSort().html</link><comments>http://news.xb2.net/sqlexpress/637/Re%3a+SQLDataSet%3aSort().html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Stu Fraser&amp;quot; &amp;lt;stuart-fraser@shaw.ca&amp;gt; wrote in 
news:2g0nd8scswqsqfb.150220061900@ANDREA:

&amp;gt; So.... Any other suggestions?

It works fine in my small test program. Can you try doing the sorting 
outside of your browser and displaying the results in a DOS window, eg:

   oCursor:gobottom()
   oCursor:sort(&amp;quot;somefield&amp;quot;, .t.)
   oCursor:gotop()
   ? &amp;quot;sorted ascending....&amp;quot;
   while ! oCursor:eof
      ? oCursor:FieldGet(&amp;quot;somefield&amp;quot;)
      oCursor:skip()
   end

   oCursor:sort(&amp;quot;somefield&amp;quot;, .f.)
   oCursor:gotop()
   ? &amp;quot;sorted decending....&amp;quot;
   while ! oCursor:eof
      ? oCursor:FieldGet(&amp;quot;somefield&amp;quot;)
      oCursor:skip()
   end


Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/637</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/638/SQLExpress%2c+ADS+and+deleted+records.html</guid><title>SQLExpress, ADS and deleted records</title><pubDate>Mon, 30 Oct 2006 09:46:42 +0100</pubDate><link>http://news.xb2.net/sqlexpress/638/SQLExpress%2c+ADS+and+deleted+records.html</link><comments>http://news.xb2.net/sqlexpress/638/SQLExpress%2c+ADS+and+deleted+records.html</comments><author>tomaz.grom@siol.net</author><description>&lt;pre&gt;Boris,

maybe you know what happens, when xBase programmer hide deleted records 
inside .DBF table with command SET DELETED OFF and then with an SQL 
statement request data from the .DBF table.
Are deleted records hidden or not, I mean, does the cursor (result set) 
brings back only desired data, or mixture of deleted and undeleted records ?

Best regards

Toma&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/638</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/639/Re%3a+sqlexpress+and+seek.html</guid><title>Re: sqlexpress and seek</title><pubDate>Thu, 20 Apr 2006 19:35:10 +0200</pubDate><link>http://news.xb2.net/sqlexpress/639/Re%3a+sqlexpress+and+seek.html</link><comments>http://news.xb2.net/sqlexpress/639/Re%3a+sqlexpress+and+seek.html</comments><author>placek@opava.cz</author><description>&lt;pre&gt;o.k, but I'm using only local server mssql.
And I would like to use &amp;quot;order by&amp;quot;.
In my database I set the correct collation, so in this table and this 
char row. Exist any other setting ?

thanks, placek


Boris Borzic napsal(a):
&amp;gt; placek &amp;lt;placek@opava.cz&amp;gt; wrote in news:zff54og4wpcnfwx.200420061750@ANDREA:
&amp;gt; 
&amp;gt;&amp;gt; Please, what is the difference between
&amp;gt;&amp;gt; sql command &amp;quot;Select ... Order By ...&amp;quot;  and :Sort() method ?
&amp;gt; 
&amp;gt; :sort() does the sorting on the client (in your app), &amp;quot;ORDER BY&amp;quot; does it on 
&amp;gt; the server side (by the DBMS). Because of differences in collation 
&amp;gt; sequences between the server and the client, the results can be different.
&amp;gt; 
&amp;gt; Best regards,
&amp;gt; Boris Borzic&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/639</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/640/Re%3a+problems+when+read+blob+fields+with+images+from+dbms.html</guid><title>Re: problems when read blob fields with images from dbms</title><pubDate>Mon, 4 Jun 2007 14:01:30 +0200</pubDate><link>http://news.xb2.net/sqlexpress/640/Re%3a+problems+when+read+blob+fields+with+images+from+dbms.html</link><comments>http://news.xb2.net/sqlexpress/640/Re%3a+problems+when+read+blob+fields+with+images+from+dbms.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;giuseppe&amp;quot; &amp;lt;airsoft1@tin.it&amp;gt; wrote in
news:0os51cdtoye8hch.030620071939@VDS-472773: 

&amp;gt; I use Mysql v. 4.1.14 and sqlexepres 3.0.03
&amp;gt; I save pictures into a Longblob field with the command 
&amp;gt; 'field=load_file(&amp;lt;file_name&amp;gt;)'.
&amp;gt; when I read the field with the images from dbms and save it on the
&amp;gt; disk, the size of the images is changed and I can't. read it
&amp;gt; (photoshop,jpg viewer etc.).
&amp;gt; The same operation with MysqlQueryBrowser works fine.(so I think that
&amp;gt; isn't a problem of database)

It may be a problem of the ODBC driver. Please try the same operation with 
another DBMS (e. MS SQLServer if available) and also try it with another 
ODBC driver.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/640</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/641/Attacher+a+un+fichier+en+rseau.html</guid><title>Attacher a un fichier en rseau</title><pubDate>Thu, 9 Feb 2006 10:33:02 +0100</pubDate><link>http://news.xb2.net/sqlexpress/641/Attacher+a+un+fichier+en+rseau.html</link><comments>http://news.xb2.net/sqlexpress/641/Attacher+a+un+fichier+en+rseau.html</comments><author>thomas_reynald@msn.com</author><description>&lt;pre&gt;Bonjour,

je voudrais utiliser un fichier .mdf sis sur un repertoire en rseau.
L'interface de management de SQLExpress ne me permet que de choisir un 
fichiers sur mon disque C.
Par Script, si je met, par exemple \\monServer\Echange\database.mdf

ca ne fonctionne pas (fonctionne avec un fichier local)

Merci

Renfield
MVP Visual Basic&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/641</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/642/Error+in+fieldget().html</guid><title>Error in fieldget()</title><pubDate>Mon, 20 Nov 2006 19:40:25 -0700</pubDate><link>http://news.xb2.net/sqlexpress/642/Error+in+fieldget().html</link><comments>http://news.xb2.net/sqlexpress/642/Error+in+fieldget().html</comments><author>ramirezosvaldo@prodigy.net.mx</author><description>&lt;pre&gt;Hello guys

I have this

    cString := &amp;quot;SELECT * FROM &amp;quot;+_main_alias +&amp;quot; where cli_id = 
&amp;quot;+alltrim(str(oCursor:fieldget(&amp;quot;cli_id&amp;quot;)))+&amp;quot;;&amp;quot;
    oStmt   := SQLSelect():new( cString , oConnection )

if I put this :

      m-&amp;gt;cli_id   := oStmt:fieldget(&amp;quot;CLI_ID&amp;quot;)
      m-&amp;gt;cli_nom  := oStmt:fieldget(&amp;quot;cli_nom&amp;quot;)
      m-&amp;gt;cli_dir  := oStmt:fieldget(&amp;quot;cli_dir&amp;quot;)
      m-&amp;gt;cli_tel1 := oStmt:fieldget(&amp;quot;cli_tel1&amp;quot;)

I have an error in fieldget()

But If I put this

    if oStmt:reccount() &amp;gt; 0

then this :

      m-&amp;gt;cli_id   := oStmt:fieldget(&amp;quot;CLI_ID&amp;quot;)
      m-&amp;gt;cli_nom  := oStmt:fieldget(&amp;quot;cli_nom&amp;quot;)
      m-&amp;gt;cli_dir  := oStmt:fieldget(&amp;quot;cli_dir&amp;quot;)
      m-&amp;gt;cli_tel1 := oStmt:fieldget(&amp;quot;cli_tel1&amp;quot;)

All work fine.

Any hints ?

Best Regars
Osvaldo Ramirez


Sorry If I have or ask some erroneous thing

P.S. I attach the xpperror.log&lt;/pre&gt;</description><enclosure url="http://news.xb2.net/sqlexpress/642/attachments/0/XPPERROR.LOG" length="1372" type="text/plain" /><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/642</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/643/Re%3a+Microsoft+ODBC+for+Oracle+and+Win+XP.html</guid><title>Re: Microsoft ODBC for Oracle and Win XP</title><pubDate>Tue, 6 Jun 2006 21:47:55 +0200</pubDate><link>http://news.xb2.net/sqlexpress/643/Re%3a+Microsoft+ODBC+for+Oracle+and+Win+XP.html</link><comments>http://news.xb2.net/sqlexpress/643/Re%3a+Microsoft+ODBC+for+Oracle+and+Win+XP.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;Boris Borzic &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in 
news:Xns97DAA05B653BESQLExpress@80.32.233.35:

&amp;gt; You can't pass that as a param. It's an ODBC escape sequence that is 
&amp;gt; replaced by the ODBC driver with a proper date or time.

you can also try this:

where RFacts.unit_notified_DTS &amp;gt;= ?}
    and RFacts.unit_notified_DTS &amp;lt;= ?}

oCursor:Execute( {date(), date()} )

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/643</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/644/Re%3a+Incremetal+search.html</guid><title>Re: Incremetal search</title><pubDate>Mon, 27 Feb 2006 14:47:28 +0100</pubDate><link>http://news.xb2.net/sqlexpress/644/Re%3a+Incremetal+search.html</link><comments>http://news.xb2.net/sqlexpress/644/Re%3a+Incremetal+search.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Ismail YALCIN&amp;quot; &amp;lt;iyalcin@3cbilyaz.com&amp;gt; wrote in 
news:3pfz2f17d41bap8.270220061126@ANDREA:

&amp;gt; can i change cursor rule
&amp;gt; oCursor:=oConn:Corsor(&amp;quot;Select * from customer Where user=&amp;quot;test&amp;quot;)
&amp;gt; .
&amp;gt; .
&amp;gt; after thant i want to change curser rule
&amp;gt; oCursor:=oConn:Corsor(&amp;quot;Select * from customer Where user=&amp;quot;learn&amp;quot;)
&amp;gt; Can I without destroying first cursor or any other way ..

oCursor:=oConn:Cursor(&amp;quot;Select * from customer Where user=?)
oCursor:execute(&amp;quot;test&amp;quot;)
? oCursor:FieldGet(1),...
? oCursor:skip()
// etc...

oCursor:execute(&amp;quot;learn&amp;quot;)
? oCursor:FieldGet(1),...
? oCursor:skip()
// etc...


&amp;gt; Which  is method is  useful for connection type

If you are executing many SQL statements it's best to keep the connection 
open until you terminate your app. Have a look at MyDefaultSQLConnection() 
in SQLTEST3.PRG 


Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/644</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/645/Re%3a+ORA-01445+Error.html</guid><title>Re: ORA-01445 Error</title><pubDate>Tue, 5 Jun 2007 09:06:46 -0700</pubDate><link>http://news.xb2.net/sqlexpress/645/Re%3a+ORA-01445+Error.html</link><comments>http://news.xb2.net/sqlexpress/645/Re%3a+ORA-01445+Error.html</comments><author>stuart.fraser@cgi.com</author><description>&lt;pre&gt;Hi Boris,

yes that succeeds and does not create the log.  I suspected the same, 
however I need more functionality with the cursor than the FORWARD_ONLY 
gives me.  i.e. I need to be able to present this in a browse that can be 
scrolled up and down and I need to do a locate within that browse at times 
as well.

Stu.

&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message 
news:Xns994679E4A60CSQLExpress@62.193.212.32...
&amp;gt; &amp;quot;Stu Fraser&amp;quot; &amp;lt;stuart.fraser@cgi.com&amp;gt; wrote in
&amp;gt; news:p1kga0dtbkued44.050620071744@VDS-472773:
&amp;gt;
&amp;gt;&amp;gt; I have a query running against an Oracle View.  When it does run it
&amp;gt;&amp;gt; actually succeeds, however I get an sqlerror.log created as well with
&amp;gt;&amp;gt; the following information:
&amp;gt;
&amp;gt; Can you try running the query using a SQL_CURSOR_FORWARD_ONLY cursor
&amp;gt; instead of a keyset driven cursor.
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/645</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/646/Re%3a+MYSQL+Connection+to+Webserver.html</guid><title>Re: MYSQL Connection to Webserver</title><pubDate>Tue, 17 Jan 2006 18:15:45 +0100</pubDate><link>http://news.xb2.net/sqlexpress/646/Re%3a+MYSQL+Connection+to+Webserver.html</link><comments>http://news.xb2.net/sqlexpress/646/Re%3a+MYSQL+Connection+to+Webserver.html</comments><author>office@c-tec.at</author><description>&lt;pre&gt;Hello Boris,
thank you, I forgot that my provider has a special prefix for the databases, 
now it works perfect.
But I still cannot create a local DSN for MySQL. Also I have no idea how to 
create a database without SQL commands.
regards
Rudolf


&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; schrieb im Newsbeitrag 
news:Xns974E6D48B78EBSQLExpress@80.32.233.35...
&amp;gt; &amp;quot;Reinthaler Rudolf&amp;quot; &amp;lt;office@c-tec.at&amp;gt; wrote in
&amp;gt; news:rpweh4qghxwwyef.170120061625@ANDREA:
&amp;gt;
&amp;gt;&amp;gt; I have downloades MySQL Administrator and can now connect to my SQL
&amp;gt;&amp;gt; Database on the server via server webaddress and port. So I think it
&amp;gt;&amp;gt; must also be possible with SQLEXPRESS. But how ?
&amp;gt;
&amp;gt; Have you tried creating a DSN?
&amp;gt;
&amp;gt; http://dev.mysql.com/doc/refman/5.0/en/dsn-on-windows.html
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/646</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/647/Re%3a+sql+null+statement.html</guid><title>Re: sql null statement</title><pubDate>Wed, 8 Mar 2006 15:54:18 -0500</pubDate><link>http://news.xb2.net/sqlexpress/647/Re%3a+sql+null+statement.html</link><comments>http://news.xb2.net/sqlexpress/647/Re%3a+sql+null+statement.html</comments><author>jax_only@news.nmsc.gov</author><description>&lt;pre&gt;I actually wrote the wrong thing, the error is:

= SQL ERROR ===========
Date: 20060308 14:00:35
C:\iFolder\projects\web\v2\main.exe, Thread: 7
Windows XP 05.01 Build 02600 Service Pack 2, SQLXpp: 3.1.23, Runtime: 
1.90.326
NULL STMT handle

Thread ID 7
Called from SQLSTATEMENT:EXECUTE(450)
Called from SQLSELECT:EXECUTE(1574)
Called from SQLSELECT:REFRESH(1026)
Called from SQLSELECT:RECCOUNT(3047)
Called from USER_LOGIN(40)
Called from WEB_DISP(36)
Called from HTTPHANDLER(35)
Called from (B)SW_SERVER(88)
Called from XBHTTPTHREAD:EXECUTE(4074)

SQLString: SELECT FULL_NAME, USERCODE, COMPANY_NO, AGENCY_NO, CLEARENCES, 
REC_ORIG FROM USERS





&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message 
news:Xns978088643FEFSQLExpress@80.32.233.35...
&amp;gt; &amp;quot;Erik&amp;quot; &amp;lt;edimail3@nmsc.gov&amp;gt; wrote in
&amp;gt; news:no1makl8zg53vpq.080320061542@ANDREA:
&amp;gt;
&amp;gt;&amp;gt; I sometimes get the error &amp;quot;sql null statement&amp;quot; when I execute a simple
&amp;gt;&amp;gt; select statement against a ADS(dictionary) ODBC database.  The strange
&amp;gt;&amp;gt; thing is that sometimes it returns the correct result, most of the
&amp;gt;&amp;gt; time it logs the &amp;quot;sql null statement&amp;quot; error ?
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; ODBC is kind of new to me, any ideas how to resolve this kind of
&amp;gt;&amp;gt; error?
&amp;gt;
&amp;gt; I have not seen this particular error before. Suggest you post the 
&amp;gt; question
&amp;gt; on the ADS NG: news://devzone.advantagedatabase.com
&amp;gt;
&amp;gt; You may want to give them more info like the actual statement and error
&amp;gt; code numbers.
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/647</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/648/Re%3a+Installer.html</guid><title>Re: Installer</title><pubDate>Thu, 26 Oct 2006 22:54:00 +0200</pubDate><link>http://news.xb2.net/sqlexpress/648/Re%3a+Installer.html</link><comments>http://news.xb2.net/sqlexpress/648/Re%3a+Installer.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;Osvaldo Ramirez &amp;lt;ramirezosvaldo@prodigy.net.mx&amp;gt; wrote in 
news:6spwvo6tbtu57by.261020061633@ANDREA:

&amp;gt; The next week I will &amp;quot;distribuite&amp;quot; my first app that use sql, ( it is 
&amp;gt; very small ), it use only 2 tables, so I want to make a setup with inno 
&amp;gt; setup, so, I want to inlclude the ODBC of mysql in that install.
&amp;gt; I think that the odbc is an dll and some additional files, but how to 
&amp;gt; know where is what are ?

hope this helps:
http://dev.mysql.com/doc/refman/5.0/en/myodbc-installation-binary.html

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/648</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/649/Re%3a+check+if+ODBC+driver+is+installed.html</guid><title>Re: check if ODBC driver is installed</title><pubDate>Mon, 27 Mar 2006 15:16:19 +0200</pubDate><link>http://news.xb2.net/sqlexpress/649/Re%3a+check+if+ODBC+driver+is+installed.html</link><comments>http://news.xb2.net/sqlexpress/649/Re%3a+check+if+ODBC+driver+is+installed.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Reinthaler Rudolf&amp;quot; &amp;lt;office@c-tec.at&amp;gt; wrote in
news:1vwrcnk1wmzmgse.270320061207@ANDREA: 

&amp;gt; when no ODBC driver is insalled or wrong configured, the application
&amp;gt; quits when connecting without any message. How can I check if the
&amp;gt; driver is correct installed to prevent this problem ?

The app should not terminate. The :connect() method should return .F. and 
an error log should be generated.

&amp;gt; How can I make a install programm for installing MYSQL, the ODBC
&amp;gt; driver and configuration of all ?

Some install programs will do this for you.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/649</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/650/Re%3a+PostgreSQL+connection.html</guid><title>Re: PostgreSQL connection</title><pubDate>Mon, 21 Aug 2006 14:55:03 +0100</pubDate><link>http://news.xb2.net/sqlexpress/650/Re%3a+PostgreSQL+connection.html</link><comments>http://news.xb2.net/sqlexpress/650/Re%3a+PostgreSQL+connection.html</comments><author>phil@pbih.net</author><description>&lt;pre&gt;Leandro,

&amp;gt; Thanks for your response, but I'm wonder if with SQLExpress or with XbPgSQL 
&amp;gt; classes, I can work the way I do in xbase++ with workareas, relations, 
&amp;gt; filters, copy to, dbcreate(), fields inline assigment ( (nArea )-&amp;gt;field := 
&amp;gt; xSomeValue), dbseek(), dbdelete(), dbcommit(), and the most important to me 
&amp;gt; dbsetscope().

To do this, you'll need to use Alaska's ODBCDBE, which interfaces with ODBC
at one end, and the DBML (database manipulation layer - the command/function
interface which supports COMMIT, SEEK etc.).


&amp;gt; It could be good If you can show me some examples. And finally excuse my 
&amp;gt; poor SQL knowledge (I'm reading), but what do you mean with &amp;quot;the right type 
&amp;gt; of cursor&amp;quot;?

Well, when dealing with SQL, you request the data you want to examine. For
example, the fetch all customers who live in Holland, you might do this:

  SELECT * from customers where country='NL';

This will return a set of records containing only the matching records. You
cannot see any other records.  You can set the order of the returned records
too:

  SELECT * from customers where country='NL' order by country;

When you fetch the entire database (table), you also fetch a set which just
happenss to contain all records:

  SELECT * from customers;

A cursor is like a record pointer - it points to a particular record within
a particular record set. Cursors are important, because they operate in
different modes. These allow you to fetch all the data in the set to your
application at once, or fetch individual records on demand. They can also be
sensitive to or ignore any updates to records since you sent the initial
request to fetch the data.

Regards,
-- 
Phil Ide

-----------------------------------------------------------------
xbHCL (http://www.xbHCL.com)     Xbase++ HTML command layer
PBIH  (http://www.pbih.eu)       Polar Bear International Hosting
-----------------------------------------------------------------
Xbase++ FAQ, Libraries and Sources:
http://www.idep.org.uk/xbase

Shakka, when the walls fell&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/650</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/651/Re%3a+ORA-01445+Error.html</guid><title>Re: ORA-01445 Error</title><pubDate>Tue, 5 Jun 2007 14:20:52 -0700</pubDate><link>http://news.xb2.net/sqlexpress/651/Re%3a+ORA-01445+Error.html</link><comments>http://news.xb2.net/sqlexpress/651/Re%3a+ORA-01445+Error.html</comments><author>stuart.fraser@cgi.com</author><description>&lt;pre&gt;Yes I use Data Sets where ever possible when I need a scroll-able cursor, 
however in this particular case the user is defining the parameters for the 
query and so could theoretically request 500,000 rows which will take a very 
long time on a data set.

Since this has been in production for some time, and it doesn't crash the 
app, and it does return the rows anyway I'm going to leave it as is I think.

thanks for the input,

Stu.

&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message 
news:Xns99469C3827C49SQLExpress@62.193.212.32...
&amp;gt; &amp;quot;Stu Fraser&amp;quot; &amp;lt;stuart.fraser@cgi.com&amp;gt; wrote in
&amp;gt; news:0dl2jmnvxaghi0j.050620071836@VDS-472773:
&amp;gt;
&amp;gt;&amp;gt; I just noticed this in the docs for read only concurrancy.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;quot;Although this is a read-only cursor, updates to the underlying table
&amp;gt;&amp;gt; may still be performed using the :FieldPut() and :Delete() methods
&amp;gt;&amp;gt; since SQLExpress will generate a searched UPDATE or DELETE statement
&amp;gt;&amp;gt; to apply the changes. &amp;quot;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; So I'm guessing you are requesting a ROW ID in there?  Is there any
&amp;gt;&amp;gt; way with SQL Express to make a scrollable cursor that doesn't request
&amp;gt;&amp;gt; a ROW ID ?
&amp;gt;
&amp;gt; No, I'm not requesting any additional fields. I suspect the Oracle ODBC
&amp;gt; driver is doing that.
&amp;gt;
&amp;gt; If you need a scrollable cursor, I suggest you use SQLDataSet.
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools
&amp;gt;&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/651</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/652/Re%3a+Oracle+ODBC+Error.html</guid><title>Re: Oracle ODBC Error</title><pubDate>Thu, 5 Oct 2006 20:43:01 +0200</pubDate><link>http://news.xb2.net/sqlexpress/652/Re%3a+Oracle+ODBC+Error.html</link><comments>http://news.xb2.net/sqlexpress/652/Re%3a+Oracle+ODBC+Error.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Stu Fraser&amp;quot; &amp;lt;stuart.fraser@cgi.com&amp;gt; wrote in
news:owsdtnmqsvwfne2.051020061903@ANDREA: 

&amp;gt; In this particular instance I am creating an SQLDataSet.   The Docs
&amp;gt; mention: 
&amp;gt; 
&amp;gt; When instantiated, this class will open the fastest and least
&amp;gt; expensive (read-only, forward) server-side cursor
&amp;gt; 
&amp;gt; I am just using an SQL Statement when creating this.
&amp;gt; 
&amp;gt; oCursor  := SQLDataSet():new(cStatement, oConnection, ,,,,,.t.,.t.)
&amp;gt; 
&amp;gt; Can I assume this is read only and not the cause of the problem?

Yes, this will create a read-only cursor. It is not the cause of your ROWID 
problem.

Have you tried another version of the ODBC driver?

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/652</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/653/Re%3a+Error+in+fieldget().html</guid><title>Re: Error in fieldget()</title><pubDate>Wed, 22 Nov 2006 15:35:41 +0100</pubDate><link>http://news.xb2.net/sqlexpress/653/Re%3a+Error+in+fieldget().html</link><comments>http://news.xb2.net/sqlexpress/653/Re%3a+Error+in+fieldget().html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;Osvaldo Ramirez &amp;lt;ramirezosvaldo@prodigy.net.mx&amp;gt; wrote in 
news:nd57hplsroccalh.221120060622@ANDREA:

&amp;gt; The thing is, this number is the key of the relation of other tables
&amp;gt; For example: an Invoice has a client number and this client number is 
&amp;gt; the key to relation to the client table, so if I put this as 
&amp;gt; auto-incremental number, what happend If I delete some record and add a 
&amp;gt; new record, ? Could be the same number ?

No. An auto-incrementing field will always give you a new number when you 
insert a new row.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/653</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/654/Re%3a+SEEK+and+you+won't+find.html</guid><title>Re: SEEK and you won't find</title><pubDate>Fri, 7 Apr 2006 15:08:56 +0200</pubDate><link>http://news.xb2.net/sqlexpress/654/Re%3a+SEEK+and+you+won't+find.html</link><comments>http://news.xb2.net/sqlexpress/654/Re%3a+SEEK+and+you+won't+find.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Ernie Barlow&amp;quot; &amp;lt;emailme@work.com&amp;gt; wrote in 
news:t5ipybmec6jla5w.070420061021@ANDREA:

&amp;gt; PS.  Is : Seek() with a DESC  ordered dataset a possibility in a future
&amp;gt; release?

Yes, it is a possibility... although you are the first person to ask for 
this.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/654</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/655/Re%3a+%3aRecno()+alternative%3f.html</guid><title>Re: :Recno() alternative?</title><pubDate>Sat, 09 Sep 2006 13:34:21 -0400</pubDate><link>http://news.xb2.net/sqlexpress/655/Re%3a+%3aRecno()+alternative%3f.html</link><comments>http://news.xb2.net/sqlexpress/655/Re%3a+%3aRecno()+alternative%3f.html</comments><author>jwrl@charter.net</author><description>&lt;pre&gt;Well you could just open a new cursor do what is needed there and your
original has never left the base row. Just go back to the original cursor.

Jim







Mahanimann wrote:
&amp;gt;&amp;gt; In SQL you don't need an index you can request sets of records in any
&amp;gt;&amp;gt; order with any filter. Having an index speeds things up. Generally
&amp;gt; 
&amp;gt; Yes I know. I must have expressed myself wrongly.
&amp;gt; 
&amp;gt; What I mean is when you f.ex. use a generic sort-function, you need to 
&amp;gt; :GoTo(nTheActiveRecnoBeforeTheSort) after the sort.  But, the :Recno() 
&amp;gt; numbering change with the sort order, so one can't use :GoTo(). When you 
&amp;gt; can't use :GoTo(), you need another unique value to seek on.  When the 
&amp;gt; environment is generic, you need to know where to find that unique value 
&amp;gt; within the oCursor.
&amp;gt; 
&amp;gt; That's where my question about :aPrimaryKey comes in.  If I could access 
&amp;gt; oCursor:aPrimarKey in the generic sort-function, my &amp;quot;problem&amp;quot; is solved. Of 
&amp;gt; course it is simple to overcome this, but why code extra for something that 
&amp;gt; is allready there.  I do define :aPrimaryKey in all cursors.
&amp;gt; 
&amp;gt; That is one part of my question, oCursor:aPrimaryKey is there, so why not 
&amp;gt; use it? (and why not give access to it?)
&amp;gt; 
&amp;gt; The other part is:  How do seasoned SqlExpress'ers handles situations where 
&amp;gt; they need to go back to a specific row/record (after f.ex. a change in a 
&amp;gt; browse sort order).  The function is generic, so it has no clue about which 
&amp;gt; table it is sorting.  The sort-function only recives oCursor as a parameter.
&amp;gt; 
&amp;gt; I'll be more specific in my phrasing from now on :-)
&amp;gt; 
&amp;gt; Thanks for any reply,
&amp;gt; Mahanimann 
&amp;gt; 
&amp;gt;&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/655</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/656/Ann%3a+SQLExpress+3.1.23+released.html</guid><title>Ann: SQLExpress 3.1.23 released</title><pubDate>Fri, 6 Jan 2006 21:21:37 +0100</pubDate><link>http://news.xb2.net/sqlexpress/656/Ann%3a+SQLExpress+3.1.23+released.html</link><comments>http://news.xb2.net/sqlexpress/656/Ann%3a+SQLExpress+3.1.23+released.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;SQLExpress ver 3.1.23 has been released this week.

This upgrade is provided FREE of charge to all current SQLExpress
subscribers. If you are a registered user, you should have already 
received email notification of the new build; including download and 
installation instructions. 

If you are not a registered SQLExpress user, then please follow the 
hyperlinks below. When you purchase SQLExpress, you will receive one 
full year of free technical support and software updates.

Click here to:

   * Place an order:
     http://sqlexpress.net/register.htm

   * Get a demo:
     mailto:demo@sqlexpress.net?subject=sqlexpress_demo

   * Learn more about SQLExpress:
     http://sqlexpress.net

                            --- * ---

SQLExpress is an object-oriented ODBC library that provides your
Xbase++ application with seamless connectivity to many RDBMS and
ISAM databases. With SQLExpress you will be able to create
industrial strength client/server applications using databases such
as Advantage Database, MS-SQL Server, MySQL, Oracle, DB2, Sybase, 
PgSQL and many others. SQLExpress may also be used with many 
flat-file databases, such as MS-Access, dBase, Paradox and Btrieve.

If you are building mission critical database applications, then
you need SQLExpress!

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/656</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/657/Re%3a+Error+in+fieldget().html</guid><title>Re: Error in fieldget()</title><pubDate>Tue, 21 Nov 2006 23:30:51 +0100</pubDate><link>http://news.xb2.net/sqlexpress/657/Re%3a+Error+in+fieldget().html</link><comments>http://news.xb2.net/sqlexpress/657/Re%3a+Error+in+fieldget().html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;Osvaldo Ramirez &amp;lt;ramirezosvaldo@prodigy.net.mx&amp;gt; wrote in 
news:fyl6qbkicwvtj25.211120062006@ANDREA:

&amp;gt; Boris, actualy I have a dbf called control, where I store all 
&amp;gt; consecutive number of my others dbf, like invoice, cuotation, 
&amp;gt; clients,etc,etc. So, when I save an Invoice, I add one number to my 
&amp;gt; control table and get this number to save on my new invoices record.
&amp;gt; 
&amp;gt; So I want to ask, if this kind of procedure is ok, I mean put a sql 
&amp;gt; table like control, to save all consecutive number ?

You can do it that way, but I prefer to simply add an auto-incramenting 
field to the target tables. For example when you insert a new row to the 
invoice table, the DBMS will automatically generate a new invoice number 
(one less step).

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/657</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/658/Large+datasets+-+Phil%3f.html</guid><title>Large datasets - Phil?</title><pubDate>Sat, 9 Sep 2006 05:09:59 +0200</pubDate><link>http://news.xb2.net/sqlexpress/658/Large+datasets+-+Phil%3f.html</link><comments>http://news.xb2.net/sqlexpress/658/Large+datasets+-+Phil%3f.html</comments><author>paaldalen@gmail.com</author><description>&lt;pre&gt;Hi there Phil,

This is cut out from the the thread &amp;quot;Large datasets&amp;quot; from the beginning of 
june:
*******************************************************
*******************************************************
Jimmy,

&amp;gt; When you get the time I would greatly appreciate if you would create an
&amp;gt; SqlDacPagedDataStore. As you say it
&amp;gt; would be a great tool to have.

Ok, I've written one :-)

Don't get excited just yet, it'll need a bit of testing and debugging, but
it was (generally) much simpler than I thought, knocking in at around 240
lines of code. I have to add the methods scrollUp, scrollDown and scrollTo,
but won't do that until the rest of it is working.

When I get my next free 10 minutes, I'll start debugging it :-)

Regards,
-- 
Phil Ide
*******************************************************
*******************************************************

Have you had any progress with this?  Any other ideas on the matter?
I sure am interested if you have:-)

Regards,
Mahanimann&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/658</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/659/SubIndexes.html</guid><title>SubIndexes</title><pubDate>Tue, 25 Oct 2005 22:19:51 -0400</pubDate><link>http://news.xb2.net/sqlexpress/659/SubIndexes.html</link><comments>http://news.xb2.net/sqlexpress/659/SubIndexes.html</comments><author>tsnyder@compusolutions.com</author><description>&lt;pre&gt;Boris,

We are trying to create subindexes on the fly in Xbase++/Advantage as we did
in Clippper

INDEX ON Name FOR left(NAME,2)=&amp;quot;CA&amp;quot; TO MyIndex SUBINDEX

We can use the AddKey() method, but that is very slow. The SUBINDEX method
in Clipper is much faster.

We looked at the ace wrappers, but didn't see how we might accomplish this.

Any help would be appreciated.
Thanks,
Tim&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/659</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/660/Re%3a+Installer.html</guid><title>Re: Installer</title><pubDate>Mon, 15 Jan 2007 16:31:13 -0700</pubDate><link>http://news.xb2.net/sqlexpress/660/Re%3a+Installer.html</link><comments>http://news.xb2.net/sqlexpress/660/Re%3a+Installer.html</comments><author>ramirezosvaldo@prodigy.net.mx</author><description>&lt;pre&gt;Dear Boris Borzic

This is my function


FUNCTION InstalarMySQLODBC()
* Begin
   LOCAL cKey , oReg , lInstalled := .F. , cDirMySQL := 
&amp;quot;\download\MySQL-Install\&amp;quot; , cTarjet := &amp;quot;\windows\system32\&amp;quot;
   cKey := &amp;quot;HKEY_LOCAL_MACHINE\Software\ODBC\ODBCINST.INI\MySQL ODBC 
3.51 Driver&amp;quot;
   oReg := XbpReg():NEW( cKey )
   lInstalled := oReg:Status()
   oReg := NIL
   IF ! lInstalled
     if f_yesno({&amp;quot;Los drives de MySQL ODBC, no estan instalados&amp;quot;,&amp;quot;Desea 
instalarlos ?&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;Recuerde tener el folder de MySQL [&amp;quot;+cDirMySQL+&amp;quot;]&amp;quot;})
       copyfile( cDirMySQL +&amp;quot;\lib\msvcr71.dll&amp;quot; , cTarjet +&amp;quot;msvcr71.dll&amp;quot; )
       copyfile( cDirMySQL +&amp;quot;\lib\myodbc3S.dll&amp;quot; , cTarjet +&amp;quot;myodbc3S.dll&amp;quot;)
       copyfile( cDirMySQL +&amp;quot;\lib\myodbc3S.lib&amp;quot; , cTarjet +&amp;quot;myodbc3S.lib&amp;quot;)
       copyfile( cDirMySQL +&amp;quot;\lib\myodbc3.dll&amp;quot;  , cTarjet +&amp;quot;myodbc3.dll&amp;quot; )
       copyfile( cDirMySQL +&amp;quot;\lib\myodbc3.lib&amp;quot;  , cTarjet +&amp;quot;myodbc3.lib&amp;quot; )
       copyfile( cDirMySQL +&amp;quot;\bin\myodbc3i.exe&amp;quot; , cTarjet +&amp;quot;myodbc3i.exe&amp;quot;)
       copyfile( cDirMySQL +&amp;quot;\bin\myodbc3m.exe&amp;quot; , cTarjet +&amp;quot;myodbc3m.exe&amp;quot;)
       copyfile( cDirMySQL +&amp;quot;\bin\myodbc3c.exe&amp;quot; , cTarjet +&amp;quot;myodbc3c.exe&amp;quot;)
       if file(cTarjet+'myodbc3i.exe')
         runshell('-a -d -t&amp;quot;MySQL ODBC 3.51 
Driver;DRIVER=myodbc3.dll;SETUP=myodbc3S.dll',cTarjet+'myodbc3i.exe')
         linstalled := .T.
       else
         msgbox(&amp;quot;No se pueden instalar los drivers de MySQL 
ODBC&amp;quot;+&amp;quot;-&amp;quot;+&amp;quot;El archivo myodbc3i.exe, no existe&amp;quot;})
       endif
     endif
   endif
RETURN  lInstalled

HTH
Osvaldo Ramirez&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/660</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/661/statement+handle+problem.html</guid><title>statement handle problem</title><pubDate>Fri, 23 Feb 2007 14:10:48 -0500</pubDate><link>http://news.xb2.net/sqlexpress/661/statement+handle+problem.html</link><comments>http://news.xb2.net/sqlexpress/661/statement+handle+problem.html</comments><author>edimail3@news.nmsc.gov</author><description>&lt;pre&gt;I have a SQLExpress &amp;amp; xb2.net application that seems to be leaking memory. 
I am currently looking at the xbsession():SaveSessions(), it can be 50+mb 
depending on how long the application is running.  I am also finding that 
the oConn:ActiveStatements() seems to be climbing with every few hits on 
that thread.

Is there any way to see what statements are currently active for each 
connection?

Thanks,

Erik&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/661</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/662/Re%3a+Memo+Field.html</guid><title>Re: Memo Field</title><pubDate>Tue, 14 Nov 2006 11:35:30 +0200</pubDate><link>http://news.xb2.net/sqlexpress/662/Re%3a+Memo+Field.html</link><comments>http://news.xb2.net/sqlexpress/662/Re%3a+Memo+Field.html</comments><author>fst-procurement@telkomsa.net</author><description>&lt;pre&gt;Hi Boris

Any news on this problem?

regards

jimmy

&amp;quot;Boris Borzic&amp;quot; &amp;lt;ng-at-sqlexpress-dot-net&amp;gt; wrote in message
news:Xns9870EC12B5988SQLExpress@80.32.233.35...
&amp;gt; &amp;quot;Jimmy Malan&amp;quot; &amp;lt;fst-procurement@telkomsa.net&amp;gt; wrote in
&amp;gt; news:s8n5nyk5zn5bv6o.031120060721@ANDREA:
&amp;gt;
&amp;gt; &amp;gt; I tried to insert a memo field into a table with a field type of
&amp;gt; &amp;gt; Char(2048). No data was inserted and no error was raised..
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; I then assigned the memo field to a local variable with the same
&amp;gt; &amp;gt; result.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; I then assigned the memo field to a local variable using Alltrim()
&amp;gt; &amp;gt; which seemed to do the trick.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Is this the correct method to use ? Is there baggage in a memo field
&amp;gt; &amp;gt; that Sql does not like ?
&amp;gt;
&amp;gt; I think the problem is in SQLExpress. It's looking for a varchar of &amp;quot;C&amp;quot;
and
&amp;gt; not &amp;quot;M&amp;quot;. Since memo fields retain the &amp;quot;M&amp;quot; type even after being assigned
to
&amp;gt; a memvar, SQLExpress will not process this data properly.
&amp;gt;
&amp;gt; I will send you an updated DLL by email in the next day or so for you to
&amp;gt; test.
&amp;gt;
&amp;gt; Best regards,
&amp;gt; Boris Borzic
&amp;gt; -- 
&amp;gt; news://news.Xb2.NET
&amp;gt; http://www.Xb2.NET
&amp;gt; http://www.SQLExpress.net
&amp;gt; industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/662</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/663/Re%3a+Select+inside+select.html</guid><title>Re: Select inside select</title><pubDate>Sat, 17 Feb 2007 14:44:12 +0100</pubDate><link>http://news.xb2.net/sqlexpress/663/Re%3a+Select+inside+select.html</link><comments>http://news.xb2.net/sqlexpress/663/Re%3a+Select+inside+select.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;Osvaldo Ramirez &amp;lt;ramirezosvaldo@prodigy.net.mx&amp;gt; wrote in 
news:kegyuvbyfgjsmha.170220070130@ANDREA:

&amp;gt; Tell me, inner Join is more fast that have two cursor with a relation ?

inner join will be faster

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/663</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/664/SQLConnection+question.html</guid><title>SQLConnection question</title><pubDate>Fri, 21 Apr 2006 11:33:13 -0500</pubDate><link>http://news.xb2.net/sqlexpress/664/SQLConnection+question.html</link><comments>http://news.xb2.net/sqlexpress/664/SQLConnection+question.html</comments><author>vjharris@starband.net</author><description>&lt;pre&gt;oConn := SQLConnection():new('MyNewDSN', 'MyUserId', 'MyPassword')

After installing MSDE I create an SQL database:
setup SAPWD=&amp;quot;byteme98&amp;quot;  INSTANCENAME=&amp;quot;EDUSTRUCTURES&amp;quot; SECURITYMODE=SQL 
DISABLENETWORKPROTOCOLS=0

My computer where the SQL Server is running is JeanLapTop

Now I want to Creat an SQL ODBC Data Source Connection. So I do Start menu, 
point to Settings | Control Panel | Administrative Tools and Select ODBC 
Data Sources. I select the System DSN tabpage then press
1 ADD.
2 Then I select SQL Server..
3 then I enter LunchCashierSIF for the name and the Descriptions and
4 I select JEANLAPTOP\EDUSTRUCTURES as the server.
5 I then change the defaut database to LunchCashierSIF

What do I put into these parameters to have the SQLConnection:new work 
correctly?
MyNewDSN
MyUserId
MyPassword

Jean Harris&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/664</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/665/Re%3a+What+BIT+values+to+use+in+oStmt%3f.html</guid><title>Re: What BIT values to use in oStmt?</title><pubDate>Tue, 26 Dec 2006 15:17:31 +0100</pubDate><link>http://news.xb2.net/sqlexpress/665/Re%3a+What+BIT+values+to+use+in+oStmt%3f.html</link><comments>http://news.xb2.net/sqlexpress/665/Re%3a+What+BIT+values+to+use+in+oStmt%3f.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Mahanimann&amp;quot; &amp;lt;paaldalen@gmail.com&amp;gt; wrote in
news:3h5wa5zm2k3hwnv.251220061419@ANDREA: 

&amp;gt;I use the SQL BIT type for logical fields.  This works fine with 
&amp;gt;:FieldGet()/:FieldPut(), but what SqlExpress compatible values do I use
&amp;gt;in SQL statements?
&amp;gt; 
&amp;gt; Example: &amp;quot;UPDATE Customers SET lActive=1&amp;quot; does update the table, but
&amp;gt; when retrieving with oCustCurs:FieldGet(&amp;quot;lActive&amp;quot;) I allways get .F.
&amp;gt; (I've tried with several different parameters, including SET lActive =
&amp;gt; b'1') 

what does the DBMS return for this column when you execute a SELECT using 
the DBMS's query tools?

Don't know if this will work, but try setting the BIT column to &amp;quot;T&amp;quot;/&amp;quot;F&amp;quot;, 
eg: UPDATE Customers SET lActive='T'

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/665</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/666/Pass+data+to+local+II..html</guid><title>Pass data to local II.</title><pubDate>Tue, 15 May 2007 22:32:14 +0200</pubDate><link>http://news.xb2.net/sqlexpress/666/Pass+data+to+local+II..html</link><comments>http://news.xb2.net/sqlexpress/666/Pass+data+to+local+II..html</comments><author>ccalvoc@telefonica.net</author><description>&lt;pre&gt;I have had any problems and I dont know what is happening.
It says XPPFATAL.
I attach source and logs.
Thansk. 












&lt;/pre&gt;</description><enclosure url="http://news.xb2.net/sqlexpress/666/attachments/0/XPPFATAL.LOG" length="434" type="application/unknown" /><enclosure url="http://news.xb2.net/sqlexpress/666/attachments/1/XPPFATAL-0.LOG" length="400" type="application/unknown" /><enclosure url="http://news.xb2.net/sqlexpress/666/attachments/2/XPPFATAL-1.LOG" length="429" type="application/unknown" /><enclosure url="http://news.xb2.net/sqlexpress/666/attachments/3/XPPFATAL-2.LOG" length="462" type="application/unknown" /><enclosure url="http://news.xb2.net/sqlexpress/666/attachments/4/XPPFATAL-3.LOG" length="462" type="application/unknown" /><enclosure url="http://news.xb2.net/sqlexpress/666/attachments/5/PROVFRAS.PRG" length="11077" type="application/unknown" /><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/666</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/667/Re%3a+Large+datasets.html</guid><title>Re: Large datasets</title><pubDate>Thu, 8 Jun 2006 15:50:07 +0200</pubDate><link>http://news.xb2.net/sqlexpress/667/Re%3a+Large+datasets.html</link><comments>http://news.xb2.net/sqlexpress/667/Re%3a+Large+datasets.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Mahanimann&amp;quot; &amp;lt;paaldalen@gmail.com&amp;gt; wrote in
news:8ipl6qmnhk1qteu.070620062150@ANDREA: 

&amp;gt; The table in question contains items sold in a shop, and I need to
&amp;gt; search for item text, ID, who sold this, date, time etc.  With
&amp;gt; &amp;quot;redesign the UI&amp;quot;, do you suggest that the user must give the search
&amp;gt; info _before_ we do the SELECT command?  No
&amp;gt; &amp;quot;list-all-rows-then-start-filtering&amp;quot; like in Clipper, but the
&amp;gt; opposite? 

Yes exactly.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/667</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/668/Re%3a+little+problem+with+3.2.01+library.html</guid><title>Re: little problem with 3.2.01 library</title><pubDate>Tue, 12 Jun 2007 01:42:30 +0200</pubDate><link>http://news.xb2.net/sqlexpress/668/Re%3a+little+problem+with+3.2.01+library.html</link><comments>http://news.xb2.net/sqlexpress/668/Re%3a+little+problem+with+3.2.01+library.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;giuseppe&amp;quot; &amp;lt;airsoft1@tin.it&amp;gt; wrote in
news:viyn6gqrk1of6nu.110620072005@VDS-472773: 

&amp;gt; I've installed sqlexpress library v. 3.2.01
&amp;gt; after the excution of  few statements I lost connection
&amp;gt; to MySql DBMS (with new and old ODBC drivers)
&amp;gt; with old library 3.0 it's all ok

There should be absolutely no difference between the versions. It may just 
be a coincidence that you lost the connection.

&amp;gt; this is my function to connect to DBMS
&amp;gt; 
&amp;gt;  L_Connection := &amp;quot;Driver=MySQL ODBC 3.51 Driver&amp;quot;
&amp;gt; L_Connection += &amp;quot;;UID=airsoft&amp;quot;
&amp;gt; L_Connection += &amp;quot;;PWD=mypwd&amp;quot;
&amp;gt; L_connection +=&amp;quot; ;server=localhost&amp;quot;
&amp;gt; L_connection +=&amp;quot; ;database=&amp;quot;
&amp;gt; local_conn := SQLConnection():new()
&amp;gt; if .not. local_conn:driverConnect(nil, L_Connection,.t.)
&amp;gt; // test also with ==&amp;gt;  if .not. local_conn:driverConnect(nil, 
&amp;gt; L_Connection,,.t.) //
&amp;gt;      return .f.
&amp;gt; endif
&amp;gt; return .t.
&amp;gt; in this way I install only the ODBC without configure it (it's better
&amp;gt; for my customers).
&amp;gt; 
&amp;gt; to work now, I must create a System DNS ODBC
&amp;gt; and configure it with 'enable Auto Reconnect'.

I'm sure you can specify this param in the connect string. The trick is to 
find out what the param is called. To find out how to do that, please see 
slide #8: http://www.sqlexpress.net/sqlxpp/SQLXpp.ppt

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/668</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/669/Ann%3a+SQLExpress+3.1.24+released.html</guid><title>Ann: SQLExpress 3.1.24 released</title><pubDate>Mon, 5 Jun 2006 02:55:17 +0200</pubDate><link>http://news.xb2.net/sqlexpress/669/Ann%3a+SQLExpress+3.1.24+released.html</link><comments>http://news.xb2.net/sqlexpress/669/Ann%3a+SQLExpress+3.1.24+released.html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;SQLExpress ver 3.1.24 is now available for download.

This upgrade is provided FREE of charge to all current SQLExpress
subscribers. If you are a registered user, you should have already 
received email notification of the new build; including download and 
installation instructions. 

If you are not a registered SQLExpress user, then please follow the 
hyperlinks below. When you purchase SQLExpress, you will receive one 
full year of free technical support and software updates.

Click here to:

   * Place an order:
     http://sqlexpress.net/register.htm

   * Get a demo:
     mailto:demo@sqlexpress.net?subject=sqlexpress_demo

   * Learn more about SQLExpress:
     http://sqlexpress.net

                            --- * ---

SQLExpress is an object-oriented ODBC library that provides your
Xbase++ application with seamless connectivity to many RDBMS and
ISAM databases. With SQLExpress you will be able to create
industrial strength client/server applications using databases such
as Advantage Database, MS-SQL Server, MySQL, Oracle, DB2, Sybase, 
PgSQL and many others. SQLExpress may also be used with many 
flat-file databases, such as MS-Access, dBase, Paradox and Btrieve.

If you are building mission critical database applications, then
you need SQLExpress!

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools&lt;/pre&gt;</description><comment xmlns="http://wellformedweb.org/CommentAPI/">http://news.xb2.net/comment.api/sqlexpress/669</comment></item><item><guid isPermaLink="true">http://news.xb2.net/sqlexpress/670/Re%3a+Error+in+oSqlDATASETcursor%3aIsNull().html</guid><title>Re: Error in oSqlDATASETcursor:IsNull()</title><pubDate>Tue, 26 Dec 2006 14:58:05 +0100</pubDate><link>http://news.xb2.net/sqlexpress/670/Re%3a+Error+in+oSqlDATASETcursor%3aIsNull().html</link><comments>http://news.xb2.net/sqlexpress/670/Re%3a+Error+in+oSqlDATASETcursor%3aIsNull().html</comments><author>ng-at-sqlexpress-dot-net@</author><description>&lt;pre&gt;&amp;quot;Mahanimann&amp;quot; &amp;lt;paaldalen@gmail.com&amp;gt; wrote in
news:yll8ia6v77aqabb.231220062336@ANDREA: 

&amp;gt; The new oCurs:IsNull() for SQLDataSet (in the v3.1.26 beta) falsely
&amp;gt; reports .T. in CHAR and VARCHAR fields with just spaces as a value. 
&amp;gt; Example: 
&amp;gt; 
&amp;gt; cPostNumber := oCurs:FieldGet(&amp;quot;Post_number&amp;quot;)
&amp;gt; ? cPostNumer   // reports &amp;quot;          &amp;quot; (space(10)) correctly
&amp;gt; ? oCurs:IsNull(&amp;quot;Post_number&amp;quot;)  // reports .T. which is wrong

I don't see this. In my tests it works fine.

Best regards,
Boris Borzic
-- 
news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industria