USE DEALHUB_ARCH1 select 'Database Name: ', db_name() set nocount on if exists(select name from tempdb..sysobjects where name='##tmp') drop table ##tmp create table ##tmp(nam varchar(50), rows int, res varchar(15),data varchar(15),ind_sze varchar(15),unsed varchar(15)) go declare @tblname varchar(50) declare tblname CURSOR for select name from sysobjects where xtype='U' open tblname Fetch next from tblname into @tblname WHILE @@FETCH_STATUS = 0 BEGIN insert into ##tmp exec sp_spaceused @tblname FETCH NEXT FROM tblname INTO @tblname END CLOSE tblname deallocate tblname go select nam Table_Name,rows Total_Rows,res Total_Table_Size,data Data_size,ind_sze Index_Size,unsed Unused_Space from ##tmp drop table ##tmp |
Thursday, 11 March 2010
SQLServer : Object sizes Report
Posted by
Ook
at
06:26
0
comments
Monday, 8 March 2010
Audacity : Recording from a sound card in Vista
|
Posted by
Ook
at
09:53
0
comments
Friday, 5 March 2010
Oracle Dataguard : dgmgrl - various commands
<b>Start dgmgrl
<b>Check the configuration status<br /></b>
<b>Create/enable configuration<br /></b>
<b>Stop transmit of dbs from primary <br /></b>
<b>Temporarily stop broker managing and monitoring a standby database.<br /></b>Switchover
<b>Manual Failover<br /></b>
|
Posted by
Ook
at
06:33
0
comments
Labels: Oracle
Saturday, 27 February 2010
Saturday, 13 February 2010
Redhat : Up2date crib
up2date --showall | grep libaio up2date download unixODBC-devel up2date download unixODBC-devel--arch-i386 up2date --install unixODBC-devel |
Posted by
Ook
at
05:59
0
comments
Thursday, 11 February 2010
MS SQL : List all tables and columns
SELECT SysObjects.[Name] as TableName, SysColumns.[Name] as ColumnName, SysTypes.[Name] As DataType, SysColumns.[Length] As Length FROM SysObjects INNER JOIN SysColumns ON SysObjects.[Id] = SysColumns.[Id] INNER JOIN SysTypes ON SysTypes.[xtype] = SysColumns.[xtype] WHERE SysObjects.[type] = 'U' and SysColumns.name like '%ap%' ORDER BY SysObjects.[Name] |
Posted by
Ook
at
02:32
0
comments
Wednesday, 10 February 2010
Vmware : Direct shortcut to a Vsphere machine
D:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\4.0\vmware-vmrc.exe" -h 192.168.69.42 -u root -p PASSWORD -d "[datastore1] Ninefingers2/Ninefingers2.vmx" -X -h Vsphere host -u User -p Passord -d Datastore path to vmx file -X Cant remember |
Posted by
Ook
at
14:20
0
comments
Labels: VMWare
Subscribe to:
Posts (Atom)