欢迎来到天天文库
浏览记录
ID:22675747
大小:64.50 KB
页数:7页
时间:2018-10-30
《sql server reporting service》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、SQLServerReportingService 上次介绍了SQLServerReportingService命令行部署报表的基本内容,利用这些知识我们可以轻松的部署报表,然而在TFS中,每个项目都有它对应的报表,这些报表如果要一个个的更新也是件痛苦的事情,现在我也遇到了这个问题,针对TFS开发了两张报表,但是如何将这些报表应用到所有项目上呢?结合之前的部署脚本知识,我们可以使用下面方法实现: 首先建立一个批处理文件ImporticrosoftVisualStudio9.0VCvcvarsall.batx86port/t%1/
2、p%2/ficrosoftCorporation. Allrightsreserved.''ThissourcecodeisintendedonlyasasupplementtoMicrosoft'DevelopmentToolsand/oron-lineumentation. Seetheseother'materialsfordetailedinformationregardingMicrosoftcodesamples.''THISCODEANDINFORMATIONAREPRO
3、VIDEDASISPLIED,INCLUDINGBUTNOTLIMITEDTOTHE'IMPLIEDERCHANTABILITYAND/ORFITNESSFORA'PARTICULARPURPOSE.'=============================================================================''1.0Documentation''Readthefolloiliarizeyourselfplescript.'
4、'1.1Overvieplescriptusesascriptfile(.rss)andthescriptenvironmenttorun'and-promptvariableusingthe杤splereportsthatshipwithReportingServicestoareportserver.'Dependingo123下一页>>>>这篇文章来自..,。nthelocationofyoursamplereports,youmayneedtomodifythe'valueofthefileP
5、athvariable,plereports.''1.2ScriptVariables''VariablesthatarepassedonthemandlineplemandLines'''1.3.1UsethescripttopublishthesamplereportstoanAdventureain()SubMain() rs.Credentials=System.Net.CredentialCache.DefaultCredentials ''C
6、reatetheparentfolder 'Try ' rs.CreateFolder(parentFolder,/,Nothing) ' Console.essage) 'EndTry ''CreatetheAdventureD,_ ' datasource=localhost;initialcatalog=Adventureplereports DimsreaderAsNe.IO.StreamReader(ProjectInfo.in
7、i) DimpNameAsString= pName=sreader.ReadLine() PublishReport(SSe) PublishReport(SSe)EndSubPublicSubCreateSampleDataSource()SubCreateSampleDataSource(ByValnameAsString,ByValextensionAsString,ByValconnectionStringAsString) 'Definethedatasourcedefinition. D
8、imdefinitionAsNe.Integrated definition.ConnectString=connectionString definition.Enabled=True definition.Enable
此文档下载收益归作者所有