Viewing 15 posts - 1,936 through 1,950 (of 1,993 total)
too many '
here's the corrected version
select 'DBCC '
+tablename
+char(10)
+char(13)
+' GO ' from TableList
MVDBA
July 1, 2004 at 10:15 am
also worth checking if any new software has been installed on your machine and if windows update has been run.
maybe the MDAC has been changed in some way?????
MVDBA
July 1, 2004 at 10:01 am
can you post the whole of the who2 command - your process is not being blocked, but i wonder if there is something else being blocked??
are other users struggling to...
MVDBA
July 1, 2004 at 10:01 am
why are you doing a count(0) ?
MVDBA
July 1, 2004 at 9:54 am
DOH!
just ignore everything i said - let me get more coffee and start again.
MVDBA
July 1, 2004 at 9:44 am
what if your minimum priority for that user is not 1?
MVDBA
July 1, 2004 at 9:29 am
also try connecting to the server using Query analyser and run the command
SP_WHO2
this should show you if anything is blocking your request.
MVDBA
July 1, 2004 at 9:25 am
what type of authentication are you using? i assume its SQL server authentication?
is it the sa username ?
has anyone been messing with your permissions on the target server?
if...
MVDBA
July 1, 2004 at 9:24 am
how about
delcare @namepart integer
declare curs1 cursor for select distinct namepart from mytable
open curs1
fetch next from curs1 into @namepart
while @@fetch_status=0
begin
delete from mytable where namepart=@namepart and priority not in (select min...
MVDBA
July 1, 2004 at 9:20 am
select sysobjects.name,syscomments.text from sysobjects,syscomments where syscomments.text like '%--changed%' and sysobjects.id=syscolumns.id
if you run this is query analyser with the destination output to text (not to grid) then you should get all...
MVDBA
July 1, 2004 at 8:52 am
you say datalength is taking too long ? do you mean the query takes too long or the whole process of going through them takes too long?
i assume your doing...
MVDBA
July 1, 2004 at 8:47 am
the unexpected results are because you are returning 3 fields in the (from recordset) - these are only grouped by 2 fields, one row for each sr.eid is being returned....
MVDBA
July 1, 2004 at 8:22 am
i'm not sure what you're trying to acheive here that can't be done with the existing functions and tables?
sureley assiging permissions to a database and then using sql servers native...
MVDBA
July 1, 2004 at 8:13 am
how about
create 3 additional fields - year and yearidentifier and autonumber
then create a trigger on the table
create trigger t1 on mytable for insert as
if @rowcount=1
declare @myval integer
set @myval=(select max(cast...
MVDBA
July 1, 2004 at 8:06 am
you need to create a trigger on table 1
something along the lines if
create trigger t1 on table1 for INSERT,UPDATE as
if @rowcount=1
begin
if (select count from table2 where x=(select...
MVDBA
July 1, 2004 at 7:41 am
Viewing 15 posts - 1,936 through 1,950 (of 1,993 total)