Viewing 15 posts - 121 through 135 (of 161 total)
duplicate post .. but here's my answer again!
hi,
i think the problems is that the itemid in ( @itemids ) bit of the query is being resolved as ''a','b','c','d''....
September 13, 2003 at 2:42 am
hi,
i think the problems is that the itemid in ( @itemids ) bit of the query is being resolved as ''a','b','c','d''.
a way around this would be to...
September 13, 2003 at 2:41 am
and to kick it off , a list of users who are already over 500 ?
Paul
September 12, 2003 at 9:06 am
hi,
i created a table as follows :-
create table cpu_usage
(dt datetime, spid int, cumulative_cpu bigint, cumulative_io bigint, login_time datetime)
inserted the data from your original post and did the...
September 12, 2003 at 3:20 am
jags,
I see what you mean, it's not easy !
Paul
September 11, 2003 at 10:22 am
hi,
if you are on SQL 2000 you could declare the variable as a table datatype, and when you assign a string that it too long it returns the appropriate...
September 11, 2003 at 9:34 am
hi,
try :-
declare @postcode varchar(10), @area_code varchar(10)
select @postcode = 'GU14 7NJ'
select @area_code = substring(@postcode, 1, charindex(" ",@postcode))
print @area_code
HTH
Paul
Edited by - ripg1011 on 09/11/2003 08:25:41 AM
September 11, 2003 at 8:24 am
"Unless you recreate it, You wouldn't be able to see it. "
that's true. I always drop and re-create stored procedures for this very reason.
Paul
September 9, 2003 at 9:22 am
hi, try
declare @date datetime
select @date = "Sep 5 2003"
select name, crdate
from sysobjects
where type = "P"
and crdate > @date
order by crdate
in the database in question
HTH
Paul
September 9, 2003 at 9:08 am
hi, check out the datename function in BOL :-
select datename(month,1)
returns January and so on, just change the number ...
HTH
Paul
September 9, 2003 at 4:57 am
hi,
we had a similar problem, and I used a base date to work out the average :-
DECLARE @tt TABLE (THE_DATE SMALLDATETIME)
INSERT INTO @tt...
August 29, 2003 at 1:27 am
hi, can you temporarily remove the logins permissions in the database in question ?
or change the default database to another one ? this may make the connection fail, so you...
August 13, 2003 at 2:58 am
hi,
try allocating the users to the TargetServersRole Database role in msdb
this seems to work for us.
Paul
August 12, 2003 at 8:13 am
hi,
try :-
restore {db_name} with recovery
on the secondary database to bring it on-line and no further transaction logs will be able to be loaded....
August 12, 2003 at 4:09 am
Viewing 15 posts - 121 through 135 (of 161 total)