Viewing 15 posts - 136 through 150 (of 242 total)
Backup log file with truncate_only option and shrink database log file.
December 25, 2008 at 11:19 pm
restore header_only from disk = 'your bak file path'
December 25, 2008 at 11:18 pm
Yes it is sql server 2005.
I want user can change table structure from query anlyzer only by scripts.
December 25, 2008 at 10:13 pm
--For Full backup of system databases:
Declare @date varchar(50)
DECLARE @sql varchar(8000)
set @date = convert(varchar,getdate(),112)
DECLARE @BAK_PATH VARCHAR(4000)
declare c_bak cursor FAST_FORWARD FOR
select name from sys.databases where name in...
December 24, 2008 at 10:14 pm
Can i run Upgrade Adviser on database which have in SQL server 2005 (which was restored from sql server 2000 ). but have compatibility is 80.
December 24, 2008 at 10:12 pm
U can schedule following script as per ur requirement.
--Full backup database stared from dev_
Declare @date varchar(50)
DECLARE @sql varchar(8000)
set @date = convert(varchar,getdate(),112)
DECLARE @BAK_PATH VARCHAR(4000)
declare c_bak cursor FAST_FORWARD FOR ...
December 24, 2008 at 10:11 pm
select Login_name from sys.sysprocesses
--To find hostwise connection
select hostname,count(spid) as Total_Connection,sum(isnull(memusage,0)) as MemUsage from sys.sysprocesses
group by hostname
----------
--To find Database wise connection
select db_name(dbid) as DatabaseName,count(spid) as Total_Connection,sum(isnull(memusage,0)) as...
December 24, 2008 at 10:02 pm
-- To find Database space
sp_msforeachdb 'dbcc showfilestats'
GO
sp_msforeachdb 'sp_spaceused'
GO
sp_databases
GO
-------------------------------------------------------------------------------------------
Row count and space used for all tables in database -------------------------------------------------------------------------------------------
/*****************************************************************************************************************************************
******************************************************************************************************************************************/
if exists(select * from sys.objects where object_id = object_id('dbo.proc_records_per_database') and type =...
December 24, 2008 at 9:59 pm
Pls find attachment..
December 23, 2008 at 10:47 pm
ps (12/23/2008)
I think in active/passive u dont need to pay for license on the passive server. 😉 but thats only the cost part of it..
Thanks,
Can u differentate Active/Passive and...
December 23, 2008 at 5:08 am
Yes,
SPID is intrenal process of sql database like any connection with database.
which u get from select * from sys.sysprocesses
and ProcessId which the cliient processes like SQL server and it'e comonent...
December 23, 2008 at 5:05 am
Use following script :
CREATE PROCEDURE DR_Script_logins
AS
DECLARE @login_name sysname
DECLARE @name sysname
DECLARE @xstatus ...
December 23, 2008 at 4:18 am
Use follwing events:
TSQL:
1.SQL:BatchCompleted
2.SQL:BatchStarting
Stored Procedure:
1.RPC Completed
and use following filter
1.Databaseid
2.Loginname
December 23, 2008 at 2:46 am
Viewing 15 posts - 136 through 150 (of 242 total)