Quantcast
Channel: ColdFusion Joe
Browsing latest articles
Browse All 26 View Live

Block Special Characters from a Text Box Form Input

We want to keep users from entering special characters into our textbox input on or form. Ideally we want to not allow those characters to be entered at all, as opposed to let them enter the...

View Article



Ubuntu Mounting HTC One M8 SD Card

error: exited with non-zero exit status 32: mount: unknown filesystem type 'exfat' I added a 64 Gigabyte SDcard to my HTC One M8 phone and could not connect to add music or files. The issue is that...

View Article

CFM Pages Not Working After Server IP Change

BlueOnyx JSP and Servlets, including ColdFusion, CFM, CFML, Railo templates do not run after changing the IP address of the site and server. CFM displays as text. Datacenter adjustments forced a...

View Article

ColdFusion CLIENT cookie issue

MSSQL error: The data types text and varchar are incompatible in the equal to operator. In the ColdFusion administrator under there is the option to save CLIENT variables as cookies, in the registry,...

View Article

Trim characters off of right on a string

Trim characters off of right on a string. Trim off a certain number of characters on the right side of a string. Here's a quick easy method to cut off an exact number off the right portion without...

View Article


Google Custom Search Results

Want to find out what Google has on your web site? Do you wish to tabulate a list of all the pages Google has searched and indexed? Here's how to document it! Caveat: you must have a google business...

View Article

convert UTC date in Unix timestamp format

Converting a date in ColdFusion into a UNIX timestamp format is not straight forward if you don't know what the UNIX timestamp format is. Unix time is defined as the number of seconds that have...

View Article

CTE with Recursion Example

Common Table Expressions with Recursion using WITH. A Common Table Expression is a temporary result set upon which we can work against. It's kind of like a sub query in memory that we can manipulate....

View Article


not equal to null not working

In MSSQL, looking for rows that are not equal to a certain value does not return rows with null values. To retrieve all values that are not equal and are null, you have to add both clauses "not equal"...

View Article


Integers Only, Remove Dollar Signs and Periods

Looking to remove "$" and "." (dollar signs, commas and periods/decimal points) from numbers before inserting into a database, storing integers. This means decimals need to be rounded into an integer....

View Article

Breaking Up a String into Equal Parts

Presented with a string of concatenated ID's, I had to break them up into a comma delimited list. These ID's were all stored in a database field concatenated in one long string with no breaks, tabs or...

View Article

Select Distinct and Return Multiple Columns

How does one select a distinct column value and still bring back all other associated columns for the distinct value? In this example we have repeated [Requisition_Number]s and wish to find distinct...

View Article

Combining MSSQL Functions and Wildcards to Filter Data

We can combine SQL functions and use "LIKE" to filter data searching a string in a column. We are not using RegEx, just simple pattern matching. Here's our practical example. We are given a table...

View Article


Computed Columns MS SQL

A table with a Totals column is a perfect use case for computed columns in MSSQL. Making the Totals column a computed column allows MSSQL to do all the preassigned math for me, eliminating the need to...

View Article

MSSQL Change Text within Column

Needing to change or replace a text, a word or phrase, within a VARCHAR column is very easy using the replace function. This example changes every occurrence of the year "2018" with "2019". We are...

View Article

Browsing latest articles
Browse All 26 View Live




Latest Images