Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 BCP

Author  Topic 

saha
Starting Member

3 Posts

Posted - 2011-01-04 : 00:51:15
Dear All
If I want to use BCP for exporting data from my database, the data that export will be delete?if not can I use delete instruction from command promp?
thanks a lot for your attention
With Best Regards

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2011-01-04 : 01:10:13
No - bcp doesn't delete data.
You can use osql or sqlcmd to execute adelete command from the command prompt.
If data is being added all the time you will have do do something like
Flag rows to export
export rows that are flagged
delete flagged rows.


==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

CK
Starting Member

3 Posts

Posted - 2011-01-22 : 01:12:56
Hello,

Is it possible to export the resultset of two queries in two different tabs of excel of the same file using bcp in sql server 2000. If yes then please let me knoe how i can do the same.

If not then please suggest some alternative way to do the same.

Thanks
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-01-23 : 23:25:19
CK, do not hijack a thread. It's poor form. I've replied to your new topic already.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -