sql 6.5 update without logging

sql 6.5 update without logging

Post by Wayne Sheffiel » Sat, 07 Oct 2000 04:00:00



In sql 6.5, is it possible to run an update command that doesn't utilize the
transaction log?

I need to update a field in a large table that should have been zero
prefilled. I am running out of log space when I try to run it.

Thanks,
Wayne

 
 
 

sql 6.5 update without logging

Post by Stefan » Sat, 07 Oct 2000 04:00:00


Wayne,

The update will be always logged. Try not to run the update as one single
transaction, but as multiple transactions, using set rowcount, so you'll
have control over the transaction log. When the log fills up, dump it.


Quote:> In sql 6.5, is it possible to run an update command that doesn't utilize
the
> transaction log?

> I need to update a field in a large table that should have been zero
> prefilled. I am running out of log space when I try to run it.

> Thanks,
> Wayne


 
 
 

sql 6.5 update without logging

Post by Wayne Sheffiel » Sun, 08 Oct 2000 04:00:00


okay, so I do something like:

-- trunc log on checkpoint is set
set rowcount 500
checkpoint  -- start off with an empty log
update <table> set field = <calc new value> where datalength(field) <> 11

  checkpoint
  update <table> set field = <calc new value> where datalength(field) <> 11
end

So, how do I determine what a good number is for the set rowcount? Should I
just set it to something real low (like 500 / 1000), or how do I figure out
just how high of a value I can use?

Thanks again,
Wayne


> Wayne,

> The update will be always logged. Try not to run the update as one single
> transaction, but as multiple transactions, using set rowcount, so you'll
> have control over the transaction log. When the log fills up, dump it.



> > In sql 6.5, is it possible to run an update command that doesn't utilize
> the
> > transaction log?

> > I need to update a field in a large table that should have been zero
> > prefilled. I am running out of log space when I try to run it.

> > Thanks,
> > Wayne

 
 
 

sql 6.5 update without logging

Post by Shau » Wed, 11 Oct 2000 04:00:00


CHECKPOINT only flushes committed transactions (Dirty pages) to disk and SQL
Server does it automatically every minute or so, the issue is "Are you
maintaining a Transaction Log?".  If so then you must rather run more
frequent backups for the log.  You can also institute is a task that fires
on a predefined alert, that kicks off when log file is say 80% full.  So
keep the WHILE statement if you are experiencing problems.

Shaun


> okay, so I do something like:

> -- trunc log on checkpoint is set
> set rowcount 500
> checkpoint  -- start off with an empty log
> update <table> set field = <calc new value> where datalength(field) <> 11

>   checkpoint
>   update <table> set field = <calc new value> where datalength(field) <>
11
> end

> So, how do I determine what a good number is for the set rowcount? Should
I
> just set it to something real low (like 500 / 1000), or how do I figure
out
> just how high of a value I can use?

> Thanks again,
> Wayne



> > Wayne,

> > The update will be always logged. Try not to run the update as one
single
> > transaction, but as multiple transactions, using set rowcount, so you'll
> > have control over the transaction log. When the log fills up, dump it.



> > > In sql 6.5, is it possible to run an update command that doesn't
utilize
> > the
> > > transaction log?

> > > I need to update a field in a large table that should have been zero
> > > prefilled. I am running out of log space when I try to run it.

> > > Thanks,
> > > Wayne

 
 
 

1. Advise needed: How to alter a table (remove + add columns) without log becoming full (SQL 6.5)

I have a database table with approx. 120.000 records. Now what I would like
to do is remove a few columns and add a few others.... The SQL Enterprise
Manager and other tools generate SQL Scripts for this.

basically what these scripts do is the following:
- drop constraints.
- create the table with a temporary name.
- select the records in the old table and insert into the new one.
- drop the old table.
- rename the "new" table to the "old" table name.

Everytime I try to run this script my logspace is becoming full... Now I
know I can enlarge my transaction logfiles, but this is no option, since
diskspace is unavailable. Basically I just want to do this, without
logging....

Is this possible?? How?

Thanks in advance,

Dennis

2. JOB OPENING

3. SQL Updates without SQL Transaction Logging

4. cursors outside transactions

5. Updating from SQL 6.5 trial to SQL 6.5 full

6. Updating Excel cells using ADO problem

7. Update without trans log

8. Upgrading from Access/VB to SQL Server

9. Insert or Update without log

10. Update without logging

11. migrating sql databases sever 6.5 from sql server 6.5 to another sql server 6.5

12. VFP5.0a SP2 + SQL Server 6.5 Quitting without warning

13. Sql 6.5 Replica without primary key