Just Footwork

this is my world and the drama never end

Friday, March 25, 2022

Add a column with a default value to an existing table in SQL Server 2005

Format :

ALTER TABLE {Table_Name}

ADD {Column_Name} {NOT NULL|NULL}

CONSTRAINT {Constraint_Name} DEFAULT {Default_Value}

WITH Values

Contoh : 

 ALTER TABLE transaksi_master

ADD [ppn_persen] [numeric](18, 2) NULL

CONSTRAINT [DF_transaksi_master_ppn_persen] DEFAULT ((10))

WITH Values

Diposting Oleh mamedcupu Jam 10:28 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Search This Blog

Anda Pengunjung Ke :

Popular Posts

  • Cara Registrasi / Daftar / Aktivasi Perdana Smartfren
  • SQL SERVER – Convert Text to Numbers (Integer) - CAST and CONVERT
  • Kenapa Cronjob selalu membuat file kosong baru?
  • DELPHI : Merubah Isi Caption Pada Button di Message DIalog
  • Wi-Fi laptop jadi hotspot???
  • Membuat Task Scheduler : Mematikan Komputer Secara Otomatis (Auto Shutdown) Windows 8
  • CODEIGNITER - SIMPAN user_data pada TABEL SESSIONS
  • Cara mendaftarkan DLL pada Windows 7 64 bit (SOLVED)

Post

  • February 2023 (1)
  • March 2022 (1)
  • May 2020 (1)
  • August 2015 (6)
  • February 2015 (1)
  • December 2014 (1)
  • November 2014 (4)
  • June 2014 (1)
  • June 2013 (1)
  • May 2013 (5)
  • April 2013 (3)
  • October 2012 (1)
  • September 2011 (1)
  • March 2011 (2)
  • February 2010 (2)
  • December 2009 (1)

Wikipedia

Search results

Just Footwork. Powered by Blogger.