open-menu closeme
Home
RetroComp icon
Retro Computing Articles Composition Notebooks 8bit
DevOps icon
Automation K8s Done Right
GenAI icon
Fatlama Newsletter Generative AI
SQLite
Status
Links icon
LinkedIn
About
馃寪
English Italiano
github linkedin rss
  • dapper-dot-net - Simple SQL object mapper for SQL Server - Google Project Hosting

    calendar May 15, 2011 路 1 min read
     it sql  路 net c google hosting sql
     路
    Share on: twitter facebook linkedin copy
    聽

    聽Dapper is a single file you can drop in to your project that will extend your IDbConnection interface. [...]

    A key feature of Dapper is performance. The following metrics show how long it takes to execute 500 SELECT statements against a DB and map the data returned to objects.


    Read More
  • Help Daitan find a Sql solution for codezauker

    calendar Mar 6, 2012 路 3 min read
     en featured software sql  路 nosql redis sqlite
     路
    Share on: twitter facebook linkedin copy

    In my code ramblings during the developement of Code Zauker, I ended up studing a bit NoSql聽 database.

    Code zauker started using Redis, because Redis is a very bold memory-based no-sql db. Redis also support complex data type like sorted set, lists and so on, which was very userful. Anyway I needed a very fast way of doing statistics on data collected by code zauker, for inspecting data and finding out new feature I’d like to add to it. Worst, my current pocket pose a hard limit on a redis instance in terms of available RAM. So I started thinking a lot about a redis drop-in replacement for Code Zauker.


    Read More
  • SQL Server Backup & Restore

    calendar Oct 8, 2012 路 1 min read
     it knowledgebase software sql  路 backup sqlserver
     路
    Share on: twitter facebook linkedin copy

    E’ facile fare un backup con sql server: Basta selezionare tasto destro Tasks>>Backup su un db. Ma come fare il restore?… Ecco un semplice script che chiarisce la cosa (non sempre lampante dallo wizard di restore….): [sql] – Usare il seguente comando per recuperare i parametri sorgente da usare nella MOVE – Nel nostro caso ssaranno MY_BACKUP e MY_BACKUP_log RESTORE FILELISTONLY FROM DISK = N’C:\TEMP\MY_BACKUP\Backup.bak’ ;


    Read More
  • Come evitare iniezioni SQL lato DB in SQLServer, Oracle, MySQL

    calendar Dec 2, 2012 路 2 min read
     it sql  路 asp c mysql php sql sqlserver
     路
    Share on: twitter facebook linkedin copy

    聽Come evitare iniezione SQL: lato SQL Server (SP_EXECUTESQL)

    In generale va evitato nel modo pi霉 assoluto la scrittura di query sql diamiche.

    Va evitato cio猫 聽l鈥檜so lato SQL Server di sp_executesql e EXEC


    Read More
  • Oracle Invalid number ORA-01722

    calendar Jul 15, 2013 路 1 min read
     en knowledgebase sql  路 bad bug oracle sql
     路
    Share on: twitter facebook linkedin copy

    I stumbled upon a very brain-f**k error on Oracle 10g on these days.

    Context: the following query [sql]SELECT * FROM (
    SELECT TO_NUMBER(CUSTOMER_ID) AS SNDG FROM BAD_CODES_TABLE WHERE
    AND I_LIKE=UPPER(‘STATIC_CONDITION’) AND CUSTOMER_ID NOT LIKE ‘%P%’ ) S WHERE TO_NUMBER(S.SNDG) >2000[/sql] could trigger a Invalid number if CUSTOMER_ID column contains invalid numbers.

    Why?

    Well鈥f you ask to “explain plan”, you will get something like

    • a table full scan
      • Filter Predicates AND
        • I_LIKE=UPPER('STATIC_CONDITION')
        • TO_NUMBER(S.SNDG) >2000
        • CUSTOMER_ID NOT LIKE '%P%'

    Read More
  • Oracle Database Sync

    calendar Nov 22, 2016 路 1 min read
     en featured knowledgebase sql  路 oracle tip
     路
    Share on: twitter facebook linkedin copy

    Oracle SQL Developer is full of nice feature, damned by a overwhelming options pane, like the one I will describe to you right now.


    Read More
  • Oracle Auto increment trigger HOWTO

    calendar Dec 13, 2016 路 1 min read
     en featured knowledgebase sql  路 oracle tip
     路
    Share on: twitter facebook linkedin copy

    Oracle SQL Developer is full of nice feature, damned by a overwhelming options pane, like the one I will describe to you right now.

    Even if聽 Oracle databases (<12) does not support auto increment, you can easily ask to your sql data modeler to generate for you a sequence and a trigger in a automatic way.


    Read More
  • Oracle SQL Developer Keep Alive plugin

    calendar Jan 26, 2017 路 1 min read
     en software-projects knowledgebase software sql  路 oracle plugin sql
     路
    Share on: twitter facebook linkedin copy

    On some environment, on some customers, Oracle connections are drop after some idle time (i.e. 2 minutes).


    Read More
  • Italian Accent Oracle fix

    calendar Feb 10, 2017 路 1 min read
     en sql  路 oracle relax
     路
    Share on: twitter facebook linkedin copy

    In Italian language we have accent words like 脿猫茅矛貌霉


    Read More
  • Removing duplicate rows in PostgreSQL, Oracle and SQLite

    calendar Jun 15, 2017 路 1 min read
     en knowledgebase sql  路 evil oracle postgresql sql
     路
    Share on: twitter facebook linkedin copy

    Sometimes you need to remove nasty duplicate on a table, based on a subset of the column. On every big database there is something called “rowid” which can be used to indentify a column in a unique way. On PostgreSQL is called ctid, as we shall see:


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • »
    • »»

Giovanni Giorgi

Master Solution Architect, father and free spirit.
Read More

Recent Posts

  • FatLama for GenAI: The comeback!
  • Caciaball Extreamer
  • Screen to Gif and Terminal Screencam
  • PostgreSQL Queue in Java + Spring

Latest comments

    Disclaimer

    Gioorgi is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for website owners to earn advertising fees by advertising and linking to amazon.com, audible.com, and any other website that may be affiliated with Amazon Service LLC Associates Program. As an Amazon Associate we earn from qualifying purchases.
    Last updated:2025-05-02 02:00
    Giovanni Giorgi

    Copyright 1999-  GIOVANNI GIORGI. All Rights Reserved

    to-top