提前感谢大家。
我有一个源列,它是我的源数据库中具有VARCHAR格式的Business Key。所有字段仅包含数字值。 (太可怕了)
我想提取数据,转换格式并加载到唯一标识符格式。
我可以提取我需要的数据,执行格式转换但是不正确,以便将数据加载到我在单独的DW中准备的unique-identifier列中。
由于要导入许多其他列,我希望能够在SSIS中执行此操作。
我欢迎任何问题或答案。
由于
威尔
答案 0 :(得分:0)
请勿尝试将您的商家密钥转换为GUID。 GUID是纯粹的代理键,其主要优点是在整个分布式系统环境中都是独一无二的。在DataFlow本身中生成GUID。我是通过以下方式完成的:
*使用以下输出参数在DataFlow中创建脚本转换
*用于创建GUID的脚本源
<tr>
<td>Platform: </td>
<td><select multiple=\"multiple\" id=\"platform[]\" name=\"platform[]\" size=3>
<option value=\"PC\">PC </option>
<option value=\"PS4\">PS4 </option>
<option value=\"Xbox One\">Xbox One </option>
</select> </td>
</tr>
$artID= $_GET['artID'];
$name2 = testinput($_POST['name']);
$price2 = $_POST['price'];
$VAT2 = testinput($_POST['VAT']);
$description2 = testinput($_POST['description']);
$beschrijving2 = testinput($_POST['beschrijving']);
$foto2 = testinput($_POST['foto']);
$genre2 = testinput($_POST['genre']);
$platform2 = $_POST['platform'];
$sql = "UPDATE `producten` SET genre = \"$genre2\" , platform = \"$platform2\" , beschrijving=\"$beschrijving2\", description=\"$description2\", name = \"$name2\", price = \"$price2\", VAT = \"$VAT2\", foto = \"$foto2\" WHERE `artID` = $artID";
$qresult = $connect1 -> query($sql);