Viewing 15 posts - 46 through 60 (of 112 total)
Well, that's interesting. I just checked and it took awhile for it to show up. There is now 70+ Gig in the primary data file and 40+G in...
May 6, 2010 at 3:06 pm
PaulB-TheOneAndOnly (5/6/2010)
Whisper9999 (5/6/2010)We had a gig or two of free space in the data file before I dropped this table. I then dropped the table and then looked to...
May 6, 2010 at 3:04 pm
Robert Biddle (5/6/2010)
We had a gig or two of free space in the data file before I dropped this table. I then dropped the table and then looked to...
May 6, 2010 at 3:03 pm
MeltonDBA (5/6/2010)
Are you referring to the free space in a database, logical? Example executing sp_spaceused?You may need to do a
USE <DB Name>
GO
DBCC UPDATEUSAGE
We had a gig or two...
May 6, 2010 at 2:18 pm
Thx to Paul White. This worked (once I put in the cursor commands from his query):
declare @dbname varchar(100)
declare @dbname_old varchar(100)
declare @sql varchar(4000)
set @dbname_old = ''
declare file_cursor cursor...
May 3, 2010 at 12:24 pm
Thx. I tried using "LOCAL DYNAMIC" and that didn't fix it, but I am going to try some of the other things you did differently as well.
May 3, 2010 at 12:08 pm
Below is what I was running. I think it should work because when I replace the "exec(@sql)" with print @sql, it runs through all databases and prints...
May 3, 2010 at 12:05 pm
Kenneth Langner Jr. (4/30/2010)
-- Create the temp table for further querying
CREATE TABLE #temp(
rec_idint IDENTITY (1, 1),
table_namevarchar(128),
nbr_of_rowsint,
data_spacedecimal(15,2),
index_spacedecimal(15,2),
total_sizedecimal(15,2),
percent_of_dbdecimal(15,12),
db_sizedecimal(15,2))
-- Get all tables, names,...
April 30, 2010 at 3:31 pm
Scott Coleman (4/30/2010)
April 30, 2010 at 10:58 am
You know what's funny is that sometimes in interviews, they will ask q's that they don't themselves know the answer to. They're hoping that someone will solve a thorny...
April 30, 2010 at 8:31 am
TheSQLGuru (4/27/2010)
Whisper9999 (4/27/2010)
TheSQLGuru (4/27/2010)
April 27, 2010 at 8:43 am
TheSQLGuru (4/27/2010)
April 27, 2010 at 7:50 am
Viewing 15 posts - 46 through 60 (of 112 total)