Databases

How set connection to PostgreSQL 9.6 database in Netbeans 8?

In Services tab right click the PostgreSQL node and choose Connect Using. You see New Connection Wizard. Change name of data ... shed. Expand this node. You see tables in mydb database. To close connection, right click on this node and choose Disconnect.

How add SQL Server 2012 driver to Netbeans 8?

Go to Services window in Netbeans. List Drivers node. If on the list it isn’t SQL JDBC driver you must download it. Go to h ... on. In Name field write Microsoft SQL Server 2012 and click the OK button. On the list of drivers you see SQL Server driver.

In Zend Framework 1.12 Application error: No adapter found for Application Model DbTable

I met last time situation in that I run my application with error: No adapter found for Application_Model_DbTable. What’s wr ... tion.ini file and paste it before [staging : production] section: Running application You see list of animals from database.

How install DBDesigner on Windows OS?

Go to  http://fabforce.eu/dbdesigner4/  download open source tool for modelling and design databases. Download DBDesigner4.0. ... n to start installation process. Click the Finish button to end this process. It is how lokks like the icon this application:

UNIQUE clause and NULL in SQL Server 2012

In this topic You find out how work UNIQUE constraint for column with or without NOT NULL constraint. Begin with  creating i ... one NULL value. If You would like to constraints this field for NOT NULL, You may add NOT NULL to column with UNIQUE clause.

How install Report Builder 3 for Reporting Services?

In this article I will explain you how install Report Builder 3 for Reporting Services. First step is download installation ... r 2017? Click the Next button. Click the Install button. After installation process, you see Report Builder window as below.

Add connection in Netbeans 8 to the SQL Server 2012 database.

If you have added driver for SQL Server 2012, You may set connection to test database. So go to Services window and right cl ... y public and sysadmin: In User Mapping tab for test database it is choose only db_owner and public role. It is Status tab:  

Insert data into the existing table of PostgreSQL 9 with Hibernate 5, JPA in Maven Project in Netbeans 8

You have table people created in mydb in PostgreSQL(id as serial and primary key and name columns). We create it in post:Cre ... = GenerationType.IDENTITY) private Long id; private String name; ... And run application and get data from database:

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.  

How encrypt and decrypt text password example sending into database?

I spend a lot of time to find solution for encryption password and insert it into database and get it from database and decr ... ception e) { System.out.println("bug"+e.getMessage()); }     }      } If You run this application in Output window see:    

Create new database in SQL Server 2012

Right click the Database node and choose New Database. You see New Database window: In Database name field write test. Cl ... Write several names in name field. Id field will be added automatic. When you select data you all data from mytest table.  

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.

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.

How install DBDesigner on Windows OS?

Go to  http://fabforce.eu/dbdesigner4/  download open source tool for modelling and design databases. Download DBDesigner4.0. ... n to start installation process. Click the Finish button to end this process. It is how lokks like the icon this application:

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;

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.

Maven Project in Netbeans 8 with JPA 2, Hibernate 5 and PostgreSQL 9.6 database

This work begin with connect PostgreSQL database in Netbeans. I show how it do in How set connection to PostgreSQL 9.6 datab ... result in data view in database. Right click the department table and choose View Data. It is all record in department table.