devxlogo

The Latest

Querying a List

Question: I’ve been trying to construct a query on the databaseto see if the value in a particular field matches a long list of correct answers. For example, I would

Adjusting for Deleted Rows

Question: How do I create a column with a row ID that adjusts if a row is deleted?That is, if I had numbers 1,2,3,4,5,6 and I delete record 3, record

Splitting Data Within a Column

Question: I am trying to write a report that will bring back fiveindividual pieces of data that are stored within the same column in a table. How do I do

COUNT Function: Getting a Series

Question: What is the syntax to get a series of “counts” on a table? An exampleof what I am trying to do is as follows:SELECT col1 = COUNT(tstfield1=’X’),col2 = COUNT(tstfield2=’Y’)

Join Performance

Question: I’m wondering whether it would be faster to join a large table to a small table by placing the large table on the left side or theright side of

UPDATE Table Based on Data in Another Table

Question: I have two related tables. I need to go and update atable searching for a value I find in the second table (byjoining both tables). I wrote the following

SQL parsing error

Question: I have been having a lot of trouble with a SqlLookup() function. Whenever I use a WHERE clause, I get a parse error.The offending WHERE clause is “WHERE SW_LICENSE

How are transactions handled in OPO?

Question: How are transactions handled in OPO? Answer: Transactions are the core of multi-user data processing integrity. A transaction defines an all-or-none unit of work. The classic example of a

Column lengths

Question: Data field objects in OPO can accept any amount of data, but if I send too many characters to the server, I get an error “flushing the row to

Normalized Database: When to Split?

Question: We have several heavily-used tables with lots of columns (average around 30 columns), and the users are getting locked out frequently. We’ve thought about splitting the tables, but didn’t

Lock Conflicts

Question: Our system is experiencing several lock conflicts. We’ve got a consultantlooking at the details, but I was hoping you could explain what’s going onbehind the scenes when records are

Differences Between Join Types

Question: What are the differences between LEFT, RIGHT, INNER and OUTER JOINS? Answer: An INNER JOIN is the most common type: It combines all the data from the tables specified

Data Replication as a WAN Solution

Question: I have nine offices. I want each office to connect across aWAN and run client/server applications with all datacontained on one central server. However, we are finding the delays

BLOB Data Storage

Question: What are the advantages/disadvantages of putting large binary files (1+ MB) in BLOB columns versus storing them on a file server with a reference such as a directory/file spec

Checking for a lost connection

Question: I want to periodically check to see if a user’s database connection has been lost. How can I? Answer: First of all, a solution. You can implement periodic ‘polling’

Improving performance

Question: The repeater in my application seems to be very slow in populating. Is there anything I can do to improve its performance? Answer: Poor performance can be the result

Data Replication

Question: I’ve heard several of the arguments in favor of a server that supports datareplication. What are the potential problems? Answer: For our readers, the advantages of data replication [creating

repaint() and Consecutive Lines

Question: My applet draws lines. I click at the place where I want my line to start and then I click at the end of it. It draws a line

Writing a Factorial Method

Question: Can you help me complete the enclosed program? A “Factorial Method”must be written. /////// File: Factorial.java /////// class Factorial { /* put factorial method here */ public static void

Scanning for Words in a String

Question: I am currently writing an application to scan a text file for certain text keywords, and then copy the text (in between the kewords) into a new textfile. Could

‘Smart’ Painting

Question: It isn’t clear to me how to do ‘smart’ painting. For example, ifI want to paint only a portion of something, what should I do?There are paint/repaint methods that

Sending E-mail from Java Applet

Question: How do I send e-mail from Java? Do I have to open a socket to a specific port on my server (and if so, which port and what should

Button no longer closes a form. Is this a bug?

Question: I have a cancel pushbutton with the IsDismissBtn property set toTrue. When I first created the form, the push button dismissed theform. I added some code to prompt the