Limited to 100 result TFS api - api

I am using power shell to get data from TFS 2018 (on Premise)
I'm trying to fetch details of our releases using the TFS API.
I can't seem to return more than 100 entries whatever I try.
http://server/tfs/collection/project/_api/_apis/release/releases?api-version=4.0-preview&$top=500

Related

SSDT tabular model data loading / ID error

I am new to Visual studio, and I am in the process of building my first tabular model in Visual studio, have been using powerBI for a year or so.
I have an Azure SQL database setup, with data tables. I can access the database fine through SSMS, Power BI etc fine. I can also access the data fine when using the data model on the workspace server rather than an integrated workspace with VS.
When using the model in integrated workspace mode, when I use "Getting data" through power query in my tabular project in visual studio, I can login into the database fine, I can preview the various data tables and open them in power query / transform etc. However, when I try to import the data - it can get past stage one of the processing - and I get the following error
“Failed to save modifications to the server. Error returned: 'OLE DB
or ODBC error: We're sorry, an error occurred during evaluation..”
Which leaves me with a table with headers for the columns - but no actual rows of data.
When I revert the data model back to workspace server (i.e. integrated workspace set to false) - I can upload / refresh the data.
So I was happily building my model on the workspace server - HOWEVER - when I came to adding roles and user to those roles - I cannot use the workspace server - or I get an ID error - as I am using an Azure AD. - see below
An error occurred while opening the model on the workspace database.
Reason: Failed to save modifications to the server. Error returned:
'ID cannot be specified for Azure Analysis Services role member:
'member#domain'.
This ID error is fixed when I use an integrated workspace - as recommended - but then I can't load the data in.
So I am stuck between:
integrated workspace with no data
workspace server - without the ability to add AzureAD IDs
Any help with either of the issues would be much appreciated
Thanks,
Laurence
I work with VS 2017 and experience exactly the same issue. I use SSDT compability level 1400.
I appears that simply run Visual Studio as administrator solves the issue with Integrated server.
Accidentally found this solution, I saw earlier some people had solved inability to connect to workspace server without admin rights.

How to get status report from Team foundation server 2015

How to get a report from the Visual Studio team foundation server with the following details.
1) User stories in Development bucket
2) User stories in Development- Review bucket
3) User stories in Development- pending deployment bucket.
4) User stories in testing bucket and their status
5) User stories in UAT -complete bucket.
6) Bugs logged for the ACTIVE US.
The information are all related to work items.
So, you can simply create queries and then create Excel reports from corresponding query.
Please see below articles for more information:
Create managed queries with the query editor
Create Excel reports from a work item query
You can also reference below articles:
Reporting in Team Foundation Server – Part 7: Excel Reports from
Work Item Queries
TFS Reports using Excel
If you mean SSRS, then you need to Creat and Customize TFS Reports, just reference this article for details : TFS Reports using SSRS

Tfs 2013 Api: capacity and days off

I develop small project using tfs API. I have no problems with working with workItems,projects or teams but i'm wondering if is possible to get capacity and days off for specific team and specific iteration (within one project). It is possible to achive in TFS 2013 (or maybe in TFS 2015)?
You can use the Capacity REST Api of TFS2015

How to create Copy of Clone Database for N Number of Clients in SQL

How to create copy of clone database for N Number of clients dynamically in sql.
The requirement is as below.
i am having a super admin database which is specific for super admin role alone and if any new client comes the super admin will get those client information and saves it.
During the Save process i need to create a copy of database for the client with the client information provided.
As same continues for N number of clients..
How to workout this logic dynamically with the existing tables.
Create a Visual Studio SSDT (SQL Server) project - you can use visual studio express if you do not have visual studio already.
Import your table schema and if you have any reference data add it to a post deploy script.
Build the project and you will have a .dacpac.
When you want a new database, from a command prompt do:
sqlpackage.exe /Action:publish /sourcefile:path\to\dacpac.dacpac /TargetServerName:Server /TargetDatabaseName:%NEWDATABASENAME%
You can wrap the call to sqlpackage.exe in a batch or powershell script to make it simpler.
If you want to do it from a .net program you can call thed DacFx api directly (http://blogs.msmvps.com/deborahk/deploying-a-dacpac-with-dacfx-api/)
Good luck!
Ed

Clients Reports from web app

I have an web app with some static reports that is running with SQL Server 2012 Web Edition and I dont want the impact of a report process on usage of the app.
So, I decide to split the database:
Database Master - With all data. Used for all web app precess, except the reports
Database X - With all data from the client X. Used only for report and updated every day.
Database Z - With all data from the client Z. Used only for report and updated every day.
Database Y - With all data from the client Y. Used only for report and updated every day.
There is no limitation number of database that could have.
What would be the best way?
-Cubes with Analises Services? I think I cant use this solution with Web Edition.
-Snapshot databases? Maybe in another server?
-Another solution?
Tks.
I could solve my problem using the SSIS (Integration Services) with Visual Studio
I create the Azure SQL databases with table that I want to public to my client
In SSIS I created packages for each client with their connection to Azure database. Also created a variable with the client ID that will be used by the filters.
Published the project in Integration Services Catalog and add JOBs to execute the packages every midnight.
For my clients I give the Azure credential (read-only) that will be used in Excel PowerPivot
Here is a link to a good SSIS tutorial. It worth for who has similar problem or need to migrate/extract/transform data. You can also generate Excel sheets.
SSIS tutorial with SQL Azure