----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: vijrag Message 1 in Discussion " Using Import Export Data wizard, I can export and import the entire database. I exported the entire Northwind database in spreadsheet. The data of the tables is available in the corresponding excel sheet, the sheet is same as the 'table name'. Is there any way to do this through command prompt in a silent/unattended way, without using the wizard? There is a command called 'bcp', which does import and export table by table, i.e i need to specify the database name, table name and database owner. The sample command is as follows: For export the command is as follows: C:\>bcp "NorthWind.dbo.XYZ" out "C:\XYZ.txt" -c -q -U "sa" -P "password" Starting copy... 3 rows copied. Network packet size (bytes): 4096 Clock Time (ms.): total 16 For import the command is as follows: C:\>bcp "tempdb.dbo.XYZ" in "C:\XYZ.txt" -c -q -U "sa" -P "password" Starting copy... 3 rows copied. Network packet size (bytes): 4096 Clock Time (ms.): total 187 We want to avoid importing/exporting table by table. We want to export and import the entire database. Is there a way to do this? ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
