//字串帶入
List
foreach (string item in RadioListB)
{
if (item != "")
{
((RadioButton)grid_view.Rows[Convert.ToInt16(item)].FindControl("RadioButton2")).Checked = true;
}
}



| 命令 | Keep-identity 限定詞 | 限定詞類型 |
|---|---|---|
| bcp | -E | 參數 |
| BULK INSERT | KEEPIDENTITY | 引數 |
| INSERT ...SELECT * FROM OPENROWSET(BULK...) | KEEPIDENTITY | 資料表提示 |
USE AdventureWorks;
GO
SELECT * INTO HumanResources.myDepartment
FROM HumanResources.Department
WHERE 1=0;
GO
SELECT * FROM HumanResources.myDepartment;
myDepartment 所依據的 Department 資料表已將 IDENTITY_INSERT 設為 OFF。因此,若要將資料匯入識別資料行,您必須指定 KEEPIDENTITY 或 -E。如需資料表的結構描述,請參閱<Department 資料表 (AdventureWorks)>。HumanResources.Department 資料表中大量匯出的原生格式資料。若要建立資料檔,請在 Microsoft Windows 命令提示字元中,輸入: bcp AdventureWorks.HumanResources.Department out myDepartment-n.Dat -n -T
myDepartment-f-x-n.Xml,而它是使用原生資料格式。此範例使用 bcp 從 AdventureWorks 資料庫的 HumanResources.Department 資料表來產生這個格式檔案。在 Windows 命令提示字元中,輸入:bcp AdventureWorks.HumanResources.Department format nul -n -x -f myDepartment-f-n-x.Xml -T