Thaks for the info Roger, I'll leave it the way it is so.
"Roger Wolter[MSFT]" <rwolter@online.microsoft.com> wrote in message
news:uq51f4HPGHA.3064@TK2MSFTNGP10.phx.gbl...
> The file won't get smaller unless you explicitly tell it to get smaller
> with the shrink command. IMHO, shrink should only be used if you are
> desperate for disk space and you know that your database isn't going to
> grow anymore. Growing a database is reasonably expensive - as is shrinking
> it so continuously growing and shrinking your database files is a waste of
> resources. To me it's like when your mother comes to visit you add
> another bedroom to your house and as soon as she leaves you tear it down.
> This only makes sense if you know for sure you're never having visitors
> again. If your mom is coming again next Christmas, you would probably be
> better off leaving the spare room where it is - unless you really need the
> space for the new hot-tub.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> Use of included script samples are subject to the terms specified at
>
http://www.microsoft.com/info/cpyright.htm >
> "gerryR" <gerryrminus@thisgerryr.com> wrote in message
> news:%230$BsIHPGHA.312@TK2MSFTNGP12.phx.gbl...
>> Hi Andrea, thanks a million for that I didn't realise it had to be the
>> logical name and not the file name. The logical name is ePO_servername
>> and the command ran without error!! Thanks a million for your help!
>>
>> One thing I did notice is the file size stayed the same. Is this normal?
>> I would have thought the "RmUnusedSpace" part would have freed up some
>> space and thus reduced the file size?
>>
>> any way thanks again for all your help in solving my problem.
>> all the best
>> gerryR
>>
>>
>>
>>
>>
>> "Andrea Montanari" <andrea.sqlDMO@virgilio.it> wrote in message
>> news:46j2qqFbc3ebU1@individual.net...
>>> hi Gerry,
>>> gerryR wrote:
>>>>
>>>> error 21776: the name 'data_baseName' was not found in the database
>>>> collection. If the name is a qualified name use [] to seperate
>>>> various parts of the name and try again.
>>>>
>>>> I've tried enclosing the database with the [ ] but to no avail. My
>>>> database name looks like
>>>>
>>>> ePO_SERVER_data.mdf
>>>>
>>>> Ive tried [ePO_SERVER_data] and [ePO_SERVER_data.mdf] but it doesn't
>>>> do anything.
>>>
>>> you have to indicate the "logical" database name..
>>> ePO_SERVER_data.mdf is the physical name of the primary data file..
>>>
>>> try a
>>> SELECT db.name
>>> FROM master.dbo.sysdatabases db
>>> WHERE db.filename LIKE '%ePO_SERVER_data.mdf'
>>>
>>> to identify the correct logical database name you are interested with...
>>> --
>>> Andrea Montanari (Microsoft MVP - SQL Server)
>>>
http://www.asql.biz/DbaMgr.shtm http://italy.mvps.org >>> DbaMgr2k ver 0.18.0 - DbaMgr ver 0.62.0
>>> (my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
>>> interface)
>>> --------- remove DMO to reply
>>>
>>
>>
>
>