Tip Bank

DevX - Software Development Resource

Get All the Stored Procedure Names In One Shot

The following query will list all the stored procedure names available in the current database: SELECT name AS spnameFROM sysobjectsWHERE (xtype = ‘p’) AND (name NOT LIKE ‘dt%’)ORDER BY name

DevX - Software Development Resource

Use Functor for Callbacks in C++

Using the callback function in C is pretty straightforward, but in C++ it becomes little tricky. If you want to use a member function as a callback function, then the

DevX - Software Development Resource

Two Ways to Chain Servlets

In Servlets/JSPs, there are two ways to achieve servlet chaining using javax.servlet.RequestDispatcher: Include: RequestDispatcher rd = req.getRequestDispatcher(“Servlet2”);rd.include(req, resp); Forward, where req is HttpServletRequest and resp is HttpServletResponse: RequestDispatcher rd =

DevX - Software Development Resource

The reverse() Algorithm

You can use this algorithm to reverse the order of elements in any sequence container. It takes two bidirectional iterators as argument: int iArr [] = {1, 2, 3, 4,