Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Data Import // MS Query // Header Missing Expand / Collapse
Author
Message
Posted Tuesday, April 16, 2013 5:21 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, April 29, 2013 8:17 AM
Points: 2, Visits: 13
Hi Guys,

i wonder if anybody can assist me this is doing my head-in. I am using Query and linking it with Excel 03 to pull the result. The query works fine in Sql server but when it runs in Excel Query it removes the header for all the allias used within the query. Any suggestion why its happining. I can't manually keep writing since its a regular report.

select rtrim(service) as service,sum(NumberOfPassengers)Passenger,
DepartureName,ArrivalName,
Company, DepartureMonthName, DepartureYear

from table1
where DepartureDate between '01-jan-2012'and getdate()
and (DepartureName like 'random%'
or ArrivalName like 'ramdp,%')
and Company='ran'
group by ServiceNumberOld,DepartureName,ArrivalName,Company,DepartureMonthName,DepartureYear,ServiceNameOld
Post #1442693
Posted Tuesday, April 16, 2013 11:31 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Yesterday @ 2:56 PM
Points: 835, Visits: 1,191
I am using office 2010 and it works fine for me.
Post #1442888
Posted Wednesday, April 17, 2013 2:34 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, April 29, 2013 8:17 AM
Points: 2, Visits: 13
I think its the bug coz I tried the same after reading you're comment and it was working. The only problem is people within business are on 03 so. I have to look for solution. Can't provide 10 version to these people. they ill have a heart attack. I imported the Data in Pivot and then changed the format will check to see if this makes a difference.
Post #1443146
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse