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.
| Author |
Topic |
|
gpiva
Starting Member
47 Posts |
Posted - 2004-04-13 : 04:05:02
|
| Hi everybody, I am using bcp.exe for export data from sqlserver is possible to use it in append on a file ?? |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-04-13 : 12:28:58
|
| No you can not. bcp will overwrite the file if it exists.Tara |
 |
|
|
gpiva
Starting Member
47 Posts |
Posted - 2004-04-13 : 19:04:05
|
quote: Originally posted by tduggan No you can not. bcp will overwrite the file if it exists.Tara
Thank you... there are other solutions to write in text file from a query in append using store proc ? |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-04-13 : 19:27:41
|
| No, not directly from SQL Server at least. bcp the data into a new file. Then merge the new file into your file using VBScript.Tara |
 |
|
|
byrmol
Shed Building SQL Farmer
1591 Posts |
Posted - 2004-04-13 : 19:41:43
|
| Or just use the DOS copy command ie: COPY File1.txt+file2.txt Newfile.txtDavidM"If you are not my family or friend, then I will discriminate against you" |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-04-13 : 19:43:54
|
| And if you use the DOS way, then you can do it inside SQL Server using xp_cmdshell.Tara |
 |
|
|
gpiva
Starting Member
47 Posts |
Posted - 2004-04-21 : 01:40:08
|
Thank you !quote: Originally posted by byrmol Or just use the DOS copy command ie: COPY File1.txt+file2.txt Newfile.txtDavidM"If you are not my family or friend, then I will discriminate against you"
|
 |
|
|
gpiva
Starting Member
47 Posts |
Posted - 2004-04-21 : 01:46:02
|
Hi I' ve posted an other topic under the Tsql category see gpiva I am tring for days solve this problem using tsql but nothing any suggestions from will be appreciate...quote: Originally posted by tduggan And if you use the DOS way, then you can do it inside SQL Server using xp_cmdshell.Tara
|
 |
|
|
|
|
|