PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Create DB from mdf file
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Create DB from mdf file

Réponse
 
LinkBack Outils de la discussion
Vieux 11/07/2008, 18h45   #1
Stup88
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Create DB from mdf file

I have a developer who has give me a mdf file she would like uploaded to our
production sql 2000 machine, what is the best process to do this.

I believe it was created in sql express 2005 edition.

Please

Thanks
  Réponse avec citation
Vieux 11/07/2008, 18h59   #2
Aaron Bertrand [SQL Server MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create DB from mdf file

And she dd not provide an LDF file? If the file was properly detached from
SQL Server 2005 then you might be able to use the stored procedure
sp_attach_single_file_db. Otherwise, I would ask her to either make a
backup you can restore, or detach the database correctly and provide you
with both the MDF and LDF files.

A




On 7/11/08 12:45 PM, in article
7BDCC239-7DAA-46DD-9BDE-930AF3C88221@microsoft.com, "Stup88"
<Stup88@discussions.microsoft.com> wrote:

> I have a developer who has give me a mdf file she would like uploaded to our
> production sql 2000 machine, what is the best process to do this.
>
> I believe it was created in sql express 2005 edition.
>
> Please
>
> Thanks


  Réponse avec citation
Vieux 11/07/2008, 19h04   #3
Stup88
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create DB from mdf file

I have both files.. sorry for the confussion I should have included that in
the first place..

So with that said.. what is the best approach.. use enterprise manager and
attach DB ? or what

"Aaron Bertrand [SQL Server MVP]" wrote:

> And she dd not provide an LDF file? If the file was properly detached from
> SQL Server 2005 then you might be able to use the stored procedure
> sp_attach_single_file_db. Otherwise, I would ask her to either make a
> backup you can restore, or detach the database correctly and provide you
> with both the MDF and LDF files.
>
> A
>
>
>
>
> On 7/11/08 12:45 PM, in article
> 7BDCC239-7DAA-46DD-9BDE-930AF3C88221@microsoft.com, "Stup88"
> <Stup88@discussions.microsoft.com> wrote:
>
> > I have a developer who has give me a mdf file she would like uploaded to our
> > production sql 2000 machine, what is the best process to do this.
> >
> > I believe it was created in sql express 2005 edition.
> >
> > Please
> >
> > Thanks

>
>

  Réponse avec citation
Vieux 11/07/2008, 19h16   #4
Norman Yuan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create DB from mdf file

Note the OP said the production server is SQL SERVER 2000? He cannot attach
..MDF from SQL Server2005/Express to SQL Server2000.

"Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:C49D09AE.BBF7%ten.xoc@dnartreb.noraa...
> And she dd not provide an LDF file? If the file was properly detached
> from
> SQL Server 2005 then you might be able to use the stored procedure
> sp_attach_single_file_db. Otherwise, I would ask her to either make a
> backup you can restore, or detach the database correctly and provide you
> with both the MDF and LDF files.
>
> A
>
>
>
>
> On 7/11/08 12:45 PM, in article
> 7BDCC239-7DAA-46DD-9BDE-930AF3C88221@microsoft.com, "Stup88"
> <Stup88@discussions.microsoft.com> wrote:
>
>> I have a developer who has give me a mdf file she would like uploaded to
>> our
>> production sql 2000 machine, what is the best process to do this.
>>
>> I believe it was created in sql express 2005 edition.
>>
>> Please
>>
>> Thanks

>


  Réponse avec citation
Vieux 11/07/2008, 20h31   #5
Stup88
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create DB from mdf file

Just wanted to verify.. so this is not possible because of the different
versions.. any other way to do this ?

"Norman Yuan" wrote:

> Note the OP said the production server is SQL SERVER 2000? He cannot attach
> ..MDF from SQL Server2005/Express to SQL Server2000.
>
> "Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
> news:C49D09AE.BBF7%ten.xoc@dnartreb.noraa...
> > And she dd not provide an LDF file? If the file was properly detached
> > from
> > SQL Server 2005 then you might be able to use the stored procedure
> > sp_attach_single_file_db. Otherwise, I would ask her to either make a
> > backup you can restore, or detach the database correctly and provide you
> > with both the MDF and LDF files.
> >
> > A
> >
> >
> >
> >
> > On 7/11/08 12:45 PM, in article
> > 7BDCC239-7DAA-46DD-9BDE-930AF3C88221@microsoft.com, "Stup88"
> > <Stup88@discussions.microsoft.com> wrote:
> >
> >> I have a developer who has give me a mdf file she would like uploaded to
> >> our
> >> production sql 2000 machine, what is the best process to do this.
> >>
> >> I believe it was created in sql express 2005 edition.
> >>
> >> Please
> >>
> >> Thanks

> >

>
>

  Réponse avec citation
Vieux 11/07/2008, 22h01   #6
Norman Yuan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create DB from mdf file

Your can only attach .MDF file generated from SQL Server2005 to a SQL
Server2005 or SQL Server2008 instance. Then, you can use Enterprise
Manager/SQL Server Management Studio to do import/export between the two SQL
Servers (2000 and 2005). If you only need the database's structure, then you
can let the original author to script out the database structure and run the
scripts on your SQL Server2000 to get the database created. If you do need
the data, then, importing/exporting would be the only way to do it.

"Stup88" <Stup88@discussions.microsoft.com> wrote in message
news:8F501D54-6B32-4AF3-98F9-8C1F88B646BF@microsoft.com...
> Just wanted to verify.. so this is not possible because of the different
> versions.. any other way to do this ?
>
> "Norman Yuan" wrote:
>
>> Note the OP said the production server is SQL SERVER 2000? He cannot
>> attach
>> ..MDF from SQL Server2005/Express to SQL Server2000.
>>
>> "Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in
>> message
>> news:C49D09AE.BBF7%ten.xoc@dnartreb.noraa...
>> > And she dd not provide an LDF file? If the file was properly detached
>> > from
>> > SQL Server 2005 then you might be able to use the stored procedure
>> > sp_attach_single_file_db. Otherwise, I would ask her to either make a
>> > backup you can restore, or detach the database correctly and provide
>> > you
>> > with both the MDF and LDF files.
>> >
>> > A
>> >
>> >
>> >
>> >
>> > On 7/11/08 12:45 PM, in article
>> > 7BDCC239-7DAA-46DD-9BDE-930AF3C88221@microsoft.com, "Stup88"
>> > <Stup88@discussions.microsoft.com> wrote:
>> >
>> >> I have a developer who has give me a mdf file she would like uploaded
>> >> to
>> >> our
>> >> production sql 2000 machine, what is the best process to do this.
>> >>
>> >> I believe it was created in sql express 2005 edition.
>> >>
>> >> Please
>> >>
>> >> Thanks
>> >

>>
>>


  Réponse avec citation
Vieux 11/07/2008, 22h45   #7
Stup88
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create DB from mdf file

So I can have the author export the data from 2005 and then I can import it
into a sql 2000 Db... But thats only data.. thats not structure is it ?

"Norman Yuan" wrote:

> Your can only attach .MDF file generated from SQL Server2005 to a SQL
> Server2005 or SQL Server2008 instance. Then, you can use Enterprise
> Manager/SQL Server Management Studio to do import/export between the two SQL
> Servers (2000 and 2005). If you only need the database's structure, then you
> can let the original author to script out the database structure and run the
> scripts on your SQL Server2000 to get the database created. If you do need
> the data, then, importing/exporting would be the only way to do it.
>
> "Stup88" <Stup88@discussions.microsoft.com> wrote in message
> news:8F501D54-6B32-4AF3-98F9-8C1F88B646BF@microsoft.com...
> > Just wanted to verify.. so this is not possible because of the different
> > versions.. any other way to do this ?
> >
> > "Norman Yuan" wrote:
> >
> >> Note the OP said the production server is SQL SERVER 2000? He cannot
> >> attach
> >> ..MDF from SQL Server2005/Express to SQL Server2000.
> >>
> >> "Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in
> >> message
> >> news:C49D09AE.BBF7%ten.xoc@dnartreb.noraa...
> >> > And she dd not provide an LDF file? If the file was properly detached
> >> > from
> >> > SQL Server 2005 then you might be able to use the stored procedure
> >> > sp_attach_single_file_db. Otherwise, I would ask her to either make a
> >> > backup you can restore, or detach the database correctly and provide
> >> > you
> >> > with both the MDF and LDF files.
> >> >
> >> > A
> >> >
> >> >
> >> >
> >> >
> >> > On 7/11/08 12:45 PM, in article
> >> > 7BDCC239-7DAA-46DD-9BDE-930AF3C88221@microsoft.com, "Stup88"
> >> > <Stup88@discussions.microsoft.com> wrote:
> >> >
> >> >> I have a developer who has give me a mdf file she would like uploaded
> >> >> to
> >> >> our
> >> >> production sql 2000 machine, what is the best process to do this.
> >> >>
> >> >> I believe it was created in sql express 2005 edition.
> >> >>
> >> >> Please
> >> >>
> >> >> Thanks
> >> >
> >>
> >>

>
>

  Réponse avec citation
Vieux 12/07/2008, 07h51   #8
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create DB from mdf file

There are functionality in the 2005 tools to generate scripts for the DDL.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Stup88" <Stup88@discussions.microsoft.com> wrote in message
news:3BFC7EBC-8882-4EA0-B807-8328CE686A5F@microsoft.com...
> So I can have the author export the data from 2005 and then I can import it
> into a sql 2000 Db... But thats only data.. thats not structure is it ?
>
> "Norman Yuan" wrote:
>
>> Your can only attach .MDF file generated from SQL Server2005 to a SQL
>> Server2005 or SQL Server2008 instance. Then, you can use Enterprise
>> Manager/SQL Server Management Studio to do import/export between the two SQL
>> Servers (2000 and 2005). If you only need the database's structure, then you
>> can let the original author to script out the database structure and run the
>> scripts on your SQL Server2000 to get the database created. If you do need
>> the data, then, importing/exporting would be the only way to do it.
>>
>> "Stup88" <Stup88@discussions.microsoft.com> wrote in message
>> news:8F501D54-6B32-4AF3-98F9-8C1F88B646BF@microsoft.com...
>> > Just wanted to verify.. so this is not possible because of the different
>> > versions.. any other way to do this ?
>> >
>> > "Norman Yuan" wrote:
>> >
>> >> Note the OP said the production server is SQL SERVER 2000? He cannot
>> >> attach
>> >> ..MDF from SQL Server2005/Express to SQL Server2000.
>> >>
>> >> "Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in
>> >> message
>> >> news:C49D09AE.BBF7%ten.xoc@dnartreb.noraa...
>> >> > And she dd not provide an LDF file? If the file was properly detached
>> >> > from
>> >> > SQL Server 2005 then you might be able to use the stored procedure
>> >> > sp_attach_single_file_db. Otherwise, I would ask her to either make a
>> >> > backup you can restore, or detach the database correctly and provide
>> >> > you
>> >> > with both the MDF and LDF files.
>> >> >
>> >> > A
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On 7/11/08 12:45 PM, in article
>> >> > 7BDCC239-7DAA-46DD-9BDE-930AF3C88221@microsoft.com, "Stup88"
>> >> > <Stup88@discussions.microsoft.com> wrote:
>> >> >
>> >> >> I have a developer who has give me a mdf file she would like uploaded
>> >> >> to
>> >> >> our
>> >> >> production sql 2000 machine, what is the best process to do this.
>> >> >>
>> >> >> I believe it was created in sql express 2005 edition.
>> >> >>
>> >> >> Please
>> >> >>
>> >> >> Thanks
>> >> >
>> >>
>> >>

>>
>>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h34.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17322 seconds with 16 queries