studio NETSOULS

Applying Web To Your Business

When a table's primary field is to auto increment with a seed and you are deleting the records from the table. Now you need to reset the primary field value to 1. The code given below is useful.
 

   1: DBCC CHECKIDENT (tblName, RESEED, 0)
  • Currently 0 /5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

When dealing with MS SQL (not MYSQL) I’ve seen this error message before, but found very little help on it out there.

The log file for database db_name is full. Back up the transaction log for the database to free up some log space.

Within the MS SQL Query Analyzer, do this:
 

   1: backup log db_name with truncate_only 
   2: go 
   3: dbcc shrinkfile (db_name_log,0) 
   4: go

If anything, this post will be useful for me in the future when one of my MS SQL databases coughs up the error again.

  • Currently 0 /5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

About Us

studio NETSOULS is a complete IT services company, offering strategy, design, development and implementation of the total solution for your web and IT initiatives. The solutions we provide, enables businesses to leverage leading edge technology to gain sustainable competitive advantages in today's marketplace.

We specialize in designing, developing and deploying the next generation of IT solutions including e-business solutions Read more...

Tags

This will be shown to users with no Flash or Javascript.

Contact Us

My status

Quote of the Day

Men are disturbed, not by the things that happen, but by their opinion of the things that happen

- Epictetus

NutritionVista

www.NutritionVista.com

Archives


Advertisements


Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Log in