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.
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? |
 |
|
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 |
 |
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2008-04-09 : 12:28:25
|
"Hurri is in hurry to change system tables" Just kiddingPlease don't touch system tables. |
 |
|
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. |
 |
|
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 |
 |
|
|
|
|