begin
for i := 1 to pConn.ConnectionProperties.Count do
begin
sPropertyName := pConn.ConnectionProperties.item(i).Name;
if sPropertyName = 'Mode' then
pConn.ConnectionProperties.item(i).Value := iMode;
if sPropertyName = 'Row Delimiter' then //定义行分隔符为回车换行
pConn.ConnectionProperties.item(i).Value := #13+#10;
if sPropertyName = 'File Format' then
pConn.ConnectionProperties.item(i).Value := 1;
if sPropertyName = 'Column Delimiter' then //定义列分隔符为TAB键
pConn.ConnectionProperties.item(i).Value := #9;
if sPropertyName = 'File Type' then
pConn.ConnectionProperties.item(i).Value := 1;
if sPropertyName = 'Skip Rows' then
pConn.ConnectionProperties.item(i).Value := 0;
if sPropertyName = 'Text Qualifier' then
pConn.ConnectionProperties.item(i).Value := '''';
if sPropertyName = 'First Row Column Name' then
pConn.ConnectionProperties.item(i).Value := false;
if sPropertyName = 'Column Names' then
dts_conn2.ConnectionProperties.item(i).Value := 'BrandCode,BrandName,BrandEName,Re';
if sPropertyName = 'Number of Column' then
pConn.ConnectionProperties.item(i).Value := iNumOfColumn;
if sPropertyName = 'Text Qualifier Col Mask: 0=no, 1=yes, e.g. 0101' then
pConn.ConnectionProperties.item(i).Value := '1111';
if sPropertyName = 'Max characters per delimited column' then
pConn.ConnectionProperties.item(i).Value := 8000;
if sPropertyName = 'Blob Col Mask: 0=no, 1=yes, e.g. 0101' then
pConn.ConnectionProperties.item(i).Value := '0000';
end;
上面是文本格式定义,不知道少什么,爱新觉罗你看看吧,delphi定义的
解决方案 »
- 根据保险类型计算个人出金好公司出金 并修改数据
- 怎样写这个递归查询
- 麻烦高手帮忙看个sql的问题
- sql 中image问题:如何将image字段中的值赋给另外一个表的image字段?
- 小的分组问题,路过的进来帮下。谢谢
- 有什么工具可以把EXCEl文件导入生成SQL表结构
- 敬请高手指点:如何改进视图性能,使其全面取到数据
- 怎样导出成VF 文件?????
- 救命~~,请问谁有在客户端成功注册sqldmo.dll的经历,请进(打包安装)!!!!!!
- 老师布置了一个作业。让写一个shell,可是我对这个有点迷茫呀谁能给我解释一下吗?【
- 求助:在bat文件中调用osql执行TRUCATE操作,返回-100的问题
- "Invalid argument" 问题 -----急,急, 急,在线等待.
那有了解ConnectionProperties的所有属性的么?我查不到它所有的属性都包括什么,
所以我无法知道我缺少哪个没定义,能否告知所有的属性,我在微软的帮助上没有找到,
如果有找到的给我个网址也成~