PaaSã¢ãã«ãšããŠã®Windows Azureã¯ã©ãŠããã©ãããã©ãŒã ã«ã¯ã Windows Azure SQLããŒã¿ããŒã¹ãµãŒãã¹ïŒSQL AzureãšåŒã°ããïŒã ãã§ãªããWindows Azure SQLã¬ããŒãã¬ããŒããµãŒãã¹ãå«ãŸããŠããŸãã ãåç¥ã®ããã«ãã¯ã©ãŠãã¢ãããŒãã®å©ç¹ã®1ã€ã¯ïŒã¯ã©ãŠããµãŒãã¹ãããã€ããŒã«é¢ä¿ãªãïŒåŒŸåæ§ãšææã§ãã å¿
èŠã«å¿ããŠãªãœãŒã¹ãåŒãä»ããå®éã«æ¶è²»ããããªãœãŒã¹ã«å¯Ÿããæ¯æããããã«ãããã¬ããŒãæéãéãããããšãã«ã®ã¿ã¢ã€ãã«ç¶æ
ã§ããŒããããæŽç·Žãããé«äŸ¡ãªãµãŒããŒãçµç¹ã賌å
¥ããå¿
èŠããªããªããŸãã ééã¬ããŒãã¯ãã¯ã©ãŠããžã®ç§»è¡ã«é©ããåè£ã§ãã ã¯ã©ãŠãã¬ããŒãã®æè¡çãªå©ç¹ã¯ããªã³ãã¬ãã¹ãã¯ãããžãŒãšã®çžäºéçšæ§ã§ãã SQL Server Reporting Servicesã«è©³ããéçºè
ã«ãšã£ãŠãã¯ã©ãŠãã®ã¬ããŒãããã»ã¹ã¯åŸæ¥ã®ã¬ããŒããšå€ãããŸããã
åã®èšäºã§äœæãããã¬ããŒãã¯éââåžžã«ç°¡åã§ããããã®äŸã§ã¯ãã¯ã©ãŠããžã®ã¬ããŒãã®ç§»è¡ããã»ã¹ã®æŠèŠã瀺ãããšãã§ããŸãã ãŸããã¯ã©ãŠãã¬ããŒããµãŒããŒãäœæããŸãã å€ãã¹ã¿ã€ã«ã®Windows Azure管çããŒã¿ã«ã«ç§»åããŸãã 2012幎6æäžæ¬ã«ãã¬ãã¥ãŒãšããŠçºè¡šããããã®ã§ã¯ãã¬ããŒããããŒã¿åæããŸã å®è£
ãããŠããŸããã æ°ããããŒã¿ã«ãè©Šããšããç³ãåºã«æ¥ãã§ããå Žåã¯ãäžéšã®ç·è²ã®[ãã¬ãã¥ãŒ]ãã¿ã³ãã¯ãªãã¯ããŠã[以åã®ããŒã¿ã«ã«ç§»åãã]ãéžæããŸãã å·Šäžã®[ã¬ããŒã]ãã¯ãªãã¯ããŸãã
å³1
çŸåšã®ãµãã¹ã¯ãªãã·ã§ã³ã«ã¯ã¯ã©ãŠãã¬ããŒããµãŒããŒããªããããæ°ããSQL Azureã¬ããŒããµãŒããŒãäœæããããšãææ¡ããŸãã
å³2
ã¬ããŒããµãŒãã¹ã¯ãæ¢åã®ãã¹ãŠã®Microsoftã¯ã©ãŠãããŒã¿ã»ã³ã¿ãŒã§å©çšã§ããŸãã ã¬ããŒãã®åºã«ãªãããŒã¿ãä¿åããã¯ã©ãŠãããŒã¹ã®SQL ServerããããããŒã¿ã»ã³ã¿ãŒå
ã®ãã©ãã£ãã¯ã¯ç¡æãªã®ã§ã西ãšãŒãããã»ã³ã¿ãŒïŒã¢ã ã¹ãã«ãã ïŒã§äœæããŸãã SQL Serverãäœæããå Žåãšåæ§ã«ãååã¯èªåçã«çæãããå€æŽã§ããŸããã
å³3
ãµãŒããŒç®¡çè
ã®ååãšãã¹ã¯ãŒããèšå®ããããã«ãæäŸãããŸãã
å³4
ãã®åŸããµãŒããŒã¯ã¬ããŒããåãå
¥ããŠå®è¡ããæºåãæŽããŸãã
å³5
ã¯ã©ãŠãã¬ããŒãã¯ãããŒã«ã«ããŒã«ãšåãããŒã«ïŒ SSDTã®äžéšãšããŠã®ã¬ããŒããã¶ã€ããŒã ã¬ããŒããã«ã㌠ïŒã«ãã£ãŠäœæãããŸãã äž»ãªæ©èœã¯ããã®ããŒã¿ãœãŒã¹ãWindows Azure SQLããŒã¿ããŒã¹ïŒSQL AzureïŒã§ãããããŒã«ã«ã¬ããŒããçµã¿èŸŒã¿ã®æ§æå¯èœãªããŒã¿ãœãŒã¹ããµããŒãããŠããããšã§ãã
å³6
ã芧ã®ãšãããSQL Azureããããã®éã«ååšããŸããããã«ãããã¯ã©ãŠãããã®ããŒã¿ã䜿çšããŠãããŒã«ã«ã¬ããŒããµãŒããŒã§ã¬ããŒããå®è¡ããå Žåã®ãã€ããªããã·ããªãªããŸãã¯å¿
èŠã«å¿ããŠäžéã·ããªãªãå®è£
ã§ããŸãã
ã¯ã©ãŠããšãªã³ãã¬ãã¹ã®SQL Serverã®æ©èœã«ã¯å€§ããªå
±éç¹ããããŸãããããŒã¿ãSQL AzureããååŸãããå ŽåããœãŒã¹ã¯SQL Serverã§ã¯ãªãSQL Azureã§ããå¿
èŠããããŸãã ããããªããšããããã€ã¡ã³ãã§ãšã©ãŒãçºçããŸã
ã¬ããŒãåŠçäžã«ãšã©ãŒãçºçããŸããã ãã¬ãŒã¹IDã¯f8806086-edd3-4a68-89b6-26bd33504f82ã§ãã ïŒrsProcessingAbortedïŒ
å
±æããŒã¿ã»ãã 'DataSet1'ã®å®è¡ã«å€±æããŸããã ïŒrsDataSetExecutionErrorïŒ
ãã®ã¬ããŒããµãŒããŒã«ç»é²ãããŠããªããããã®ãšãã£ã·ã§ã³ã®Reporting Servicesã§ãµããŒããããŠããªãããŒã¿æ¡åŒµæ©èœ 'SQL'ã䜿çšããããšããŸããã ïŒrsDataExtensionNotFoundïŒ
ãŸããã¬ããŒããäœæãããããŒã¿ãããŒã«ã«ããŒã¿ããŒã¹ããSQL Azureã«è»¢éããå¿
èŠããããŸãã ããã¯ã bcp ã SSIS ã DACPAC ã BACPAC ã SQL Azure Data Sync ãããã³ãããã®çµã¿åããã®5ã€ãåæããå€ãã®æ¹æ³ã䜿çšããŠå®è¡ã§ããŸãã
ç°¡åã«ãããããããŒã«ã«ããŒã¿ããŒã¹ãBACPACã«ãšã¯ã¹ããŒãããæå®ãããAzure SQLãµãŒããŒã«ããã«ã€ã³ããŒããããSQL Azureã«ããŒã¿ããŒã¹ããããã€ããæ¹æ³ãéžæããŸãã
å³7
å³8
ããŒã¿ãã¯ã©ãŠãã«ç§»åããåŸãã¬ããŒãã®DataSource1æ¥ç¶ãããŒã«ã«ã®SQL Serverããã¯ã©ãŠãã«åå®è¡ããå¿
èŠããããŸãã
å³9
ããã§ã以åã®ããŒã«ã«ã¬ããŒããšåæ§ã«ãããŒã«ã«ã¬ããŒããã¯ã©ãŠãããŒã¿ã§å®è¡ãããŸãã ãµãŒããŒãžã®æ¥ç¶ãæ£åžžã«ç¢ºç«ããããšãããšã©ãŒããããã¢ãããããã蚌ææžã®CNåãæž¡ãããå€ãšäžèŽããªãå Žåã¯ãæ¥ç¶æååãè¿œå ããŸãå³9; TrustServerCertificate = Trueã
ããŒã«ã«ã®ã¬ããŒããµãŒããŒããã¯ã©ãŠãã«ã¬ããŒãã移åããŸãã ãããè¡ãæãç°¡åãªæ¹æ³ã¯ãéçºããŒã«ïŒãã®å Žåã¯SSDTïŒããçŽæ¥ã€ã³ã¹ããŒã«ããããšã§ãã ãããžã§ã¯ãããããã£ïŒãããžã§ã¯ã-> <ãããžã§ã¯ãå>ããããã£ïŒã§ãã¿ãŒã²ãããµãŒããŒã®URLãšããŠãAzure管çããŒã¿ã«ã§ç¢ºèªããã¯ã©ãŠãã¬ããŒããµãŒããŒã®ååãæå®ããŸãïŒå³5ïŒã éåžžãå
±æããŒã¿ãœãŒã¹ãšããŒã¿ã»ãããé
眮ããããã©ã«ããŒã®ååãæå®ããŸãã OverwriteDatasetsããã³OverwriteDatasourcesããããã£ãtrueã«å€æŽããŸãã ãã以å€ã®å Žåãåãååã®ããŒã¿ã»ãã/ããŒã¿ãœãŒã¹ããã®ãã©ã«ããŒã«æ¢ã«ååšããå Žåãããã¯å®äºããŸããã
-å±éã®éå§ïŒãããžã§ã¯ãïŒã¬ããŒãProject1ãæ§æïŒãããã°-iijsstvk71.reporting.windows.net/ReportServerãžã®å±é
ããŒã¿ãœãŒã¹ '/ Data Sources / DataSource1'ãå±éããŠããŸãã
èŠåïŒããŒã¿ãœãŒã¹DataSource1ã¯æ¢ã«ååšããOverwriteDataSourcesãæå®ãããŠããªãããããµãŒããŒã«å±éã§ããŸããã
ããŒã¿ã»ãã '/ Datasets / DataSet1'ãå±éããŠããŸãã
èŠåïŒããŒã¿ã»ããDataSet1ã¯æ¢ã«ååšããOverwriteDatasetsãæå®ãããŠããªãããããµãŒããŒã«å±éã§ããŸããã
å³10
SSDTã¡ãã¥ãŒããŒã§ã[ãã«ã]é
ç®ã«ç§»åãã[<ãããžã§ã¯ãå>ã®å±é]ãéžæããŸãã
å³11
AzureããŒã¿ã«->ã¬ããŒãã«ç§»åãããšãå³5ãšæ¯èŒããŠãå³10ã®é åºã§ã¬ããŒããµãŒããŒã«ããŒã¿ãœãŒã¹ãããŒã¿ã»ãããããã³ã¬ããŒãProject1ãã©ã«ããŒã圢æãããŠããããšãããããŸãã
å³12
Report Project1ãã©ã«ããŒã«ç§»åãããšãæ°ããå ±åãããã¬ããŒãã衚瀺ãããŸãã
å³13
ãããã¡ãã¥ãŒã®[ã¢ããããŒã]ãã¿ã³ã«æ³šæããŠãã ããã ã¬ããŒãããæåãã§å®äºããããšãã§ããŸãã SSDT / Report Builderã«é Œãå¿
èŠã¯ãããŸããã ããŒã¿ã«ã§ããŒã¿ãœãŒã¹ãçŽæ¥äœæããããšãã§ããŸã-[ããŒã¿ãœãŒã¹ã®äœæ]ã¡ãã¥ãŒãã¿ã³ã ã¬ããŒããã¯ãªãã¯ããŠãã¬ããŒããµãŒããŒã§ã®èªèšŒçšã®ãã°ã€ã³ãšãã¹ã¯ãŒããå
¥åããŸãã
å³14
次ã«ãã¬ããŒããµãŒããŒãããŒã¿ãœãŒã¹ã«æ¥ç¶ããããã«ã¢ã«ãŠã³ããå
¥åããããã«æ±ããããŸãã
å³15
ãããŠãããå
¥åãããšãã¯ã©ãŠãã§ããªãã¿ã®ã¬ããŒããååŸããŸãã
å³16
ãŠãŒã¶ãŒã¯ãã¢ãã¬ã¹ããŒã«è¡šç€ºãããURLïŒ iijsstvk71.reporting.windows.net/ReportServer/Pages/ReportViewer.aspx?/Report%20Project1/Report1ãªã©ïŒããã¬ããŒãã«çŽæ¥ã¢ã¯ã»ã¹ã§ããŸãã Azure ReportingãµãŒããŒãSQL Azureã«ã¢ã¯ã»ã¹ããã¢ã«ãŠã³ãã絶ããå
¥åããªãããã«ããã«ã¯ãããŒã¿ãœãŒã¹ããããã£ã«ä¿åã§ããŸãã ãããè¡ãã«ã¯ãå³12ã§[ããŒã¿ãœãŒã¹]ãã©ã«ããŒã«ç§»åãã[ããŒã¿ãœãŒã¹1]ãã¯ãªãã¯ããŸããè³æ Œæ
å ±ãã¬ããŒããµãŒããŒã«å®å
šã«ä¿åãããå
¥åãããããšã«æ³šæããŠãã ããã ãã®å Žåãå³15ã®ãŠã£ã³ããŠã¯è¡šç€ºãããŸããã
å³17
ReportViewer Controlã䜿çšããå Žåã ããã«ç€ºãããã«ãèªèšŒCookieã䜿çšããŠAzure Reporting Serverå³14ã«ã¢ã¯ã»ã¹ããããã®ã¢ã«ãŠã³ããæ瀺çã«å
¥åããããšãåé¿ã§ããŸã ã
ã泚æ
2012幎8æ1æ¥ãããç¡æãã¬ãã¥ãŒã¹ããŒãžã«ãã£ãWindows Azure SQL Reportingãåæ¥éçšã§å©çšã§ããããã«ãªãããã以åã«äœæãããµãŒããŒã§äœããããã決å®ããããšãææ¡ããŸãã
å³18
ããªãã¯èšç®æ©ã䜿çšããŠã¬ãŒããç¥ãããšãã§ããŸãã
å³19