Viewing 15 posts - 31 through 45 (of 113 total)
There must be a better way...
select distinct b.ParameterID,b.ParameterValue,a.ParameterTimestamp
From #Parameters a
Cross apply (select distinct ParameterId from #Parameters) c
Outer Apply (select top 1 * from #Parameters
where ParameterTimestamp <= a.ParameterTimestamp...
July 16, 2012 at 10:05 am
I haven't used disk encryption, but when you copy data to other device (flash drive etc...), it is no more secured. While TDE and/or file encryption provides that security.
Definitely Disk...
July 12, 2012 at 12:42 pm
How much tempDB grows by this query?
What data types? any blobs?
How much sql memory? Min/Max
How much "Memory Manager/Total Server Memory(KB)" from PerfMon?
Also consider size of data in 200K+ rows
July 11, 2012 at 9:40 am
You need to specify parameter is nullable or not
CREATE PROCEDURE [dbo].[DR_Premier_PO_O] (@DischargeStartDate DateTime =NULL, @DischargeEndDate DateTime =NULL)
AS
DECLARE @vStartDate as varchar(30), @vEndDate as varchar(30)
SET @DischargeEndDate = DateAdd(mi,-1,@DischargeEndDate)
SET @vStartDate = CONVERT(varchar(30),...
July 10, 2012 at 1:50 pm
Can you try giving "Log on as a service" permission?
Administrative Tools -> Local Security Policy -> Local Policies -> User Rights Assignment.
Edit the item "Log on as a service"...
July 6, 2012 at 10:47 am
SQL Server seems to be more tolerant of minor network issues during a restore than a backup.
100% agree, thanks
July 5, 2012 at 2:23 pm
What about taking compressed backup over network?
July 5, 2012 at 2:13 pm
Lavanyasri (6/29/2012)
Thanks Nagarajan.So this issue is related to APP or DB??
I would say it can be either or both. The possible reasons I can think of are...
- Increase in...
July 2, 2012 at 1:11 pm
achen9291 (6/27/2012)
Can you tell me what the "a" and "b" stand for? and what the purpose of cross apply is?
"a" and 'b" are alias
June 27, 2012 at 2:32 pm
Use CROSS APPLY
Select b.*
from #ProxyLog_count_2 a
CROSS APPLY (Select ClientUserName, DestHost, count(DestHost) counts
from #ProxyLog_record
where ClientUserName = a.ClientUserName) b
June 27, 2012 at 2:16 pm
I assume you have more than one server to include in this task
For master database you have to perform CHECKDB on production server
I have setup this...
June 22, 2012 at 11:26 am
shahgols (6/20/2012)
I see that sys.dm_exec_cached_plans has a column objtype, and one of the values for this column is "Adhoc". Could this object/column be used...
June 20, 2012 at 2:03 pm
Mohammed Yousuf (6/19/2012)
But I want to determine the actual SQL statements SELECT/INSERT/DELETE/UPDATE that are involved in deadlock.
The objects point to SP's and they have many...
June 19, 2012 at 11:20 am
create table #tab1(id int,oldId int, InsertedOn datetime)
insert into #tab1 values (99,NULL,getdate()-7)
insert into #tab1 values (17,14,getdate()-9)
insert into #tab1 values (14,12,getdate()-14)
insert into #tab1 values (12,null,getdate()-15)
insert into #tab1 values (20,17,getdate()-8)
select distinct a.id,a.oldId
from...
June 19, 2012 at 6:38 am
Viewing 15 posts - 31 through 45 (of 113 total)