devxlogo

Tip Bank

How to Schedule a Task

Here are three alternatives to scheduling a task run repeatedly without using threads:1.Using loop construct: boolean temp=true; While (temp) { for (int i = 0; i < 999999999; i++) {

Run a SQL Script File Using T-SQL

There’s no direct command to read a script file and execute it. But isql.exe and osql.exe come in handy when you have to execute a script file from within T-SQL.

Improve the Performance of Loops

Almost all Java applications require looping at some point or other. Even the slightest improvement in looping time can make a huge performance difference. Because the size of an array

How to Run a Java Application Without main()

Create one class similar to the following, add codes within the static block, and run the application. For example: public class A{ static void displayMe() { System.out.println(“I’m inside display Me

Make a Collection of All Inherited Classes

Say you want to have several classes-modifiers, and you want to execute a certain virtual function for each of them. The ideal solution is to create an abstract class with

Dynamic SQL Queries in a Stored Procedure

Dynamic SQL queries allow users to create statements on the fly using parameters or variables. The EXECUTE (EXEC) statement is used to implement dynamic SQL solutions in the stored procedure.