Oracle, Web, Script, SQLserver, Tips & Trick

May 13, 2011

Cara Mendapatkan Semua Table di database SQLServer

Filed under: sqlserver — sikathabis @ 12:27 am
Tags:

Cara Mendapatkan Semua Table di database SQLServer

Kalau di Oracle

Select * from Tab;

nah kalo di SQLServer

select name as TABLE_NAME from namadatabase.dbo.sysobjects
where xtype=’U’
order by TABLE_NAME;

ck ck ck ribet bener
mungkin ada yg tau cara singkatnya?

nb: jika xtype=’S’ maka itu adalah tables sys-nya

March 23, 2011

unable to cast COM object of type ‘Microsoft.office

Filed under: sqlserver — sikathabis @ 6:16 am
Tags: , ,

Keterangan itu muncul ketika mau migrasi dari access ke sqlserver untuk pelaporan SID Bank Indonesia, solusinya adalah

  • Click Start, and the click Run.
  • Type the following command:   Regsvr32.exe “C:\Program Files\Common Files\Microsoft Shared\DAO\Dao360.dll”

    dan setting path dao tadi dengan cara sbb : (more…)

December 4, 2009

How to shrink database SQL SERVER

Filed under: sqlserver — sikathabis @ 9:26 am
Tags:

.LDF file can slow performance of database on SQL Server, you should shrink the database using this script / statement

backup log DBNAME with truncate_only dbcc shrinkfile(DBNAME_Log,1)

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.