How to open the TFS query results in Excel?
Hello Guys,
Question 1: Is there any way to export the query results from the TFS web browser?
Question 2: Is there any way to export the query results from Team Explorer 2013?
Here is the query results in TFS:
How do I export this result in excel for further analysis?
I have also connected to Team explorer 2013 and right clicked on the query, but there is no option to open the results in Excel, see below:
Hello,
_Pls follow these guide lines for ensuring proper output in Microsoft Excel:
1.First compare the fields properties and the frames properties between the reports created with wizard and the reports created manually.
2. Do not leave any space between two adjacent objects.
Explanation: Because any space, including a few pixels, between two adjacent objects will result in an empty cell or column in Excel output
3.Make sure that the widths of all objects are vertically consistent.
Explanation: If the objects are not exactly aligned vertically, that is, have inconsistent widths, it is likely to result in insertion of unwanted cells/columns in Excel.
4. Pls. Make sure that the vertical elasticity of the frames and repeating frames is not fixed unless you are sure you have allocated enough space to accommodate all the records.
Explanation: If you set the Vertical Elasticity property of a frame to Fixed, the output in Excel will show only as many records as could appear on the first page of the paper output. Since Excel does not have a page concept, it is not able to overflow the remaining rows to the next page.
5. For reliable formatting of spreadsheet output, enclose the whole layout area in a frame.
Explanation: This action prevents the possibility of parallel objects displaying in different vertical positions, one following the other.
Hope this helps.
Regards,
Alex
Similar Messages
-
How to insert the select query result into table?
How to insert the select query result into table?
SELECT top 20 creation_time
,last_execution_time
,total_physical_reads
,total_logical_reads
,total_logical_writes
, execution_count
, total_worker_time
, total_elapsed_time
, total_elapsed_time / execution_count avg_elapsed_time
,SUBSTRING(st.text, (qs.statement_start_offset/2) + 1,
((CASE statement_end_offset
WHEN -1 THEN DATALENGTH(st.text)
ELSE qs.statement_end_offset END
- qs.statement_start_offset)/2) + 1) AS statement_text
FROM sys.dm_exec_query_stats AS qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st
ORDER BY total_elapsed_time / execution_count DESC;
Thanks,
Tirumala1. SELECT INTO
Below method will create table when data is inserted from one table to another table. Its useful when you need exactly same datatype as source table.
Use AdventureWorks2008R2;
Go
---Insert data using SELECT INTO
SELECT AddressLine1, City
INTO BothellAddresses
FROM Person.Address
where City = 'Bothell';
GO
---VERIFY DATA
Select AddressLine1, City
FROM BothellAddresses
---DROP TABLE
DROP TABLE BothellAddresses
GO
2. INSERT INTO SELECT
Below method will need table to be created prior to inserting data. Its really useful when table is already created and you want insert data from
another table.
Use AdventureWorks2008R2;
Go
---Create Table
CREATE TABLE BothellAddresses (AddressLine1 NVARCHAR(60), City NVARCHAR(30))
---Insert into above table using SELECT
INSERT INTO BothellAddresses(AddressLine1, City)
SELECT AddressLine1, City
FROM Person.Address
where City = 'Bothell';
---VERIFY DATA
Select AddressLine1, City
FROM BothellAddresses
---DROP TABLE
DROP TABLE BothellAddresses
GO
Regards,
Vishal Patel
Blog: http://vspatel.co.uk
Site: http://lehrity.com -
How to get the dynamic query result
If in one query, there is the amount range dimension, based on different dimension value combination, the customer revenue should be refreshed into different range, how to make it by cube?
eg.
Customer Store Material Month Amount
C001 M & S Tennis 2005/01 "10"
C001 Douglas Tennis 2005/02 "60"
C002 M & S Soccer 2005/01 "1"
C002 M & S Soccer 2005/02 "50"
C002 M & S Tennis 2005/02 "50"
C003 Douglas Tennis 2005/01 20
Query condition:
Time Customer Amount Range Amount
2005 C001 0~50_____________0
2005 C001 51~100___________70
2005 C001 100 +____________0
2005 C002 0~50_____________0
2005 C002 51~100___________0
2005 C002 100+_____________101
2005 C003 0~50_____________20
2005 C003 51~100___________0
2005 C003 100+_____________0
However, if I drill down Time into month, the result is total different, I only list the result related to customer C001
Time Customer Amount Range Amount
2005/01 C001 0~50____________10
2005/01 C001 51~100__________0
2005/01 C001 100 +___________0
2005/02 C001 0~50____________0
2005/02 C001 51~100__________60
2005/02 C001 100 +___________0
Any good solution on that? Thanks for any input.
Message was edited by: Lei ShaoHi, Sen,
I used your solution in my infocube and query, where I created a structure with 'between'. However, it is still the simple summation in different amount range.
Just like the following:
Sales ORG / Sales Office / Sales Rep / Amount
East / Atlanta / 1001 / 3
East / Atlanta / 1002 / 4
So the query result is the same:
S-ORG / S-Office / S-Rep / Amount Range / Amount
East / Atlanta / 1001 / 0~5 / 3
East / Atlanta / 1001 / 5+ / 0
East / Atlanta / 1002 / 0~5 / 4
East / Atlanta / 1002 / 5+ / 0
When I remove 'drill down' for Sales Rep, the result is:
S-ORG / S-Office / Amount Range / Amount
East / Atlanta / 0~5 / 7
East / Atlanta / 5+ / 0
However our expection for the result is different, because in business traction, if we remove sales rep, the sales org and sales office will get the sub-total like this: (we can image it with ABAP program sub-total)
Sales ORG / Sales Office / Amount
East / Atlanta / 7
So our expection for the result is:
S-ORG / S-Office / Amount Range / Amount
East / Atlanta / 0~5 / 0
East / Atlanta / 5+ / 7
Therefore, any good suggestion for this?
Thanks a lot
Regards,
LS -
How to get the sql query result?
Hi,
Currently I am using LV2012 to connect a Oracle database server. After the installations/settings for Oracle Express and Oracle ODBC driver done.
I am sucessfully to use the SQL command to query the data through my window command prompt.
Now the problem is, how I do the same task in Labview by using the database connectivity toolkits?
I have build a VI for query as attached, but i have no idea what pallete to use to get the query result.
Please help me ~~
Solved!
Go to Solution.
Attachments:
Query.vi 9 KBHere is a piece of code I use to test SQL commands, you can use the part that retrieves sql results.
It is also possible to get the column headers back, but that is for next lesson!
Attachments:
RunSQLCommand.vi 30 KB -
How to upload the web query result to CSV/Text file
Hi,
Kindly help me on the following.
1) I have info-provider (IP), which has info-objects "company code" and "supplier".
2) I built a query by putting company-code with a variable in free-charateristics and supplier-code in row.
3) When I run this query, it will ask company-code as input and the result will be filtered using company-code.
4) For this query, I created a web-template and assigned data-provider to display the data on the web.
5) The user wants to enter input company-code='1000' and write the data in a CSV file in a specific directory. i.e, by clicking the execute button (after entering company code) , the result should go to the CSV or text file. i.e. the application should automatically generate the file with query results.
Note: The user should not use context menu to EXPORT TO CSV OR EXCEL file.
Please let me know, if there is any tutorial. Thanks a lot advance help.
Regards
Kandasamy1. SELECT INTO
Below method will create table when data is inserted from one table to another table. Its useful when you need exactly same datatype as source table.
Use AdventureWorks2008R2;
Go
---Insert data using SELECT INTO
SELECT AddressLine1, City
INTO BothellAddresses
FROM Person.Address
where City = 'Bothell';
GO
---VERIFY DATA
Select AddressLine1, City
FROM BothellAddresses
---DROP TABLE
DROP TABLE BothellAddresses
GO
2. INSERT INTO SELECT
Below method will need table to be created prior to inserting data. Its really useful when table is already created and you want insert data from
another table.
Use AdventureWorks2008R2;
Go
---Create Table
CREATE TABLE BothellAddresses (AddressLine1 NVARCHAR(60), City NVARCHAR(30))
---Insert into above table using SELECT
INSERT INTO BothellAddresses(AddressLine1, City)
SELECT AddressLine1, City
FROM Person.Address
where City = 'Bothell';
---VERIFY DATA
Select AddressLine1, City
FROM BothellAddresses
---DROP TABLE
DROP TABLE BothellAddresses
GO
Regards,
Vishal Patel
Blog: http://vspatel.co.uk
Site: http://lehrity.com -
How to Publish the ABAP query results as csv
Hi,
I have a scenario and need help for the same, I need to query a table in CRM which has the long text information and publish or save the result as a csv file, is it possible? if so please tell me the steps and code if available
Thanks
Akila.RHi,
Two formats of creating a CSV file:
report zrich_0001 .
data: it001 type table of t001 with header line.
data: iout type table of string .
data: xout type string.
field-symbols: <fs>.
select * into table it001 from t001.
loop at it001.
clear xout.
do.
assign component sy-index of structure it001 to <fs>.
if sy-subrc <> 0.
exit.
endif.
if sy-index = 1.
xout = <fs>.
else.
concatenate xout <fs> into xout separated by ','.
endif.
enddo.
append xout to iout.
endloop.
call function 'GUI_DOWNLOAD'
exporting
filename = 'C:\test.csv'
tables
data_tab = iout.
report ztest.
type-pools:TRUXS.
data: begin of itab occurs 0,
vbeln like vbap-vbeln,
posnr like vbap-posnr,
end of itab.
data: itab1 type TRUXS_T_TEXT_DATA.
select vbeln
posnr
up to 10 rows
from vbap
into table itab.
CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ','
TABLES
I_TAB_SAP_DATA = itab
CHANGING
I_TAB_CONVERTED_DATA = itab1
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\TEMP\TEST.CSV'
TABLES
data_tab = itab1
EXCEPTIONS
OTHERS = 1.
Use SE38.
Regards
Subramanian -
How to convert the sql query result into xml ? PLease..Please..
I have a table Submission Record which contain a field with mix with text string and xml data type.
Table name: Submission Record
Field name: RCA
Jason
Tomato
<Record>AA</Record>
Fish
Brother
<Record>BB</Record>
<Record>CC</Record>
Tom is a girl
Its mixing with text and xml data.
I wish to convert all into xml data as per request from management.
my select statement is like below...but i think it may contain syntax error. Wish to get help from here.
sqltestagain = "select '<DATA>' || RCA || '</DATA>' from Submission Record".
Expect below will display
<DATA>Jason</DATA>
<DATA>Tomato</DATA>
<DATA><Record>AA</Record></DATA>
or any other solution for it ??
I've tried FOR XML....DBMS_XML......but none of it worked.....also look at xmlelement
SQL> select xmlelement("DATA", rca).getstringval() from
2 (
3 select 'Jason' RCA from dual union all
4 select 'Tomato' from dual union all
5 select '<Record>AA</Record>' from dual
6 )
7 /
XMLELEMENT("DATA",RCA).GETSTRI
<DATA>Jason</DATA>
<DATA>Tomato</DATA>
<DATA><Record>AA</Record></DATA>
SQL> -
RRI Jump Query opens the receiver query in standard Template??
Hi,
Few questions from me (Note I have searched the forum database for answers but didnt get a convincing answer)
1) How can I use 1 web custom built template for 2 different queries?
2) I have created the sender receiver setting for the Jump queries. The problem that I am facing is that the sender query uses the custom built web template but when I use GOTO the receiver query instead of using the custome template it executes in standard webtemplate. Kindly suggest how can I open the receiver query in the custom built web template after GOTO function.
Thanks for all your help in advance..
- AmitHi SS,
I agree to the statement that RRI uses link to Query but if we setup the custom web template for that jump query in WAD....it will never open in that template via RRI ???
That very disappointing discovery for me !!!
Any other possiblity to make this work????
What if I have the sender and receiver query web template(custom) same???.is it possbile to use the same template for these two template even after jump ???
Regards -
Tell me please how to open the document FreeHand (*. FH9) without options
Tell me please how to open the document FreeHand (*. FH9), something it had not appeared query options (options are by default)?
Public Function ILL(ByVal _path As String) As String
Dim appRef = CreateObject("Illustrator.Application")
' Dim docRef = appRef.Open(_path, 1)
'Open a file with legacy text
Dim optionsRef = CreateObject("Illustrator.OpenOptions")
optionsRef.UpdateLegacyText = True
Dim docRef = appRef.Open(_path, 1, optionsRef) ' 1 = aiDocumentRGBColorturn off Alerts at the beggining of your code
appRef.UserInteractionLevel = aiDontDisplayAlerts
turn them back on at the end of your code
appRef.UserInteractionLevel = aiDisplayAlerts -
How to write the given query using 'ANY ' operator
Hi,
How to write the given query using 'ANY ' operator , I dont need to fetch to grade_master table twice in database, just need to fetch within the result set.
SELECT dsg_code,dsg_name,dsg_grade FROM designation_master WHERE dsg_orgn='&&Orgn' and dsg_ctry='&&ctry'
And dsg_loc ='&&loc' And dsg_oru = '&&oru' and dsg_grade in decode('&&radio_group',
1, SELECT grd_code FROM grade_master WHERE grd_osm_code in (Select grd_osm_code FROM grade_master WHERE grd_orgn='&&Orgn' and grd_ctry='&&ctry' And grd_loc ='&&loc' And grd_oru = '&&oru' and grd_code ='&&emp_grade'),
2, SELECT grd_code FROM grade_master WHERE grd_osm_code > (Select grd_osm_code FROM grade_master WHERE grd_orgn='&&orgn' and grd_ctry='&&ctry' and grd_loc ='&&loc' And grd_oru = '&&oru' and grd_code),
3, SELECT grd_code FROM grade_master WHERE grd_osm_code < (Select grd_osm_code FROM grade_master WHERE grd_orgn='&&orgn' and grd_ctry='&&ctry' And grd_loc ='&&loc' And grd_oru = '&&oru' and grd_code ='&&emp_grade'))
thanks
rincyHi,
One thing I understood my your issue is you want to perform, execution of query once or fetch the results sets my minimizing the number of times executions of queries. It would be hard for us to check in this way, atleast provide some temporary data and some business rules. Only I can IN, >, < (queries logical conditons on inner query)
- Pavan Kumar N
- ORACLE OCP - 9i/10g
https://www.oracleinternals.blogspot.com -
Broadcasting the precalculated query results in web format
Hi Experts,
We have a requirement where we need to broadcast the precalculated query results in web format, we know that we can do this through workbook, but we want to do it in web format to avoid the limitations of the workbook like number of rows in workbook limited to 65000 etc.,
We are using 3.x environment,
please suggest that is this functionality can be achievable, if yes how?
Thanks in advance,
-VinayHi All, this problem was resolved.
Thanks,
vinay -
How to update the test case result in MTM using C#
Hi
I have tried the following code but when I execute the same I am getting the testcase result as "In Progress".
How to update the testcase execution result as Passed.
I tried the below code:
public
static
void UpdateResult()
TfsTeamProjectCollection tfs =
new
TfsTeamProjectCollection(TfsTeamProjectCollection.GetFullyQualifiedUriForName(server));
ITestManagementService tms = tfs.GetService<ITestManagementService>();
ITestManagementTeamProject proj = tms.GetTeamProject(project);
ITestPlan Plan = proj.TestPlans.Find(1);
ITestRun testRun = proj.TestRuns.Create();
testRun = Plan.CreateTestRun(false);
ITestPointCollection points = Plan.QueryTestPoints("SELECT
* FROM TestPoint");
foreach (ITestPoint
p in points)
testRun.AddTestPoint(p,Plan.Owner);// null);
testRun.State = TestRunState.Completed;
testRun.Save();
ITestCaseResultCollection results = testRun.QueryResults();
ITestIterationResult iterationResult;
foreach (ITestCaseResult
result in results)
iterationResult = result.CreateIteration(1);
foreach (ITestStep
testStep in result.GetTestCase().Actions)
ITestStepResult stepResult = iterationResult.CreateStepResult(testStep.Id);
stepResult.Outcome = TestOutcome.Passed;
iterationResult.Actions.Add(stepResult);
iterationResult.Outcome = TestOutcome.Passed;
result.Iterations.Add(iterationResult);
result.Save();
results.Save(true);
testRun.Save();
testRun.Refresh();Hi Mohammed,
Sorry for my delay.
According to your code, I have been modified your code in my side and it can work fine. So you can refer the following code to check your issue in your side.
Reference:
publicstaticvoidUpdateResult()
TfsTeamProjectCollectiontfs
= newTfsTeamProjectCollection(TfsTeamProjectCollection.GetFullyQualifiedUriForName(server));
ITestManagementServicetms
= tfs.GetService<ITestManagementService>();
ITestManagementTeamProjectproj
= tms.GetTeamProject(project);
ITestPlanPlan = proj.TestPlans.Find(1);
IStaticTestSuitesuite
= Plan.RootSuite.SubSuites.Where(s
=> s.Id == 1339).First()
asIStaticTestSuite;
ITestCasetestcase
= null;
testcase
= suite.Entries.Where(e
=> e.Title == "login").First().TestCase;
ITestRuntestRun
= project.TestRuns.Create();
testRun
= Plan.CreateTestRun(false);
ITestPointCollectionpoints
= Plan.QueryTestPoints("SELECT * FROM TestPoint WHERE TestCaseId ="+
testcase.Id);
foreach(ITestPointp
inpoints)
testRun.AddTestPoint(p,
Plan.Owner);// null);
//testRun.AddTestPoint(p, null);
testRun.State =
TestRunState.Completed;
testRun.Save();
ITestCaseResultCollectionresults
= testRun.QueryResults();
ITestIterationResultiterationResult;
foreach(ITestCaseResultresult
inresults)
iterationResult = result.CreateIteration(1);
foreach(ITestSteptestStep
inresult.GetTestCase().Actions)
ITestStepResultstepResult
= iterationResult.CreateStepResult(testStep.Id);
stepResult.Outcome
= TestOutcome.Passed;
iterationResult.Actions.Add(stepResult);
iterationResult.Outcome
= TestOutcome.Passed;
result.Iterations.Add(iterationResult);
result.Outcome
= TestOutcome.Passed;
result.State = TestResultState.Completed;
result.Save(true);
testRun.Save();
testRun.Refresh();
Note: you will need to
base on your requirement to modify the code such as modify the testsuite id and title in your side.
In addition, I find a blog about TFS API that can help you:
# Code snippets on Test Management APIs
http://blogs.msdn.com/b/aseemb/archive/2012/08/07/code-snippets-on-test-management-apis.aspx
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi
iam newly in ssas
i was start the new work in Ssas . but i did not get any path of the cube in tfs,
i have only server name and database and cube name . can you please tell me how to connect the tfs with analysis server.
it possible to connect with out path and only server name and database. how can get latest version . and how to get the exactly path .
please help me
thank you,Hi sheshu0022,
I agree with Zaied, and you can check this
page for details for connecting to TFS. Then you can do a workspace mapping and get the source code from TFS server to your client machine via Team Explorer. If you have any other concerns, please elaborate more details or open a new thread.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to view the sql query?
hi,
how to view the sql query formed from the xml structure in the receiver jdbc?You can view SAP Note at
http://service.sap.com/notes
But you require SMP login ID for this which you should get from your company. The content of the notes are as follows:
Reason and Prerequisites
You are looking for additional parameter settings. There are two possible reasons why a feature is available via the "additional parameters" table in the "advanced mode" section of the configuration, but not as documented parameter in the configuration UI itself:
Category 1: The parameter has been introduced for a patch or a SP upgrade where no UI upgrade and/or documentation upgrade was possible. In this case, the parameter will be moved to the UI and the documentation as soon as possible. The parameter in the "additional parameters" table will be deprecated after this move, but still be working. The parameter belongs to the supported adapter functionality and can be used in all, also productive, scenarios.
Category 2. The parameter has been introduced for testing purposes, proof-of-concept scenarios, as workaround or as pre-released functionality. In this case, the parameter may or may not be moved to the UI and documentation, and the functionality may be changed, replaced or removed. For this parameter category there is no guaranteed support and usage in productive scenarios is not supported.
When you want to use a parameter documented here, please be aware to which category it belongs!
Solution
The following list shows all available parameters of category 1 or 2. Please note:
Parameter names are always case-sensitive! Parameter values may be case-sensitive, this is documented for each parameter.
Parameter names and values as documented below must be used always without quotaton marks ("), if not explicitly stated otherwise.
The default value of a parameter is always chosen that it does not change the standard functionality
JDBC Receiver Adapter Parameters
1. Parameter name: "logSQLStatement"
Parameter type: boolean
Parameter value: true for any string value, false only for empty string
Parameter value default: false (empty String)
Available with: SP9
Category: 2
Description:
When implementing a scenario with the JDBC receiver adapter, it may be helpful to see which SQL statement is generated by the JDBC adapter from the XI message content for error analysis. Before SP9, this can only be found in the trace of the JDBC adapter if trace level DEBUG is activated. With SP9, the generated SQL statement will be shown in the details page (audit protocol) of the message monitor for each message directly.
This should be used only during the test phase and not in productive scenarios.
Regards,
Prateek -
How to transport the BW query's variable to BO webi report
Hi all
I'd like to know how to transport the BW query's variable to BO 's webi . today ,I created a sap customer varible in my bw system to get the max calmonth in the active table.The varible in the BW side run's well ,but I use this query to build a new univers ,and created a new webi report base on this univers ,but the question is the webi report can't get the varible's value I wann to know how to transport the bw varible value to BO webi report
Thanks and regards,
Peter .zhuI have changed my variaable in my bw query ,I found if you use SAP default variable it is ok in BO side . So I get a guidline by SAP default variable ,I changed my customer variable in variables edite ,don't use 'ready for input' .And then the variable can be useful in BO side .
Edited by: peter zhu on Jun 16, 2008 11:43 AM
Maybe you are looking for
-
After Effects CC import "Sequence Footage" frame rate settings in "Import" preferences
Just started using the new AE CC (v12 as Adobe will not refer to it as) I noticed one thing that seems to work differently from CS6 and that is in the preferences for import Sequence footage settings. It doesn't seem to work normally, at least for m
-
My iphone 4s i get this every best to connect to my pc trust this computer for?
my iphone 4s i get this every best to connect to my pc trust this computer for?
-
Windows stuck after return of s2r
hi, i'm using an external monitor with my macbook pro shut. when sending the macbook to suspend to ram, plugging it off and opening it again some time later, my windows got stuck. i can move them but they'll react about 5 seconds later to the movemen
-
Hello, My installed application on my Nokia E5 (Chat on the go, i think) doesn't work. In the Ovi Store, I can't find a original Chat application, also not for my Nokia 5530 XM & Nokia N97 Mini ! Is there any solution available? Edit: I've download (
-
Hi, I have created a search help for the Job field in CAT2. I am importing the personnel number from memory id 'CATSPERNR'. I am trying to import the time entry dates from memory as well. Whan I go look at the CATSFIELDS pernr is there and there ar