T-SQL

Technical Article

Change to readable date format

  • Script

Trigger to insert date into table in the form of01/01/00 12:00:00instead of SQL standard date format2000-01-01 12:00:00.000This allows easily comparing to or updating based onOracle date formats or a readable format for the web.triggername - name of the triggerTABLENAME - name of the table that trigger is created onCOLUMNNAME - name of column in TABLENAME […]

You rated this post out of 5. Change rating

2006-08-21 (first published: )

471 reads

Technical Article

get rich schema details of all or some tables

  • Script

to get information about tables+columns+primarykeys+foreignkeys+identity, i firstly used SQL server built-in INFORMATION_SCHEMA.xxx. however, my company have various DBAs and each of them owns objects. when using INFORMATION_SCHEMA.xxx, it retrieves data based on current login (version 2005 resolves this schema v.s. object owner problem already... yeah) , which bring me a great trouble. if you want […]

3 (2)

You rated this post out of 5. Change rating

2006-08-30 (first published: )

560 reads

Blogs

I like KQL and I like managing my test data – are they mates?

By

Test Data Management (TDM) is essential in software development to ensure your application runs...

Reading JSON Data with Python

By

Recently I’ve been looking at archiving some data at SQL Saturday. As a start,...

5 Advanced Online SQL DBA Training Courses to Learn in 2024 and Beyond

By

Buckle up, database wranglers! Nowadays, SQL DBAs hold the keys to a company's most...

Read the latest Blogs

Forums

Subscription to Oracle DB not working after upgrading subscriber to Oracle 19c

By rpalani65sql

Hi Replication and publisher configured on the same sql server 2022 version. Subscription to...

Script to Merger duplicate indexes

By EM2

Hello, I am trying to firgure out how to merge duplicate indexes using a...

using Openrowset to access delta files in ADLG2

By river1

Dears, I was told that I cannot access delta files in SQL Server Managed...

Visit the forum

Question of the Day

The Query Traceflag

If I want to enable a trace flag for a specific query, how do I do it?

See possible answers