am srikanth.i have two databases one at source and other at target with same structure .i want to track the changes of dml operations of tables and convert this into Xml file and that should be sent through email and updated to database how to solve this
problem please reply it to my mail kanth456@in.com
Why are you not using Import/Export if your system is connected in LAN, other wise you can use backup and restore option which take all your permisson, Identity, Defaultvalue as per your master database.
If u system is in local area connection(& in both the master & slave contain same formated server with same OS configuration) i think u can easily transfer the data(sometimes back i was at same confusion) the i take my senior help & u cannot even imagin
that i tranfer througn external hard drive(by copying from the source & moving to any other ).so [Yes] .And if u still facing prob. then u can go for some extra expertise.
One can also use Copy database option to copy databases from source server to destination server. Otherwise the best way is to use ETL (Extract -Transform & Load) feature of SQL Server which is available by virtue of DTS in SQL Server 2000 or SSIS in SQL Server
2005. Here you can create Packages using BIDS (Business Intelligence Development Studio) IDE given by SQL Server 2005 and then run these packages by creating a job in SQL server.
You can copy .mdf & .ldf file. But for that, you have to first stop the sql server service. And this is one of the bad idea, because noone will give permission to stop service in a live server where a number of applications are running. So you may follow
one of the following solutions.
1) You may generate query which will contains structure of all tables & all stored procedures, functions etc. (Data will not be copied in this process)
2) Create back up & restore on your local machine where you want. (It'll copy strucure as well as data)
3) Export data from one system & import data on another system by using DTS export wizard.
move databaseexport import databasecreate back up of database
You might want to look at the new deployment features in Visual Studio 2010 beta 1 that was just released. We've got some powerful tools to make it much easier to move a database with a Web application project for either hosted or self-hosted sites.
I'm a new user to this tools and am building a web project using visual web developer express 2008. I tried transfering all my project files to another computer but i can't get the database to connect. I've read that you have to attach detach, copy paste
etc lots of way to transfer the file. What i did before was just copy the project folder and transfer with usb but it kinda lost the database connection. How do i transfer the db as well? Hope you guys can help. I'm new so i don't get the term you guys using.
I found the attach method but i wanna know the other methods as well as a back up since the other computer is kinda far away and i wanna make sure i get it right this time. Please help. Thank you =)
Right click on your database. Go to Tasks->Backup. It'll show a location where to save. Take backup by clicking OK. Just go to that location & copy that file. Then go to second computer where you want to restore. Open SQL Server. Right click on "Databases".
Go to "Restore Database". Select "from device" option. Click on the right side button. Then click "Add". select that backup file & click OK. Then click "To database" dropdown list. You can see your database name. Select it & click OK.
Right click on database as in in database explorer? is it in visual web developer express 2008? And plus everytime i choose to 'view in browser' my .aspx page it says asp.net developement server.
kanth456
Member
2 Points
1 Post
Re: How to move databases between computers that are running SQL Server
Mar 23, 2009 04:20 AM|LINK
hi,
am srikanth.i have two databases one at source and other at target with same structure .i want to track the changes of dml operations of tables and convert this into Xml file and that should be sent through email and updated to database how to solve this problem please reply it to my mail kanth456@in.com
vineetJAISWA...
Member
40 Points
47 Posts
Re: How to move databases between computers that are running SQL Server
May 13, 2009 11:16 AM|LINK
Why are you not using Import/Export if your system is connected in LAN, other wise you can use backup and restore option which take all your permisson, Identity, Defaultvalue as per your master database.
soumendu
Participant
820 Points
135 Posts
Re: How to move databases between computers that are running SQL Server
May 14, 2009 11:03 AM|LINK
Hi ,see
If u system is in local area connection(& in both the master & slave contain same formated server with same OS configuration) i think u can easily transfer the data(sometimes back i was at same confusion) the i take my senior help & u cannot even imagin that i tranfer througn external hard drive(by copying from the source & moving to any other ).so [Yes] .And if u still facing prob. then u can go for some extra expertise.
Ok then [cool] ...Bye
shashanksaud...
Member
64 Points
27 Posts
Re: How to move databases between computers that are running SQL Server
May 15, 2009 09:35 AM|LINK
One can also use Copy database option to copy databases from source server to destination server. Otherwise the best way is to use ETL (Extract -Transform & Load) feature of SQL Server which is available by virtue of DTS in SQL Server 2000 or SSIS in SQL Server 2005. Here you can create Packages using BIDS (Business Intelligence Development Studio) IDE given by SQL Server 2005 and then run these packages by creating a job in SQL server.ajitsatpathy
Member
318 Points
99 Posts
Re: How to move databases between computers that are running SQL Server
May 19, 2009 07:15 PM|LINK
You can copy .mdf & .ldf file. But for that, you have to first stop the sql server service. And this is one of the bad idea, because noone will give permission to stop service in a live server where a number of applications are running. So you may follow one of the following solutions.
1) You may generate query which will contains structure of all tables & all stored procedures, functions etc. (Data will not be copied in this process)
2) Create back up & restore on your local machine where you want. (It'll copy strucure as well as data)
3) Export data from one system & import data on another system by using DTS export wizard.
move database export import database create back up of database
http://webxpertstalk.blogspot.com/
Grayson@MS
Member
223 Points
34 Posts
Microsoft
Re: How to move databases between computers that are running SQL Server
May 20, 2009 04:56 PM|LINK
You might want to look at the new deployment features in Visual Studio 2010 beta 1 that was just released. We've got some powerful tools to make it much easier to move a database with a Web application project for either hosted or self-hosted sites.
Deploying Databases with Web Application Projects Overview Pasted from <http://msdn.microsoft.com/en-us/library/dd465340(VS.100).aspx> Walkthrough: Deploying a Database with a Web Package Pasted from <http://msdn.microsoft.com/en-us/library/dd483479(VS.100).aspx> Walkthrough: Deploying a Database using Web Publish Pasted from <http://msdn.microsoft.com/en-us/library/dd579608(VS.100).aspx> How to: Include Custom Scripts with a Database in a Web Package Pasted from <http://msdn.microsoft.com/en-us/library/dd465343(VS.100).aspx>HTH,
Grayson
Visual Studio 2010 beta 1
jerrios
Member
4 Points
2 Posts
Re: How to move databases between computers that are running SQL Server
Oct 23, 2009 04:55 PM|LINK
Hello,
I'm a new user to this tools and am building a web project using visual web developer express 2008. I tried transfering all my project files to another computer but i can't get the database to connect. I've read that you have to attach detach, copy paste etc lots of way to transfer the file. What i did before was just copy the project folder and transfer with usb but it kinda lost the database connection. How do i transfer the db as well? Hope you guys can help. I'm new so i don't get the term you guys using. I found the attach method but i wanna know the other methods as well as a back up since the other computer is kinda far away and i wanna make sure i get it right this time. Please help. Thank you =)
ajitsatpathy
Member
318 Points
99 Posts
Re: How to move databases between computers that are running SQL Server
Oct 23, 2009 05:48 PM|LINK
Right click on your database. Go to Tasks->Backup. It'll show a location where to save. Take backup by clicking OK. Just go to that location & copy that file. Then go to second computer where you want to restore. Open SQL Server. Right click on "Databases". Go to "Restore Database". Select "from device" option. Click on the right side button. Then click "Add". select that backup file & click OK. Then click "To database" dropdown list. You can see your database name. Select it & click OK.
Tell m if any problem.
http://webxpertstalk.blogspot.com/
jerrios
Member
4 Points
2 Posts
Re: How to move databases between computers that are running SQL Server
Oct 25, 2009 03:29 PM|LINK
Right click on database as in in database explorer? is it in visual web developer express 2008? And plus everytime i choose to 'view in browser' my .aspx page it says asp.net developement server.
ajitsatpathy
Member
318 Points
99 Posts
Re: How to move databases between computers that are running SQL Server
Oct 25, 2009 05:34 PM|LINK
U need to open it from SQL management studio.
http://webxpertstalk.blogspot.com/