Viewing 15 posts - 226 through 240 (of 244 total)
oops...sorry didnt remove constraint
--this one returns a count of all
SELECT count( case when tblUseOfForce.PhysicalForce = 1 then tblUseOfForce.Taser else null end ) AS Taser
, count( case when tblUseOfForce.PhysicalForce = 1...
November 25, 2009 at 6:35 am
--this one returns a count of all
SELECT count( case when tblUseOfForce.PhysicalForce = 1 then tblUseOfForce.Taser else null end ) AS Taser
, count( case when tblUseOfForce.PhysicalForce = 1 then tblUseOfForce.PhysicalForce else...
November 25, 2009 at 6:33 am
i ran what u had and it looked good unless i'm missing something.
declare @linkedserver varchar(100),
@dbname varchar(100),
@destination varchar(500),
@sqlstr varchar(1000)
set @dbname = 'AdventureWorks'
select @linkedserver = 'QAServer1'
set @destination = @linkedserver+'.'+@dbname+'.'+'sales.'
set @sqlstr = 'select...
November 24, 2009 at 3:20 pm
declare @oldip varchar(100)
declare @newip varchar(100)
select distinct oldip
, newIp
, 0 processed
into #ips
from tableName
while exists ( select top 1 * from #ips where processed = 0 )
begin
select top 1...
November 24, 2009 at 3:04 pm
update tableName
set phonenumber = '('+cast( left( rand() * 1000,3) as varchar) + ') '
+ ''+cast( left( rand() * 1000,3) as varchar) + '-'
+ ''+cast( left( rand() * 10000,4)...
November 24, 2009 at 2:54 pm
i've found that the param sniffing issue is usually specific to u setting a param that has a default vaule that it will typically not have. For example i had...
November 24, 2009 at 1:40 pm
rather than delete u could recreate a version of the table w just the records u want then do the old switcheroo. Rename it to _archive then rename the new...
November 19, 2009 at 7:00 am
not fully understanding
are u saying 10.1.@ would come before 17?
November 18, 2009 at 2:46 pm
I don' treally care weather it comes back different between using nolock or not, i just enjoy finding inconisencies in the system and finding out why these inconsistencies exist for...
November 18, 2009 at 1:39 pm
So thats that. Is there a way for me to close this or do i just leave it?
November 18, 2009 at 12:40 pm
i just used the term mostly static so that u guys would answer saying perhaps records are being updated at a high rate causing the issue.
November 18, 2009 at 12:39 pm
I suppose another important question is if the nolock overall will provide a performance boost in certain scenerios due to the less reads than w/o.
November 18, 2009 at 12:02 pm
Thats the question. The one w/o nolock reads more pages. Why? Or better yet why would the one w/ (nolock) read from just one page?
November 18, 2009 at 11:57 am
That explains why both versions return the same result sets respectively just not the same between the two. 😉
November 18, 2009 at 11:55 am
RESOLUTION!!!!!!!!!!!
On SQL 2000, the Microsoft Search must have System admin access in SQL Server. Because this is SQL 2000, the only way to add this security is to give the...
April 3, 2009 at 3:13 pm
Viewing 15 posts - 226 through 240 (of 244 total)