Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Sysfiles updating

Author  Topic 

Hurri
Starting Member

1 Post

Posted - 2008-04-09 : 04:39:28
Morning,

I need to update a .dat and .log file name in sysfiles in order that I can purge them as they are getting huge. However I don't seem to be able to update this file using standard SQL.

I've tried Update and have read that I can use the Alter Database Modify command but I am unsure of the systax to use. Can anyone lend a hand?

It's the [name] field that I need to update for two entries in Sysfiles.

Thanks in advance,

Hurri

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-04-09 : 09:34:27
I think .dat files are related to SQL 6.5 and you can't update .log file while database is in use. What are you trying to do?
Go to Top of Page

tosscrosby
Aged Yak Warrior

676 Posts

Posted - 2008-04-09 : 12:24:18
And I wouldn't be changing 99% of system tables at all. Doing so can lead to a whole lot of trouble!

Terry
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-04-09 : 12:28:25
"Hurri is in hurry to change system tables" Just kidding

Please don't touch system tables.
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2008-04-09 : 13:35:10
>> I need to update a .dat and .log file name in sysfiles in order that I can purge them as they are getting huge.
No you don't!
Try another question - like explaining your objective and asking how to do it.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

tosscrosby
Aged Yak Warrior

676 Posts

Posted - 2008-04-09 : 16:27:26
good one sodeep! Humor is always appreciated, especially late in the day (for me anyway!).

Terry
Go to Top of Page
   

- Advertisement -