Hi
I am using Sqlserver2005. I need to convert .mdf to sql script. how can I do this?
Thanks
In your SQL management studio you right click on the database node and select "Tasks-->Generate Scripts..." This will start a wizard for you.
|||Tasks->Generate Scripts will only generate a script to re-create the database. It will not create any table, let alone the table data.
Download the Microsoft SQL Server Database Publishing Wizard. This will script the entire database for you.
Jos
|||
Jos Branders:
Download the Microsoft SQL Server Database Publishing Wizard. This will script the entire database for you.
Hi Jos,
Through wizard it asks for database name. But I don't have any database created on SQLServer Management Studio. I just have .mdf and .ldf files.
How can I create sqlscript using those files?
Thanks
|||You have to first import the database in sql server. Right click on databases and select Attach database.
||| Thank you Richard. Its working.
No comments:
Post a Comment