Skip to main content

CODING

SQL Server - SQLCMD Utility

What is sqlcmd utility

The sqlcmd utility lets you enter Transact-SQL statements, system procedures, and script files at the command prompt, in Query Editor in SQLCMD mode, in a Windows script file or in an operating system (Cmd.exe) job step of a SQL Server Agent job. This utility uses ODBC to execute Transact-SQL batches.

Start and Stop Scripts For XAMPP

After installing XAMPP on your computer you could experience some of the following messages during startup:

XAMPP: Another web server daemon is already running.

XAMPP: Another MySQL daemon is already running.

XAMPP: Another FTP daemon is already running.

{mobile_block=responsive_ad_728_90}

The cause of this errors is that you've already installed database, ftp and web servers, so XAMPP conflicts with them. The solution is to stop running services.

SilverStripe and Google Custom Search Engine Integration

We had a request from a client to integrate Google Custom Search with SilverStripe CMS. The idea was interesting and we decided to write tutorial about it.

There are three main steps to be done:

  • Create Google Custom Search Engine, if you haven't yet
  • Create new page type and template
  • Add search form to template

{mobile_block=responsive_ad_2_300_250}

Custom Google search engine

1) Create custom search engine on Google site http://www.google.com/cse

PHP - difference between "==" (equal) and "===" (identical) operators

If you've just started to learn PHP, I'm sure that you've asked yourself what is difference between "==" (or equal operator) and "===" (or identical) operators.

Both of them are comparison operators in PHP programming language but it purpose is slightly different. Comparison operators, as their name implies, allow you to compare two values.

C# - Get First Word

We're continuing our C# tips and tricks and providing to you the snippet for getting the first word from a string.