Quantcast
Channel: Juan – www.myw0.com
Browsing all 34 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Oracle PL/SQL – SQL Plus Startup Script with glogin.sql or login.sql

This article shows about how to configure the environment variable when SqlPlus – SqlPlus Command start up in order to have always a good behavior in the formatting of the result. You have to setup the...

View Article


Image may be NSFW.
Clik here to view.

Oracle PL/SQL – Finding number of rows in each table by a single query

Sample: select table_name, to_number(extractvalue(xmltype(dbms_xmlgen.getxml('select count(*) c from '||table_name)),'/ROWSET/ROW/C')) as RowCount from user_tables where iot_type != 'IOT_OVERFLOW' or...

View Article


MySQL Store Procedure to Loop with Table Cursor and Update with UUID()

This is a sample MySQL store procedure where I loop in all rows in a table and then I update each row with a UUID(). DELIMITER // CREATE PROCEDURE dwdata.puFCTableGUIDs() BEGIN /* -- Declare variables...

View Article

FORMAT Function for Transact-SQL – T-SQL

Returns a value formatted with the specified format and optional culture in SQL Server 2016. Use the FORMAT function for locale-aware formatting of date/time and number values as strings. FORMAT (...

View Article

Image may be NSFW.
Clik here to view.

How to create PDF files from Microsoft Office Product

Microsoft a built-in feature that can facilitate in creating a PDF file from any Office product. Here is a quick guide with screenshots.

View Article


List all triggers in SQL Server database with table name and schema

Sample query: SELECT @@servername as ServerName, db_name() as DatabaseName, [so].[name] AS [trigger_name], USER_NAME([so].[uid]) AS [trigger_owner], USER_NAME([so2].[uid]) AS [table_schema],...

View Article

Find Duplicate Values with SQL Script

Let’s assume that data has been entered in a table and now you want to find if a table column have duplicated values. Here is an SQL script to join data from one table for comparison purpose. The table...

View Article

Oracle – Create Table by Select Statement

–WITH data CREATE TABLE test3 AS SELECT table_name, tablespace_name FROM all_tables; –without data CREATE TABLE ctas AS SELECT table_name, tablespace_name FROM all_tables WHERE 1=2; — For example,...

View Article


Image may be NSFW.
Clik here to view.

The feed does not have subscriptions by email enabled – FeedBurner

If you see the FeedBurner error message above, this means that you need to enable the subscription by email option in your FeedBurner account settings. It could also mean that you have not obtained the...

View Article


What is – DML, DDL, DCL and TCL – Introduction

DML DML is abbreviation of Data Manipulation Language. It is used to retrieve, store, modify, delete, insert and update data in database. Examples: SELECT, UPDATE, INSERT statements DDL DDL is...

View Article

Update consecutive numbering with UPDATE statement – MSSQL

I want to update a table with consecutive numbering starting at 1. The update has a where clause so only results that meet the clause will be renumbered. Can I accomplish this efficiently without using...

View Article

How to Optimize iPhone, iPad and iPod Performance

1. Close Apps Running in the Background On an iOS 10/9/8 device, when you tap the home button to leave an app, you do not “close” that app. In fact, all apps continue to run in the background, and...

View Article

Robocopy: Command-line Usage Examples and Switches

RoboCopy (Robust File Copy) is a command-line file copying tool in Windows. It is designed for reliable copying or mirroring of directories anywhere the computer has access, including local drives,...

View Article


VirtualBox Keyboard Shortcuts

VirtualBox Manager (41 shortcuts) Ctrl + ↑   Shift + A Cloud Profile Manager: Add Profile… Ctrl + ↑   Shift + A Media Manager: Add… Ctrl + A Add machine… Ctrl + ↑   Shift + D Log Viewer: Bookmark Ctrl...

View Article

How to copy and paste between your computer and VirtualBox

1- Install additional software After you install VirtualBox and a virtual machine, you want to Copy & Paste between your computer and the virtual machine, you need to install an additional piece of...

View Article


How to Batch Rename File Extensions

So how do you rename multiple file extensions at once? If you have a directory full of files that need to be changed from .PNG to .JPG, it’s going to take forever to do this using the method above....

View Article

How to Change Schema of Mssql Tables, Stored Procedures, and Views All at the...

Sometimes changing database users changes who the database owner is for a table from dbo.tablename to badschema.tablename. This will also affect any stored procedures created under the tables with the...

View Article


Microsoft Hyper-V Virtual Machine Keyboard Shortcuts

With Hyper-V we now have the “Virtual Machine Connection” to use when interacting with a virtual machine (unlike Virtual Server which used “VMRC”).  The Virtual Machine Connection window wraps the...

View Article

Illegal mix of collations (utf8_general_ci,IMPLICIT) – MySQL

-- Preparations SET SESSION group_concat_max_len=4294967295; SET SESSION foreign_key_checks=0; -- Set default character sets and collations ALTER DATABASE dwdata CHARACTER SET utf8 COLLATE...

View Article

How to repair a “suspect” state database in MSSQL (Sample SQL Script)

View Article
Browsing all 34 articles
Browse latest View live