Viewing 15 posts - 61 through 75 (of 198 total)
use
master
go
GRANT
VIEW ANY DEFINITION TO user_login;
go
September 18, 2007 at 11:38 pm
USE master;GOEXEC sp_who 'active';GO
If the process found this way should not run then kill it and detach the db, otherwise wait until the process is finished; there is also an...
September 9, 2007 at 8:30 pm
SQL does not allow more than one clustered index per table; a clustered index defines the physical sorting order of your data in the table. However, a clustered index can...
September 5, 2007 at 10:27 pm
It sounds strange, most probably there's not any trick for getting the script run for once (BOL - Drop table topic)
I would say to write your code like: BEGIN TRAN ALTER TABLE...DROP...
September 5, 2007 at 10:13 pm
I'm affraid the location cannot be changed, the files have to stay in the Data folder where your SQL installation is. What you can do is to implement an archiving...
September 5, 2007 at 7:01 pm
Severity 19 errors are very rare, I would say this sounds as a MS bug. Which sql 2k sp are you running? However, this issue needs further investigation: where did...
September 4, 2007 at 6:55 pm
Create a (sql agent) job where to add your backup code as a job step, then schedule the job; forget about maintenance plan if you want to run your own...
September 3, 2007 at 8:57 pm
Firstly the Administrator login doesn't need to be a sysadmin login.
The job should be owned by 'Administrator';
The user database you have created the sp in should have TRUSTWORTHY set...
September 3, 2007 at 8:53 pm
Unfortunately this cannot be done.
September 2, 2007 at 6:43 pm
This is done usually in a separate database where you run exclusively administration tasks, lets name it DBAdmin; you create a table in this db that will contain all your...
August 27, 2007 at 6:01 am
A way of breaking down buffers by objects (table, indexes) in the buffer cache:
select b.database_id, db=db_name(b.database_id),
p.object_id,
object_name(p.object_id) as objname,
p.index_id,
buffer_count=count(*)
from sys.allocation_units a,
sys.dm_os_buffer_descriptors b,
sys.partitions p
where a.allocation_unit_id = b.allocation_unit_id
and a.container_id = p.hobt_id
and b.database_id = db_id()
and left(object_name(p.object_id),3)!='sys'
group...
August 24, 2007 at 12:50 am
Assuming that the account you're connected to the sql instance has got write permissions, things to check:
- does your log file have enough space to grow?
- does your trigger have...
August 23, 2007 at 10:56 pm
You would have to enable trace flag 1222 for deadlock trace output (see output in sql logs) This trace flag has got improvements over the flag on sql2k; you can...
August 23, 2007 at 10:44 pm
You're stopping them one by one. They are distinct in sql 2k5 because you may not use full-text search for example, or you may not need sql browser in which...
August 23, 2007 at 5:48 pm
Thanks for that. I didn't have this problem but you may never know.
August 23, 2007 at 5:45 pm
Viewing 15 posts - 61 through 75 (of 198 total)