Viewing 15 posts - 1 through 15 (of 41 total)
1 of many ways...
select name from sys.databases where recovery_model = 1
NJ
April 28, 2008 at 9:06 pm
Leaf level of the clustered index contains the actual data rows of the table , so moving clustered index means moving data.
Test yourself..
alter database pubs add filegroup fg_test
go
alter database pubs
add...
April 26, 2008 at 10:29 pm
There are quite a few ways doing this..Here is the one..
Drop Clustered index on table in primary filegroup and recreate it in secondary filegroup...n you are good.
NJ
April 26, 2008 at 12:23 am
Use your method if you are running backup command through job. It will not change schedule.
April 15, 2008 at 8:43 pm
I see some syntax mistakes. Here is the correct one try running this..
if you still get any error please post error too..
select
[Incident #],
[Urgency ID],
[Group Name],
[Open Date & Time],
[_SMDBA_.Incident_Age]...
April 13, 2008 at 9:33 pm
Without expected resultset..it is difficult to develop correct query but here is one guess..
with leadtest
as
(
select ID_PRVD_ORG , ID_PRSN , DT_BGN ,
row_number() over (partition by ID_PRSN order by...
April 11, 2008 at 8:51 pm
My bad...
Here is one more way you can do it..but doesn't looks elegant..
create table #t1
(
d datetime , p nvarchar(25) , text_d nvarchar(1000)
)
go
insert into #t1 exec sp_readerrorlog
go
select t.failed_login ,count(t.failed_login) as num...
April 10, 2008 at 5:43 pm
In Sql Server 2005 you can use logon triggers and direct the result to temporary table. Finally query table to find out logins with more than 5 failure...
See BOL for...
April 10, 2008 at 2:38 pm
This is a problem in SP2. This problem was not there in SP1..
Better script the process and schedule it to run through job.
NJ
April 10, 2008 at 11:47 am
If you are ready to do it dynamically..this would work.
declare @dbname sysname
select @dbname = name from [linked_server_name].master.dbo.sysdatabases
where...
April 8, 2008 at 4:58 pm
You can not remove public role for login..you will get an error.
If you want to control access you can grant\revoke permissions to public role and hence that login..
NJ
April 8, 2008 at 1:35 pm
You can also try.
Backup log tempdb with no_log
then
DBCC Shrinkfile(tempdev , 100)
April 8, 2008 at 11:11 am
This would also work..
select distinct name , id ,dept ,code = replace(
(select code as [data()] from #test t
where t.name = t1.name
for xml...
April 7, 2008 at 8:40 pm
Which edition and service pack of sql server??
April 6, 2008 at 7:44 pm
In no way you can update system table in sql server 2005.
NJ
April 4, 2008 at 7:56 pm
Viewing 15 posts - 1 through 15 (of 41 total)