Client need the data in excel sheets..not from reportign services...
While running the above code excel sheets are generating with our column headers in the excel.
That to I need to seperate the data based on cname.
for your reference please find the attached data...
load the data into a table and runt he above script.
Kind regards,
Reddeppa G
User Profile
Collapse
-
Reddeppa replied to BCP Command is not working. I need to pull the data from table and load into excelin SQL ServerHi Rabbit,
IF the above code is not working in SQL 2008 because we don't have the SP_MAKEWEBTask system procedure.
So we have to implement with BCP Command.
Please find converted code in sql 2008...
...Code:USE [AexNS] GO /****** Object: StoredProcedure [dbo].[sp_DHL_MultidimensionalReport] Script Date: 03/27/2013 22:30:45 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER
Leave a comment:
-
Reddeppa started a topic SP_MAKEWEBTASK system procedure avilable in sqlserver 2005?any equalent in sql2008?in SQL ServerSP_MAKEWEBTASK system procedure avilable in sqlserver 2005?any equalent in sql2008?
SP_MAKEWEBTASK system procedure avilable in sqlserver 2005?is there any equalent procedure/scenario avliable in sql server 2008?
Thanks in advance :)
Reddeppa G -
Reddeppa replied to BCP Command is not working. I need to pull the data from table and load into excelin SQL Serverhi Rabbit,
I have the procedure in SQL Server 2005 to create the excel sheets based on cname & Servername.
here I have few steps
1.I have the folders named
a).EMEA (under EMEA we have sub folders are SMP7_3741,SMP7_ 3742,SMP7_3743, SMp7_3744,SMP7_ 3745)
b).AM(under AM we have sub folders are SMP7_3746,SMP7_ 3747)
c)AP(under AP we have sub folders are SMP7_3759,SMp7_ 3790,SMP7_3791)...Leave a comment:
-
Reddeppa replied to BCP Command is not working. I need to pull the data from table and load into excelin SQL ServerHi rabbit,
I need to run the script from stored procedure to create the excel sheet based on cname.
"'select * from tmp_ACS_MultiDi mensional where cName = 'CH All Workstations''"
Regards,
Reddeppa G...Leave a comment:
-
Reddeppa started a topic BCP Command is not working. I need to pull the data from table and load into excelin SQL ServerBCP Command is not working. I need to pull the data from table and load into excel
EXEC master..xp_cmds hell 'BCP "'select * from tmp_ACS_MultiDi mensional where cName = 'CH All Workstations''" QUERYOUT D:\Test\MultiDi mensionalReport s\EMEA\SMP7_374 1\CH_All_MultiD imensionalRepor ts.xls -T -c'
Is the command will work, can you please provide methe exact bcp command to execute..:)
No activity results to display
Show More
Leave a comment: