在Windows Server 2008 R2上运行Cloud SDK安装程序(或declare @tablename nvarchar(128);
-- <some code to set @tablename>
declare @sql nvarchar(500);
if object_id(N'dbo.TodaysData', N'SN') is not null
drop synonym dbo.TodaysData;
set @sql =
'create synonym dbo.TodaysData
for ' + @tablename;
execute(@sql);
select top 5
*
from
dbo.TodaysData as t
join
dbo.SomeOtherTable as s
on
s.FieldName = t.HeresHopingYourSchemaDoesntChange
)时,安装过程失败并引发以下错误(来自python.exe):
激活上下文生成失败,对于&#34; C:\ Program Files(x86)\ Google \ Cloud SDK \ google-cloud-sdk \ platform \ bundledpython \ python.exe&#34;。 依赖程序集Microsoft.VC90.CRT,processorArchitecture =&#34; x86&#34;,publicKeyToken =&#34; 1fc8b3b9a1e18e3b&#34;,type =&#34; win32&#34;,version =&#34; 9.0.21022.8 &#34;无法找到。 请使用sxstrace.exe进行详细诊断。
答案 0 :(得分:1)
要在Server 2008 R2上成功安装/更新gcloud命令行工具,Microsoft Visual C ++ 2008 SP1可再发行组件包(x86)对于包含必需的库至关重要。
可以从https://www.microsoft.com/en-us/download/details.aspx?id=5582
安装如果你正在或更新到64位python,你需要安装64位版本的可再发行组件: https://www.microsoft.com/en-us/download/details.aspx?id=2092