doraprojects.net

How use uniqueidentifier datatype in SQL Server?

This post describe what is uniqueidentifier and how use it? The uniqueidentifier is datatype in SQL Server. It stored hexade ... into ident12(name) values('Brazil'); The error don’t display so You may try value for this record. select * from ident12;

How install XAMPP 1.8.3 on Windows 7 OS?

In this post I describe You, how install xampp package. This server is very popular  server environment contained Apache ser ... s You find in C disc in xampp folder. You see Control Panel window. I the next posts I describe how install Zend Framework.  

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:    

CRUD application in Netbeans used Java Persistence API and default SQL Server 2012 DataSource in GlassFish

What is Java Persistence API? In this post I describe You it step by step in practical project. You must early create databa ... you see website like this: If click the Show All Person link you see list of persons from test database from Person table.  

How creating the tag of JSTL library and add it to the project in Netbeans?

Sometimes we need creating own jstl tag to adding it to the project. Example for use of this is repeated code. Imagine that ... index.jsp file this code:                     Form                                       Run application.  

How add new column to the table in SQL Server Management?

Sometimes You would like to add column after created table.  But this action may be blocked. To the testing I created databa ... is check Allow Nulls check box. In this way the next column of  kolejna name  of  int datatype was added. And it is result:

How get information about local server in SQL Server 2012?

Sometimes we must get information about our server. How to do it? I write about it in this post. There are several configura ... ECT SERVERPROPERTY ( 'ProductVersion' ) as ProductVersion, SERVERPROPERTY ( 'ProductLevel' ) as ProductLevel ;

What is faster in getting data from database: Statement or PreparedStatement in Java application?

What is better to use Statement or PreparedStatement. I test both objects to connect by JDBC to database and get data. The f ... diffrence: 6221 ms In this test better findings achives PreparedStatement object. Difference between them is 503 miliseconds.

First project in JSF in Netbeans

In Netbeans you may create in simple way your Java Server Faces project. First create project. Choose form menu File->New ... displays by browser: If you find out to write simple JavaServer Faces application in Netbeans IDE is very simple and easy.  

Create the Data Source in the Report Builder

Let’s start to run Report Builder in Start on Windows OS. You see Report Builder window. Close Getting Started window, Rig ... Connection Result window and then in main window. On the left side in the Report Builder window you see your Data Source.  

JNDI – select data from database through JSTL tags.

In last post I describe how configure GlassFish server for JNDI resource ( SQL Server 2012 database ). So In this post we te ...                                Your index.jsp file: Run application. Browser display list of person from SQL Server.  

How define PRIMARY KEY on column in the table? – SQL Server 2012

Almost all tables in databases have column with primary key. This column often has int datatype. How define column of primar ... nazwisko varchar(150), imie varchar(100) not null, PRIMARY KEY(nr, nazwisko) ); One table may have only one primary key.

How install R software on Windows OS?

R is a free software for statistical computing and graphics for UNIX, Windows and MacOS. Installation R software is very simp ... ts for 32-bit and 64-bit on the Desktop: If You run R programm clicking the shortcut the windows similar to below displays:

JNDI DataSource SQL Server configuration in Tomcat for only one JSP application

In this post I describe you how configuring JEE application to connect to SQL Server database through DataSource. First crea ... our localization driver and click the Open button. In tree of project you can see it. Run application.                      

Zend Framework 1.12.3, part 2

In this post You find out how create new controller and action to it. Beginn with create your project, its name may be MyDog ... t controller and default action with these names. And You may run application click on green icon in top tools menu.        

Deployment and testing locally Java Web Start application in Netbeans

This time You create application, which will be run throught browser as web standalone application. This mechanism is Java W ... button. If you see Security Warning window, click the Run button. You see your application running throught Java Web Start.

Using IS NULL or equal operator, IS NOT NULL or not equal operator?

Begin with get data from AdventureWorks2012 database and Person table. SELECT BusinessEntityID ,Title ,FirstName ... st compare by != or with empty string work well either for number, not only strings datatypes in column storing NULL values.

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:

Sorted data in tables in SQL Server using COLLATE clause

The COLLATE is a clause apply to the database, column or string expression, set collation for data. The COLLATE clause inher ... RDER BY name COLLATE Polish_CI_AI BIN : SELECT[id],[name] FROM [BazaTest].[dbo].[person] ORDER BY name COLLATE Polish_BIN

Using alias of column in SQL query of SQL Server 2012

The SQL query in SQL Server may have alias of column. Using this alias out of name of column in query is possible only in ORD ... EAR([ModifiedDate]) > '2002' GROUP BY YEAR([ModifiedDate]) HAVING COUNT([BusinessEntityID]) > 1 ORDER BY year ;