The Latest

DevX - Software Development Resource

Nested Transactions

You can use the @@TRANCOUNT function to determine whether any open transactions exist and how deeply they are nested.A BEGIN TRANSACTION statement increments @@TRANCOUNT by one, and a ROLLBACK statement

DevX - Software Development Resource

Lock Timeout!

With the SET LOCK_TIMEOUT option, it is possible to set the maximum amount of time that SQL Server allows a transaction to wait for the release of a blocked resource:

DevX - Software Development Resource

Caching/Releasing JDBC Connections

It happens quite often that a JDBC connection is declared as the instance-level variable. The actual connection is then obtained at construction time. All methods of the object that need

DevX - Software Development Resource

Changing Column Types in a Table

Changing column types in a tableSQL Server does not permit you to explicitly change the datatype or length of a column. But there is a trick to get around this.

DevX - Software Development Resource

Setting Proxy in Java Code

The java.net package contains classes that deal with connections across the network. If there is a direct connection to the Internet via a modem, various classes like the HttpConnection or

DevX - Software Development Resource

Print a Stack

If you have a line in your code you are trying to debug or you don’t know how you got there, or where you came from (who called it), you

DevX - Software Development Resource

Creating a Java Application Error Log

This simple class provides you with a mechanism for the creation of a logfile: import java.io.*;public class logfile { private String myFile = Related Posts Placer.ai raises $75M, boosts valuation

DevX - Software Development Resource

Avoiding Unnecessary Catch Blocks

The result of adding unnecessary catch blocks is code like this, where exceptions are caught and then immediately re-thrown: try { // some code here } catch (Exception e) {

DevX - Software Development Resource

Retrieve a Parent Directory From a Path

You can retrieve the parent directory from a path by identifying the first and last backslash. The start position for the first backslash should be 3 in order for it

DevX - Software Development Resource

Registering a DLL

To register your DLL’s, follow these steps:1) In the directory Related Posts Nvidia stock jumps 8.8% after analyst endorsementFederal judge rules Google a monopolyXen Security Issue Prompts Cloud Computing RebootsMatter

DevX - Software Development Resource

Add Persistence to Your XML Data Islands

n last month’s article, you saw how to display XML data in IE5 through IE’s data island component. This month’s installment focuses on letting users modify that data and, ultimately,

DevX - Software Development Resource

Sending HTTP Requests from a Wireless J2ME Device

s more and more cellular phones and PDAs begin to merge onto the information superhighway, it becomes increasingly interesting to access Web sites from mobile devices. Since Java was initially

DevX - Software Development Resource

Judging Java Timeline – 1999

Go to:? pre-1995-1995? 1996? 1997? 1998? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 13 Support for Java in digital TV announced at the Consumer Electronics Show. Jan. 25 Jini

DevX - Software Development Resource

Judging Java Timeline – 1996

Go to:? pre-1995-1995? 1997? 1998? 1999? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 23 JDK 1.0 released. February JavaWorld launches. February Netscape Navigator 2.0 browser includes Java. JavaBeans announced.

DevX - Software Development Resource

Judging Java Timeline – 1997

Go to:? pre-1995-1995? 1996? 1998? 1999? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 11 – JavaBeans JDK released. Feb. 18 Java JDK 1.1 ships. Feb. 28 Java 1.1 support

DevX - Software Development Resource

Judging Java Timeline – 2000-2001

Go to:? pre-1995-1995? 1996? 1997? 1998? 1999 = mouseover explanation = pop-up sidebar Feb. 8 – Sun submits next versions of J2EE and J2SE to JCP. Feb. 29 – Java

DevX - Software Development Resource

Judging Java Timeline Pre-1995

/********************************************************************************Copyright (C) 1999 Thomas BrattliThis script is made by and copyrighted to Thomas Brattli at www.bratta.comVisit for more great scripts. This may be used freely as long as this msg

DevX - Software Development Resource

Judging Java Timeline – 1998

Go to:? pre-1995-1995? 1996? 1997? 1999? 2000-2001 = mouseover explanation = pop-up sidebar Jan. 20 – JDK 1.1 cumulative downloads top 2 million, says Sun. March JFC ships with “Swing”.

DevX - Software Development Resource

More Useful Form-Building Routines

ast month’s column contained some ASP routines that made the task of building a form easy and elegant. This month I’ll extend the concept by showing you how to build

DevX - Software Development Resource

The VarHelper Add-in

This is a simple addin which scans your code files and enumerates all the variables it finds, telling you where they are used and if there is any problem (dead

DevX - Software Development Resource

CConsole – A class for creating console applications

‘ CCONSOLE Class” Creates a console window and writes to it’ Example:’ Dim cons As New CConsole’ cons.WriteString “Hello World”Private Declare Function AllocConsole Lib “kernel32” () As LongPrivate Declare Function

DevX - Software Development Resource

ShowIcon – Extract an icon from a file and show it

Private Declare Function ExtractIcon Lib “shell32.dll” Alias “ExtractIconA” _ (ByVal hInst As Long, ByVal lpszExeFileName As String, _ ByVal nIconIndex As Long) As LongPrivate Declare Function DrawIcon Lib “user32” (ByVal

DevX - Software Development Resource

Display the Windows Shortcut Wizard

You can programmatically start the Shortcut Wizard from your code, to give the end user the capability to create a new shortcut: Shell “rundll32.exe AppWiz.Cpl, NewLinkHere ” & App.Path, 1