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
 Transact-SQL (2000)
 passing parameters

Author  Topic 

mikevanhoff
Starting Member

1 Post

Posted - 2006-07-21 : 11:47:48
I am running Sybase 11.92. I want to reclaim white space in the database. I have the following process that works for a table
USE ,database name>
go
ALTER TABLE <table name> DATAROWS
go
reorg reclaim_space <table name>
go

ALTER TABLE <table name> ALLPAGES
go

I have a text file with the names of all tables in the database. How can I pass the "<table name>" in the text file to the appropriate position in the commands above?
Thanks in advance.

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2006-07-21 : 11:58:49
This is a Microsoft SQL SERVER forum, not Sybase.

Help us help YOU!
Read this blog entry for more details: http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx

*need more coffee*
SELECT * FROM Users WHERE CLUE > 0
(0 row(s) affected)
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-07-21 : 12:00:17
quote:
Originally posted by mikevanhoff

I am running Sybase 11.92. I want to reclaim white space in the database. I have the following process that works for a table
USE ,database name>
go
ALTER TABLE <table name> DATAROWS
go
reorg reclaim_space <table name>
go

ALTER TABLE <table name> ALLPAGES
go

I have a text file with the names of all tables in the database. How can I pass the "<table name>" in the text file to the appropriate position in the commands above?
Thanks in advance.





Even though sybase is similar to SQL Server, this is not the proper forum to discuss Sybase things...may be u can post it on some other forum like [url]dbforums.com[/url]

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page
   

- Advertisement -