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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-09-01 : 07:49:16
|
| Jake writes "Hello,How can i possibly enter these lines in visual basic .net?Create PROCEDURE bcpexport ASDECLARE @filename varchar(50),@bcpcommand varchar(2000)set @filename=('g:\authors.csv')set @bcpcommand='bcp "select * from test.dbo.table2" queryout "'set @bcpcommand=@bcpcommand+ @filename + '"-T -c -t,'EXEC master..xp_cmdshell @bcpcommandObviously, the "'s and the 's give all kinds of problems. If at all possible, i'd like to be able to create this procedure from within vb.net. If set quoted_identifier off is the answer, how do i make sure (scm.exe) the server starts in this mode everytime?Any help would be greatly appreciated,Jake" |
|
|
SqlStar
Posting Yak Master
121 Posts |
Posted - 2003-09-02 : 05:10:00
|
| Hi,Send me ur actual VB.NET code, I will correct that and send to you immly.Thanks":-) IT Knowledge is power :-)" |
 |
|
|
|
|
|