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 2005 Forums
 Transact-SQL (2005)
 bcp mulitiline

Author  Topic 

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2008-07-08 : 08:26:25
How do you write a bcp queryout statement where the SQL that is going to be run can be over multiple lines?
I always have to end up assign the varchar variable equal to a very long string on one line. Not very readable if its a big query...

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-07-08 : 09:06:58
i would convert the query to a stored procedure


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2008-07-09 : 06:52:54
of course, silly me
Go to Top of Page
   

- Advertisement -