
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
A trigger is a stored procedure that runs automatically when various events happen (update, insert, delete, etc.) To display the contents of a Trigger, use a query similar to the
Calendar calendar = new GregorianCalendar();calendar.setTime(date);calendar.set(Calendar.HOUR_OF_DAY, 0);calendar.set(Calendar.MINUTE, 0);calendar.set(Calendar.SECOND, 0);Date startOfDay = calendar.getTime(); The code above calculates the start of the day (0h00). The first mistake is the missing millisecond field of
Transport Layer Security (TLS) is a security protocol that allows for secure Internet communication. TLS has various versions and you will need to know whether a particular vendor supports the

There are times when we might be interested in knowing the memory usage of our application. The Runtime class in Java has various methods to help with that. This data

At times, our machines restart due to a patch or when the browser crashes and we are not able to bookmark or remember the windows that were open. This can

At times, our machines restart due to a patch or when the browser crashes and we are not able to bookmark or remember the windows that were open. This can
declare @SQL VARCHAR(MAX) = ‘String to Replace’set @SQL = REPLACE(@SQL, ‘)’, ‘Replacement String’)select @SQL
The code below eliminates spaces at the beginning or end of a name entered by the user, it tries to remove the spaces inside the setter method of a bean.
Command to backup: mysqldump databaseName backupFilename.sql Where mysqldump?is the command, databaseName?is the name of the database and backupFilename?is the name of the file in which the data will be backed
Chrome allows you to store code snippets that you would normally use for debugging purposes. You can store once, and run it on any page in Chrome. These snippets are
For effective usage of variables in loops, it is advised to create variables outside of loops and use them in the loops. This helps save lot of memory and makes

To find duplicates, use a query similar to the following: Select * from TABLE1 a where id ( select max(id) from TABLE1 b where a.Field=b.Field);
account.changePassword(oldPassword, newPassword);Date lastModified = getLastModified();lastModified.setTime(System.currentTimeMillis()); The above code updates the last modified date of the password and wants to avoid creating a new Object, but uses instead the setTime method
SQL Server 2016 provides a way to split a string that is concatenated with a separator. For example: SELECT VALUE FROM STRING_SPLIT(“John|Mary|Dohe”, “|”) would return the values John, Mary and
The command “SHOW GRANTS” will display the privileges that the current user has. Command: SHOW GRANTSSample output:+——————————————————————————————————————+|Grants for dbuser@% |+——————————————————————————————————————+| GRANT ALL PRIVILEGES ON *.* TO ‘dbuser’@’%’ IDENTIFIED BY PASSWORD
DateTimeOffSet values are often converted to strings for display or some other purpose. But these representations often fail when they are used to convert them back to valid date/time values.
Devart has upgraded SQL Complete with the connection to Azure Multi-Factor Authentication, enriched Code Completion and Code Refactoring features as well as many added other productivity functionalities. Â
Use this nifty function to check the validity of an email address. CREATE FUNCTION [dbo].[fnCheckEmail](@Email VARCHAR(255)) RETURNS BIT AS BEGIN DECLARE @ValidEMail BIT IF @Email IS NOT NULL SET @Email
In this article we’re going to explore Angular 5 up-gradation and Changes that would be encountered during the migration. Take a look at the features that make Angular 5 a great option for your development projects.
Using one class or interface that contains all kinds of constants used during the application may not be the best solution. These constants are unrelated with each other, the only
We have been using logging in Java and different code requires different levels of logging. Hence these Levels will come in handy. Code sample: import java.util.logging.Logger;import java.util.logging.Level;public class JavaLogger{ public
A lot of Excel reporting uses pivot tables and it is necessary to update them with the latest data. The process of updating each and every pivot table via the
At times, you may want to make your application sleep for a determined period pending some other action. This is very easily achieved in Java with threads. Code sample: import
To bypass “the row values updated or deleted either do not make the row unique or alter multiple rows” error message, all you need to do is add a query
Do not assume char represents only one character: “uD83DuDC31”.length() == 2 The escape sequence represents the Unicode code point 0x1F431 in UTF-16 as 2 chars. So even though this is
In Visual Studio 2017, the “attach to process” window has an option that allows you to search and filter for a process. It is a search text box right on
JSON is being widely adapted by the industry for easier transformation of data. Using the json-simple-1.1.1.jar in the classpath will provide you with the basics of JSON and its functionality.

By default, JavaScript script files are loaded synchronously in the page execution and thus are bound to slow down the page. You can asynchronously load the scripts by simply adding
In order to execute a Stored Procedure when SQL Server starts, you first need to enable scanning for Startup Procedures with the following code: EXEC sys.sp_configure N’scan for startup procs’,
In order to execute a Stored Procedure when SQL Server starts, you first need to enable scanning for Startup Procedures with the following code: EXEC sys.sp_configure N’scan for startup procs’,











