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
 General SQL Server Forums
 New to SQL Server Programming
 sql script query

Author  Topic 

ursunshine66
Starting Member

3 Posts

Posted - 2011-10-03 : 02:06:31
Hi I have a sql script with header on and it generates output in text file with the header repeating after every 20000 records. how do I make the header only appear once? pls help a.s.a.p. tq!!!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-03 : 02:22:54
how is it doing the export? is it using bcp? Can you post part where header comes?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

ursunshine66
Starting Member

3 Posts

Posted - 2011-10-03 : 02:44:19
Hi...this is how the top part of the sql script looks like...

set term off
set linesize 9999
set head on
set pagesize 9999
set feedback off
set verify off
set echo off
set colsep '|'
--
col "CLIENT" format a3
col "/BA1/CR0GROUP" format a62
col "/BA1/CR0TSTMP" format a21
col "/BA1/CR0LEAFID" format a32
col "/BA1/C92SCEN" format a10
col "/BA1/CR0ROOTID" format a32
col "VERSION_GUID" format a32
col "/BA1/CR0NDTP00" format a14
col "/B20C/S_R0CREL0" format S9999999999999990.00
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-03 : 02:52:29
it looks like oracle code. This is MS SQL Server forum and solutions given here are sql server specific. If you're using oracle please try posting it in oracle forum like www.orafaq.com

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

ursunshine66
Starting Member

3 Posts

Posted - 2011-10-03 : 02:58:07
ok tq
Go to Top of Page
   

- Advertisement -