Re: Save as in SQL Server(Backup - Restore)

From: Lars Grøtteland (lars_at_nospam)
Date: 09/30/04


Date: Thu, 30 Sep 2004 15:18:00 +0200

WMI? What's that?

-- 
- Lars
"Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message 
news:%237FDQxupEHA.1576@TK2MSFTNGP12.phx.gbl...
> Just be aware that undocumented functionality may change between SQL 
> Server versions or service packs so it's a good practice to avoid this in 
> production code.
>
> Another method to accomplish the task is with WMI.
>
> -- 
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> "Lars Grøtteland" <lars@nospam> wrote in message 
> news:%23hVB3gupEHA.3524@TK2MSFTNGP15.phx.gbl...
>> xp_availablemedia 2 - That's the command I was looking for
>>
>> -- 
>>
>>
>> - Lars
>>
>>
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> wrote 
>> in message news:emrrdOupEHA.644@tk2msftngp13.phx.gbl...
>>> That is no problem. I take it you already know about the RESTORE command 
>>> and the MOVE option to the
>>> restore command.
>>>
>>> If you want the user to be able to browse the directory structure on the 
>>> server through their SQL
>>> Server connection, then you have to use some undocumented commands. Run 
>>> a profiler trace to see how
>>> EM gets the directory structure and use those commands in your own app. 
>>> Note that they are
>>> undocumented, use at your own risk...
>>>
>>> -- 
>>> Tibor Karaszi, SQL Server MVP
>>> http://www.karaszi.com/sqlserver/default.asp
>>> http://www.solidqualitylearning.com/
>>>
>>>
>>> "Lars Grøtteland" <lars@nospam> wrote in message 
>>> news:Or3bY1rpEHA.592@TK2MSFTNGP11.phx.gbl...
>>>> My problem is to get "Save As" in my application.
>>>> Create a new database and restore one database into the created one, 
>>>> and use
>>>> the new one in my app.
>>>>
>>>>
>>>>
>>>> -- 
>>>>
>>>>
>>>> - Lars
>>>>
>>>>
>>>> "Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> 
>>>> wrote in
>>>> message news:u8RHZlipEHA.3724@TK2MSFTNGP10.phx.gbl...
>>>> >> Are there any other way around this problem then?
>>>> >
>>>> > Can you explain what the problem is? First it seems you wanted to 
>>>> > create
>>>> > database files on a network
>>>> > drive. You can't do that. Then you mentioned SQLNS, which has no
>>>> > relationship with your original
>>>> > problem...
>>>> >
>>>> > -- 
>>>> > Tibor Karaszi, SQL Server MVP
>>>> > http://www.karaszi.com/sqlserver/default.asp
>>>> > http://www.solidqualitylearning.com/
>>>> >
>>>> >
>>>>
>>>
>>>
>>
>>
>
> 


Relevant Pages

  • Re: SP accessing other db
    ... regarding the cross-database chaining server option. ... Now the database name is hard-coded. ... >>> SQL Server MVP ...
    (microsoft.public.sqlserver.security)
  • Re: Type of Cluster?
    ... MVP - Windows Server - Clustering ... >> cluster, granted not as fast as a SAN, but cheaper:) ... >>>well within the capabilities of SQL Server. ... >>> Microsoft SQL Server MVP ...
    (microsoft.public.sqlserver.clustering)
  • Re: active active: can somebody help with design?
    ... SQL Server MVP ... You can't have a default instance in virtual server 1 and another default ... You don't install the instances on particular nodes per se. ...
    (microsoft.public.sqlserver.clustering)
  • Re: SQL7 standalone
    ... Server: ... Can you connect with Query Analyzer using a SQL login (SQL authentication)? ... > Dejan Sarka, SQL Server MVP ...
    (microsoft.public.sqlserver.server)
  • Re: What those data files use for?
    ... Columnist, SQL Server Professional ... Now I need move all the system databases to SAN drive, ... > Mike Epprecht, Microsoft SQL Server MVP ...
    (microsoft.public.sqlserver.server)