doraprojects.net

Using UNICODE function or NCHAR function in SQL Server 2012

The T-SQL provides UNICODE function and NCHAR function. First function get one argument(string expression) as nchar or nvarc ... NCHAR(261) as [NCHAR(261)] ; Result: You may see the same chars, that was be displayed in first and second example.

How add Tomcat 9 server to the Spring Tool Suite?

If you install Tomcat 9, you can add them to the Eclipse IDE or Spring Tool Suite IDE. Installation process I describe step ... ocalhost:8280 or similar url according to yours settings. To stop server right click the Tomcat 9.0 node and choose Stop.  

Using ASCII function or CHAR function in SQL Server 2012

The T-SQL provides ASCII function and CHAR function. First function get one argument(string expression) as char or varchar d ... CHAR(185) as [CHAR(185)] ; Result: You may see the same chars, that was be displayed in first and second example.

How display names of part date in your language?

Sometimes You display name of part of date example: name of day, name of day of week, month. I show You how change language ... l Chinese'; SELECT DATENAME( weekday, SYSDATETIME() ) as [day in Traditional Chinese] , DATEPART( weekday, SYSDATETIME() ) ;

Collation of database and names of tables in SQL Server 2012 in diffrent statement

This post show how work creating and inserting, selecting data from tables with the same name of table but with diffrent size ... data using T name of table: select id from T; So only creating table name with lower or upper letter is treat as the same.

Concatenation strings get from columns of table in SQL Server 2012

How join strings comming from columns of table as one result string? It is several ways for it. Begin with create database w ... b COLLATE Polish_CS_AS; USE mydb; GO SELECT CONCAT( name1, ' ' , name2) as name FROM mydb.dbo.people ; And it is result:

How convert numeric datatype to string by STR function?

How convert numeric datatype to string by STR function? For convert numeric datatype to string T-SQL provides STR function. ... o is added as fifth char. Befor string is added spaces – 3 chars. SELECT '='+STR(12.8734223344566,20,13)+'=' as stringdata ;

Substring functions: LEFT and RIGHT in SQL Server 2012

Sometimes instead of use substring function You may use LEFT or RIGHT function. In which situation using these functions? If ... l string will be return. SELECT LEFT('abracadabraS',100) as mysubstring; SELECT RIGHT('abracadabraS',100) as mysubstring;

How import data into SQLite from CSV

SQLite delivers mechanism to import data from another source. One of this source is CSV file. For import data You launch sql ... le ) and after name of file – name of table for data. The using SELECT query You may see your data in region table in SQLite.

Primary key and autoincrement in SQLite

How create primary key with autoincrement column in SQLite ? I describe it step by step in this topic. Launch SQLite3.exe ap ... nt don’t be work. Belove is my test1.db database: So if You create objects in SQLite the best is use main datatype of SQLite.

Substring function in SQL Server 2012

T-SQL provides functions which operate on strings. One of this functions is SUBSTRING. This function returns new substring, g ... dabra' as stringname, SUBSTRING('abracadabra',0,0) as substringname ; The function don’t returned char from string.

Create objects in SQL Server 2012 with appropriate collation

In this topic I show You how create in SQL Server object with any collation or change collation in existing object. First ch ... llation inherit from old database collation or setted for this objects before this operation changing collation for database.

JDBC connection to SQLite in Java code in Netbeans

This topic describes how write Java code of connection to SQLite Database in Netbeans. First step is create in Netbeans simp ... aries node in Projects window You see driver for SQLite. If You run this application and all will be OK, the result appear:

How install and create database in SQLIite?

Installation begin from download zip file. So go to website: https://www.sqlite.org/ and click Download in menu. In download ... ould like to connect another time, write only name of existing database, in windows command line it will be: sqlite3 new.db

Desktop Java 8 – part 3- how fit table and sort its data in JFrame?

How fit table  in frame in desktop Java application and sort data in it? I describe in this post step by step how do it. In ... ter clicked the Name column second time:You may either owing to call this method, drag and drop columns changing its places:

How run Oracle VM VirtualBox with Oracle Enterprise 12c database and start work

If You would like to start your work with Oracle database my proposition is Oracle VM VirtualBox. This virtual machine contai ... appear. If You want to save Your work click the Yes button. Click the Power Off button. Your Oracle VM VirtualBox was closed.

How create table in pgAdmin tool for PostgreSQL 9.6?

In this topic I show how in pgAdmin create simple table. Begin with open pgAdmin. Expand on the left Database node with your ... other column in table. Click the Save button. You can see in your database department table with two fields: id and name.  

JNDI – configuration database connection to SQL Server 2012 in GlassFish for JSTL

First You must downloading driver of SQL Server ( sqljdbc4.jar ). Copy it into lib directory in GlassFish instalation place. ... item SQLServer2012 and click Ping button. If it’s all right you see information about success: Restart GlassFish server.    

How add driver and connect to Firebird server in Netbeans 8

First download jdbc driver for firebird database. Got to http://www.firebirdsql.org/en/jdbc-driver/ website and click on Jay ... select Disconnect if you don’t work on this database. On the list of connection icon of firebird connection will be broken.

Select data from Firebird by means of JSTL in Netbeans 8

In last post I describe how create website in JSTL. In this post we select data from database and display them into table. O ... name of table and column for yours. Check if you have connected to the database in Services window. Run your application.