November 27, 2014

Understand horrible database

I never got fresh database.it's my bad luck so I always deal with old database which are created by someone who already left the company.Due to this situation,I have wasted so much time while developing or finding bug.Today I got some tips on Google. Hopefully It will help me in future.

1) Create E-R diagram

2) Examine each table and column make sure the meaning of what it stores.

3) Examine each relationship and make sure how the tables relate to one another

or

1) Understand the project flow from front end code or any document

2) find master table and it's transaction table whose having same column ID name


First I look up for the "Master Table", then, with pen and paper, I start mapping the relations with other tables, after that, if there's some app code to look at I start making some raw sketches on how the data flows.See if the option of a Knowledge Transfer session is available to you, and if so, take full advantage of it.


--Find multiple table by using column name

SELECT * FROM ALL_TAB_COLUMNS 
 WHERE COLUMN_NAME LIKE '%TASK%' 
 AND owner = 'database_name';


--Find Column named like 'blah' in a specific table 

SELECT O.NAME, O.ID, C.NAME, O.XTYPE 
FROM SYSOBJECTS O LEFT JOIN SYSCOLUMNS C ON O.ID=C.ID 
WHERE C.NAME LIKE '%SearchFor%' 
AND O.XTYPE IN ('U','V') 
AND O.Name like '%TableName%' ORDER by O.Name


--Find all Columns in DB with name like 'blah' 

 SELECT O.NAME, O.ID, C.NAME, O.XTYPE 
FROM SYSOBJECTS O LEFT JOIN SYSCOLUMNS C ON O.ID=C.ID 
WHERE C.NAME LIKE '%SearchFor%' 
AND O.XTYPE IN ('U','V') ORDER by O.Name


select a.table_name, column_name,DATA_TYPE,DATA_LENGTH 
from all_tab_columns a,USER_ALL_TABLES u
where a.TABLE_NAME=u.TABLE_NAME
and column_name like ‘empid%’  order by DATA_LENGTH desc;

yes we can do a similar search in all views. Here is your query. 
Hope this helps you.. Let me know.


select a.table_name, column_name,DATA_TYPE,DATA_LENGTH 
from all_tab_columns a,ALL_CATALOG u
where a.TABLE_NAME=u.TABLE_NAME
and column_name like upper(‘latitude%’)
and u.table_type=’VIEW’
and u.owner=’YOUR_OWNER’
order by DATA_LENGTH desc;


Find child Table

SELECT table_name FROM ALL_CONSTRAINTS WHERE constraint_type = 'R' -- "Referential integrity" AND r_constraint_name IN ( SELECT constraint_name FROM ALL_CONSTRAINTS WHERE table_name = '[TableName]' AND constraint_type IN ('U', 'P') -- "Unique" or "Primary key" )


select table_name, constraint_name, status, owner from all_constraints where r_owner = :r_owner and constraint_type = 'R' and r_constraint_name in ( select constraint_name from all_constraints where constraint_type in ('P', 'U') and table_name = :r_table_name and owner = :r_owner ) order by table_name, constraint_name

November 3, 2014

NIce link for software development


SQL

ASP.Net MVC Life Cycle


MVC Application Lifecycle - CodeProject

A Beginner's Tutorial for Understanding Filters and Attributes in ASP.NET MVC - CodeProject

Differences and Similiarities Of Html.RenderAction and Html.Action Method

RenderPartial vs RenderAction vs Partial vs Action in MVC Razor

Partial Classes in C# With Real Example - CodeProject

Areas in ASP.NET MVC 4 - CodeProject

What Are Areas in ASP.Net MVC - Part 6

MVC Data Annotations for Model Validation

MVC Areas with example

Asp.net MVC Request Life Cycle

Exception or Error Handling and Logging in MVC4

ASP.NET MVC – What Are the Uses of DataType and DisplayColumn Attributes? - CodeProject

Layouts, RenderBody, RenderSection and RenderPage in ASP.NET MVC

Custom Authentication and Authorization in ASP.NET MVC

Understanding ASP.NET MVC Scaffolding

Understanding HTML Helpers in ASP.NET MVC

Understanding ASP.NET MVC Filters and Attributes

How to pass javascript complex object to ASP.NET Web Api and MVC

What is the difference between each version of MVC 2, 3, 4, 5 and 6? (MVC Interview Questions)

ASP.NET MVC3 Vs MVC4 Vs MVC5 Vs MVC6 - Web Development Tutorial

Exception Handling in MVC - CodeProject

C#.net

Basic Object Oriented Programming (OOP) Concepts


c# - What is Shadowing? - Stack Overflow
Virtual vs Override vs New Keyword in C# - CodeProject
IEnumerable VS IQueryable
Difference between ref and out parameters
Differences between Object, Var and Dynamic type
Jump statements in C#
Difference Between Constant and ReadOnly and Static
Understanding Boxing and Unboxing in C#
A Deep Dive into C# Abstract Class
Understanding Delegates in C#
A Deep Dive into C# Interface
Introduction to Entity Framework
Implementation of Dependency Injection Pattern in C#
Introduction to Ado.net
Understanding LINQ Standard Query Operators
Understanding Single, SingleOrDefault, First and FirstOrDefault
Different ways to write LINQ query
Difference between Select and SelectMany in LINQ
Difference Between Finalize and Dispose Method
.Net Garbage Collection in depth
Enums and Structs in C# - CodeProject
Partial Class, Interface or Struct in C Sharp with example
ViewData vs ViewBag vs TempData vs Session
What are Access Modifiers in C#?
Understanding Relationship Between CTS and CLS
What is IL code, CLR, CTS, CLS & JIT? - CodeProject
what is access modifier in c# - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,WCF examples
Constructor in C Sharp
C# Heap(ing) Vs Stack(ing) in .NET: Part I
Structs - The complete C# Tutorial
What are sealed classes and sealed methods
Implementation of Dependency Injection Pattern in C#
Understanding Inversion of Control, Dependency Injection and Service Locator
Access Specifier or Modifier in C# | MY.NET Tutorials
C# Hashtable Examples
C# - Hashtable Class
Difference between Generics and Collections with example
C# - Difference between Array and Arraylist in C# with Example - ASP.NET,C#.NET,VB.NET,JQuery,JavaScript,Gridview,SQL Server,Ajax,SSRS, XML examples
Difference between Deferred execution and Immediate execution
Differences Between Hashtable and Dictionary
How to Use Take/TakeWhile and Skip/SkipWhile in LINQ
C#/.NET interview Question - What are the different types of collections in .NET ... - DotNetFunda.com
Understanding 4 Types of AJAX Frameworks | Elance Blog
design patterns - What is dependency injection? - Stack Overflow
StringBuilder C#
C# - Difference between String and Stringbuilder in C#, Asp.net - ASP.NET,C#.NET,VB.NET,JQuery,JavaScript,Gridview,SQL Server,Ajax,SSRS, XML examples
Singleton VS. Static Classes
Asynchronous Programming in C# 5.0 Part 1: Understand Async and Await
Parallel Programming in .NET Framework 4: Getting Started | C# Frequently Asked Questions
Async and Await
Constructors and Its Types in C# With Examples

OOPS

ASP.Net

Secure web hosting

AngularJS

Major s/w implementation

SecureFTP

File uploaders

Google API useful

Admin console


Google APIs Console
Blog.CoenGoedegebure.nl: Accessing Google Drive from .NET
An internal error occurred loading p12 certificate
Google Drive SDK — Google Developers
Google APIs Console
Drive API Client Library for .NET - Google APIs Client Library for .NET — Google Developers
OAuth 2.0 for web applications - AdSense Management API — Google Developers
OAuth2 flows - API Documentation
Google Drive SDK — Google Developers
Implementing OAuth 2.0 Authentication - YouTube — Google Developers
Using OAuth 2.0 to Access Google APIs - Google Accounts Authentication and Authorization — Google Developers
code-e: .NET, OAuth2, and the Google Analytics Service account.
OAuth 2 Simplified - Aaron Parecki
Google Apps Platform — Google Developers
Google Drive SDK — Google Developers
asp.net - Google Drive API .Net Issues - Stack Overflow
Google Drive API v2 | Daimto
Google Drive SDK — Google Developers
Google Drive SDK — Google Developers
Google Drive SDK — Google Developers
Google Talk Developer Documentation - Google Talk for Developers — Google Developers
[Solved] How to read mail from Gmail using C#.net - CodeProject
C# - Retrieve Email from Gmail Account, fetch email from gmail , how to access gmail inbox, get mail from inbox of gmail in c#
Google Apps Application APIs - Google Apps Platform — Google Developers
Read Gmail Inbox Message in ASP.NET - CodeProject
5 things you didn't know you could do with the Google Drive API - Google Apps Developer Blog
Retrieve Email and Parse Email in C# - Tutorial
Accessing Google Spreadsheets with C# using Google Data API - Stack Overflow
Gmail functionality send , delete , read , unread , archive in c#.net : The Official Forums for Microsoft ASP.NET
.NET Client Library Developer's Guide - Google Data APIs — Google Developers
https://developers.google.com

SMS sending

Email verification

News API

File listing

Hacking

Utility

ColorPicker.com - Quick Online Color Picker Tool


Regular Expression Cheat Sheet (.NET Framework)
RegExr
GIF Categories - Giphy
Free Online YouTube Downloader: Download YouTube Videos, Facebook and many others!
Convert JPG to PDF for free - JPG to PDF online converter
Icon Archive - Search 502,564 free icons, desktop icons, download icons, social icons, xp icons, vista icons
Poor SQL - Instant Free and Open-Source T-SQL Formatting
IP Lookup - IP Locator, IP Location, IP Address Lookup, IP Finder, Reverse DNS, Nameservers
Hex-to-RGB Color Converter
Removal of pdf pages online
Online Image to Icon Converter
.NET Regex Tester - Regex Storm
CSS3 Generator
Catch online videos with Catchvideo.net and convert them to MP3 from Youtube, Dailymotion, Vimeo videos for free
Striket̶h̶r̶o̶u̶g̶h̶ text for Facebook & Twitter
TinEye Reverse Image Search
The easiest way to learn electronics and Arduino programming | 123D Circuits by Autodesk
Iconmaker
loading.io - Your SVG + GIF Ajax Loading Icons
33,200 Free Icons - The Largest Icon Pack Ever

Programming Tips