En el desarrollo web es muy común encontrarnos con la situación de tener que validar si un usuario existe, si es asi, actualice sus datos, en caso contrario, agregamos el usuario a la base de datos con un INSERT. Normalmente ejecutariamos dos sentencias un primer SELECT buscando el usuario por medio del ID y luego un INSERT o UPDATE dependiendo del resultado del SELECT, todo esto por medio de nuestro código. Pues MySQL tiene una sentencia que nos ahorra este trabajo y lo que hace es que intenta el INSERT si el resultado devuelve un error de llave repetida hace un UPDATE. Read more »

Cambiar el encoding a PostgreSQL. Read more »

I came up with Idea of this article, when I tried to create replication setup between MS SQL 2008 and MySQL. I was unable to do it since MS SQL provides only two non SQL Subscriptions/Publishers options.
However I created the linked server through which I can access and query the MySQL databases and tables.
A linked server (a virtual server) may be considered a more flexible way of achieving remote access, with the added benefits of remote table access and distributed queries. Microsoft manages the link mechanism via OLE DB technology. Specifically, an OLE DB data source points to the specific database that can be accessed using OLEDB.
Let’s try and create MySQL linked Server on MS SQL Server 2008 and query a database. Read more »

This is one of a few MySQL High Availability strategies. I have used this for years and found it work great. If you don’t know about DRBD and MySQL you should read Peter’s comments.
These are step by step instructions for Redhat 5 or CentOS. Read more »

In this section, some SQL Injection techniques for PostgreSQL will be discussed. Keep in mind the following characteristics:
* PHP Connector allows multiple statements to be executed by using ; as a statement separator
* SQL Statements can be truncated by appending the comment char: –.
* LIMIT and OFFSET can be used in a SELECT statement to retrieve a portion of the result set generated by the query Read more »

Há alguns dias venho dedicando um tempo com o banco PostgreSQL para aprender como funciona sua replicação utilizando ARCHIVES.
Em paralelo com o ambiente de testes VOSTROLAB que vocês já conhecem, tudo foi testado e documentado minusciosamente como de costume.
Como fecharam 9 páginas em um PDF resolvi publicar pelo Dropbox ao invés de fazer um mega-post gigantesco aqui no Blog CiaLinux. Read more »

La utilidad db2ckbkp permite, entre otros, verificar la validez de un backup físico online/offline realizado en una base de datos DB2.
En concreto, tiene las siguientes utilidades: Read more »

1.- Se debe de crear el usuario informix con su grupo informix de la siguiente manera Read more »

Cuando se trabaja con Informix, y se tiene odbc generados para algún servidor que tenga una determinada instancia (ejemplo ol_srv1) y tenes otro servidor que tenga el mismo nombre de instancia, el odbc da problemas al configurarse, porque por algo al poner la instancia (ServerName en el odbc de Windows) entonces queda atada la instancia a la ip, entonces si configuras otro odbc y también pones el mismo servername, y cambias la ip, todos los odbc generados que tengan ese servername quedan con la misma ip, y esto puede causar problemas, o confusiones. Read more »

En un post anterior, ya  había contado a grandes rasgos cómo se licencian los productos de Oracle (procesador y named user plus). Pues existe una opción muy interesante a tener en cuenta a la hora de licenciar nuestro sistema: Server / Hardware Partitioning.
Básicamente se trata de pagar sólo por los procesadores que utilizamos para ejecutar Oracle en sistemas con muchas CPU. Read more »

One of the new features in PostgreSQL 8.4 was the “WITH RECURSIVE” clause available for queries. It allows you to define a subquery based on a recursive term — fancy language for a function that calls itself. One of the favorite uses of recursion is walking a network. Geospatial applications use networks all the time: electrical grids, stream systems, and storm sewers are all directed networks (they have unidirectional flow).
Here’s an example of network walking using a simple collection of segments. As is common in many GIS applications, the segment are implicitly connected — their end points are coincident with the start points of other segments. Read more »

Buscar en DbRunas

Descargar versiones libres recomendadas actualizadas

Revistas

PostgreSQL Magazine (ingles): PostgreSQL Magazine
SQL Server (ingles): SolidQ SQL Server Journal
SQL Server (ingles): Code Magazine
PostgreSQL (ingles): Postgres OnLine Journal
Oracle (ingles): oraclemagazine-digital
SQL Server (español): MSDN Magazine
MySQL (ingles): MySQL Magazine

Manuales

Recursos

Archivo diario de noticias

July 2010
M T W T F S S
« Jun   Aug »
 1234
567891011
12131415161718
19202122232425
262728293031  

Archivo por mes y año

Comentarios recientes

RSS Ayudas Oracle

RSS Ayudas PostgreSQL

RSS Ayudas MySQL

RSS Ayudas SQL Server

RSS Ayudas DB2

RSS Ayudas SQL

RSS Feeds Planeta PostgreSQL-es

RSS Feeds Planet PostgreSQL

RSS Feeds Planeta PostgreSLQ Brazil

RSS Feeds Planet MySQL

Blogroll

Clouds

Desde donde nos visitan

Site5 | Experts In Reseller Hosting.