Viewing 15 posts - 496 through 510 (of 684 total)
Hi,
Have a look at this article on how to expand a hierarchy. Hopefully that should help.
http://support.microsoft.com/default.aspx?scid=kb;en-us;q248915
July 6, 2006 at 12:59 am
Just a quick note about Peter's solution.
This will perform a mass update on all tables containing a datetime/smalldatetime column.
And I know this is exactly what you wanted.
But I'd...
July 5, 2006 at 9:31 am
Hi Devendra,
The update lock isn't placed on the entire index, the update lock will be on a specific index key range. In other words, the resource that is being...
July 5, 2006 at 5:26 am
Hi Amit,
Unfortunately this isn't going to be as trivial as running a single query because indexes (and primary keys) can span multiple columns.
So what you'd need to do is get...
July 5, 2006 at 4:54 am
Oops,
small typo there. That should be data_type not date_type.
As Peter said, let's hope that the data is actually stored in a datetime column.
July 5, 2006 at 4:23 am
Hi Andy,
You can query the sysjobservers table to get this information.
select *
from sysjobservers s
join sysjobs j on j.job_id = s.job_id
where j.name = ''
The message column contains the scheduleid of...
July 5, 2006 at 4:20 am
Jeff,
Use this query to find out which columns, and their respective tables, have datetime datatypes.
select table_name, column_name
from information_schema.columns
where data_type in ('datetime','smalldatetime')
Once you have found the table/column combination that you would...
July 5, 2006 at 4:02 am
Hi Simon,
The reason the logon is broken is because the thing that determines whether a logon is broken or not is the security identfier (sid). When you created the...
July 5, 2006 at 3:42 am
Hi,
This looks like it is most likely a conversion deadlock.
Does the column [has_commentType] have an index on it?
Also, what is the index on which the update lock has been taken...
July 5, 2006 at 3:38 am
You are right in that having mulitple log files on the one disk can result in the heads moving around a lot. And one could argue for putting log...
June 30, 2006 at 2:44 am
No problem.
To get the date of a file you could use xp_getfiledetails '@filename'.
But you'd need the full path for the file name.
June 29, 2006 at 4:29 pm
Unfortunately you cannot exclude subdirectories (that I know of).
To only go to a depth of 1 you can set the second parameter to 1
exec master..xp_dirtree 'c:\',1,1
Hope that helps,
June 29, 2006 at 10:13 am
Hi Amol,
You can download the entire system table map from:
Hope that helps,
June 29, 2006 at 8:50 am
Yep,
That's all there is too it. You don't need to backup the log but if you don't your log will grow and grow until it hits a limit.
June 29, 2006 at 8:42 am
Hi,
I you really need to do this using T-SQL:
create table #temp_table
(
filename varchar(1000),
depth int,
isFile bit
)
insert into #temp_table
exec master..xp_dirtree 'c:\',0,1
--this returns the entire file/folder structure for the c: drive.
select * from...
June 29, 2006 at 8:39 am
Viewing 15 posts - 496 through 510 (of 684 total)