Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
share /
doc /
freetds-0.91 /
reference /
[ HOME SHELL ]
Name
Size
Permission
Action
a00001.html
5.09
KB
-rw-r--r--
a00002.html
5.12
KB
-rw-r--r--
a00003.html
7.5
KB
-rw-r--r--
a00004.html
11.21
KB
-rw-r--r--
a00005.html
5.16
KB
-rw-r--r--
a00006.html
4.77
KB
-rw-r--r--
a00007.html
7.99
KB
-rw-r--r--
a00008.html
9.54
KB
-rw-r--r--
a00009.html
7.7
KB
-rw-r--r--
a00010.html
7.39
KB
-rw-r--r--
a00011.html
5.04
KB
-rw-r--r--
a00012.html
5.05
KB
-rw-r--r--
a00013.html
5.7
KB
-rw-r--r--
a00014.html
8.35
KB
-rw-r--r--
a00015.html
5.61
KB
-rw-r--r--
a00016.html
5.03
KB
-rw-r--r--
a00017.html
4.74
KB
-rw-r--r--
a00018.html
5.38
KB
-rw-r--r--
a00019.html
6.01
KB
-rw-r--r--
a00020.html
7.43
KB
-rw-r--r--
a00021.html
8.25
KB
-rw-r--r--
a00022.html
8.35
KB
-rw-r--r--
a00023.html
5.06
KB
-rw-r--r--
a00024.html
5.04
KB
-rw-r--r--
a00025.html
5.4
KB
-rw-r--r--
a00026.html
4.76
KB
-rw-r--r--
a00027.html
5.73
KB
-rw-r--r--
a00028.html
5.74
KB
-rw-r--r--
a00029.html
6.59
KB
-rw-r--r--
a00030.html
6.67
KB
-rw-r--r--
a00031.html
15.43
KB
-rw-r--r--
a00032.html
9.3
KB
-rw-r--r--
a00033.html
5.06
KB
-rw-r--r--
a00034.html
9.57
KB
-rw-r--r--
a00035.html
6.28
KB
-rw-r--r--
a00036.html
5.65
KB
-rw-r--r--
a00037.html
5.7
KB
-rw-r--r--
a00038.html
9.53
KB
-rw-r--r--
a00039.html
16.2
KB
-rw-r--r--
a00040.html
5.08
KB
-rw-r--r--
a00041.html
8.6
KB
-rw-r--r--
a00042.html
5
KB
-rw-r--r--
a00043.html
6.47
KB
-rw-r--r--
a00044.html
5.66
KB
-rw-r--r--
a00045.html
7.19
KB
-rw-r--r--
a00046.html
7.21
KB
-rw-r--r--
a00047.html
5.18
KB
-rw-r--r--
a00048.html
5.18
KB
-rw-r--r--
a00049.html
9.66
KB
-rw-r--r--
a00050.html
5.12
KB
-rw-r--r--
a00051.html
5.17
KB
-rw-r--r--
a00052.html
5.16
KB
-rw-r--r--
a00053.html
5.23
KB
-rw-r--r--
a00054.html
8.51
KB
-rw-r--r--
a00055.html
5.03
KB
-rw-r--r--
a00056.html
5.04
KB
-rw-r--r--
a00057.html
6.35
KB
-rw-r--r--
a00058.html
8.61
KB
-rw-r--r--
a00059.html
5.04
KB
-rw-r--r--
a00060.html
4.73
KB
-rw-r--r--
a00061.html
5.34
KB
-rw-r--r--
a00062.html
5.36
KB
-rw-r--r--
a00063.html
5.36
KB
-rw-r--r--
a00064.html
5.03
KB
-rw-r--r--
a00065.html
5.04
KB
-rw-r--r--
a00066.html
5.03
KB
-rw-r--r--
a00067.html
5.66
KB
-rw-r--r--
a00068.html
5.86
KB
-rw-r--r--
a00069.html
5.57
KB
-rw-r--r--
a00070.html
6.18
KB
-rw-r--r--
a00071.html
5.33
KB
-rw-r--r--
a00072.html
5.33
KB
-rw-r--r--
a00073.html
7.31
KB
-rw-r--r--
a00074.html
5.1
KB
-rw-r--r--
a00075.html
6.99
KB
-rw-r--r--
a00076.html
4.98
KB
-rw-r--r--
a00077.html
20.31
KB
-rw-r--r--
a00078.html
5.29
KB
-rw-r--r--
a00079.html
5.86
KB
-rw-r--r--
a00080.html
5.73
KB
-rw-r--r--
a00081.html
5
KB
-rw-r--r--
a00082.html
4.98
KB
-rw-r--r--
a00083.html
5.08
KB
-rw-r--r--
a00084.html
6.27
KB
-rw-r--r--
a00085.html
5.62
KB
-rw-r--r--
a00086.html
5.03
KB
-rw-r--r--
a00087.html
5.1
KB
-rw-r--r--
a00088.html
6.03
KB
-rw-r--r--
a00089.html
5.34
KB
-rw-r--r--
a00090.html
7.45
KB
-rw-r--r--
a00091.html
5.65
KB
-rw-r--r--
a00092.html
21.3
KB
-rw-r--r--
a00093.html
7.92
KB
-rw-r--r--
a00094.html
15.52
KB
-rw-r--r--
a00095.html
6.38
KB
-rw-r--r--
a00096.html
11.71
KB
-rw-r--r--
a00097.html
6.29
KB
-rw-r--r--
a00098.html
13.98
KB
-rw-r--r--
a00099.html
4.82
KB
-rw-r--r--
a00100.html
5.03
KB
-rw-r--r--
a00101.html
9.82
KB
-rw-r--r--
a00102.html
6.02
KB
-rw-r--r--
a00103.html
5.88
KB
-rw-r--r--
a00104.html
5.42
KB
-rw-r--r--
a00105.html
5.32
KB
-rw-r--r--
a00106.html
5.34
KB
-rw-r--r--
a00107.html
10.46
KB
-rw-r--r--
a00108.html
7.39
KB
-rw-r--r--
a00109.html
8.06
KB
-rw-r--r--
a00110.html
5.05
KB
-rw-r--r--
a00111.html
4.84
KB
-rw-r--r--
a00112.html
5.32
KB
-rw-r--r--
a00113.html
5.05
KB
-rw-r--r--
a00114.html
5.27
KB
-rw-r--r--
a00115.html
8.27
KB
-rw-r--r--
a00116.html
6.65
KB
-rw-r--r--
a00117.html
5.45
KB
-rw-r--r--
a00118.html
8.51
KB
-rw-r--r--
a00119.html
6.04
KB
-rw-r--r--
a00120.html
5.28
KB
-rw-r--r--
a00121.html
5.03
KB
-rw-r--r--
a00122.html
23.85
KB
-rw-r--r--
a00123.html
8.08
KB
-rw-r--r--
a00124.html
7.49
KB
-rw-r--r--
a00125.html
5.39
KB
-rw-r--r--
a00126.html
6.16
KB
-rw-r--r--
a00127.html
9.79
KB
-rw-r--r--
a00128.html
5.04
KB
-rw-r--r--
a00129.html
5.05
KB
-rw-r--r--
a00130.html
6.97
KB
-rw-r--r--
a00131.html
5.07
KB
-rw-r--r--
a00132.html
4.74
KB
-rw-r--r--
a00133.html
5.35
KB
-rw-r--r--
a00134.html
5.04
KB
-rw-r--r--
a00135.html
5.61
KB
-rw-r--r--
a00136.html
5.05
KB
-rw-r--r--
a00137.html
5.04
KB
-rw-r--r--
a00138.html
5.07
KB
-rw-r--r--
a00139_source.html
11.43
KB
-rw-r--r--
a00140_source.html
80.94
KB
-rw-r--r--
a00141_source.html
22.01
KB
-rw-r--r--
a00142_source.html
29.78
KB
-rw-r--r--
a00143_source.html
22.17
KB
-rw-r--r--
a00144_source.html
22.68
KB
-rw-r--r--
a00145_source.html
7.38
KB
-rw-r--r--
a00146_source.html
11.99
KB
-rw-r--r--
a00147_source.html
7.82
KB
-rw-r--r--
a00148_source.html
7.08
KB
-rw-r--r--
a00149_source.html
7.28
KB
-rw-r--r--
a00150_source.html
6.43
KB
-rw-r--r--
a00151_source.html
17.88
KB
-rw-r--r--
a00152_source.html
10.36
KB
-rw-r--r--
a00153_source.html
25.08
KB
-rw-r--r--
a00154_source.html
10.19
KB
-rw-r--r--
a00155_source.html
7.84
KB
-rw-r--r--
a00156.html
272.91
KB
-rw-r--r--
a00156_source.html
184.55
KB
-rw-r--r--
a00157_source.html
9.36
KB
-rw-r--r--
a00158_source.html
8.23
KB
-rw-r--r--
a00159.html
261.4
KB
-rw-r--r--
a00159_source.html
204.45
KB
-rw-r--r--
a00160_source.html
8.71
KB
-rw-r--r--
a00161_source.html
30.54
KB
-rw-r--r--
a00162_source.html
25.37
KB
-rw-r--r--
a00163_source.html
15.5
KB
-rw-r--r--
a00164_source.html
18.94
KB
-rw-r--r--
a00165_source.html
71.63
KB
-rw-r--r--
a00166_source.html
14.86
KB
-rw-r--r--
a00167_source.html
12.51
KB
-rw-r--r--
a00168_source.html
11.83
KB
-rw-r--r--
a00175_source.html
6.25
KB
-rw-r--r--
a00178_source.html
7.03
KB
-rw-r--r--
a00180_source.html
6.83
KB
-rw-r--r--
a00182_source.html
6.38
KB
-rw-r--r--
a00184_source.html
9.44
KB
-rw-r--r--
a00190.html
20.94
KB
-rw-r--r--
a00191_source.html
47.93
KB
-rw-r--r--
a00192.html
90.18
KB
-rw-r--r--
a00195_source.html
55.99
KB
-rw-r--r--
a00209_source.html
15.62
KB
-rw-r--r--
a00214_source.html
15.98
KB
-rw-r--r--
a00238_source.html
73.42
KB
-rw-r--r--
a00241_source.html
18.27
KB
-rw-r--r--
a00245_source.html
15.45
KB
-rw-r--r--
a00261_source.html
19.73
KB
-rw-r--r--
a00264_source.html
11.21
KB
-rw-r--r--
a00272_source.html
11.11
KB
-rw-r--r--
a00277_source.html
27.6
KB
-rw-r--r--
a00278_source.html
4.27
KB
-rw-r--r--
a00281_source.html
7.24
KB
-rw-r--r--
a00282_source.html
9.89
KB
-rw-r--r--
a00285.html
12.8
KB
-rw-r--r--
a00286.html
285.63
KB
-rw-r--r--
a00287.html
34.7
KB
-rw-r--r--
a00288.html
63.13
KB
-rw-r--r--
a00289.html
38.17
KB
-rw-r--r--
a00290.html
46.19
KB
-rw-r--r--
a00291.html
10.64
KB
-rw-r--r--
a00292.html
58.3
KB
-rw-r--r--
a00293.html
4.94
KB
-rw-r--r--
a00294.html
4.45
KB
-rw-r--r--
a00295.html
24.44
KB
-rw-r--r--
a00296.html
18.52
KB
-rw-r--r--
a00297.html
31.72
KB
-rw-r--r--
a00298.html
41.55
KB
-rw-r--r--
a00299.html
41.1
KB
-rw-r--r--
a00300.html
32.41
KB
-rw-r--r--
a00301.html
78.43
KB
-rw-r--r--
a00302.html
34.37
KB
-rw-r--r--
a00303.html
17.36
KB
-rw-r--r--
a00304.html
53.65
KB
-rw-r--r--
a00305.html
7.01
KB
-rw-r--r--
a00306.html
9.88
KB
-rw-r--r--
a00307.html
4.19
KB
-rw-r--r--
a00309.html
4.59
KB
-rw-r--r--
a00310.html
4.53
KB
-rw-r--r--
a00311.html
6.01
KB
-rw-r--r--
a00312.html
8.16
KB
-rw-r--r--
a00313.html
4.56
KB
-rw-r--r--
a00314.html
4.37
KB
-rw-r--r--
a00315.html
6.22
KB
-rw-r--r--
a00316.html
7.11
KB
-rw-r--r--
a00317.html
6.13
KB
-rw-r--r--
a00318.html
5.97
KB
-rw-r--r--
a00319.html
4.54
KB
-rw-r--r--
a00320.html
4.55
KB
-rw-r--r--
a00321.html
4.88
KB
-rw-r--r--
a00322.html
6.47
KB
-rw-r--r--
a00323.html
4.88
KB
-rw-r--r--
a00324.html
4.53
KB
-rw-r--r--
a00325.html
4.35
KB
-rw-r--r--
a00326.html
4.71
KB
-rw-r--r--
a00327.html
5.08
KB
-rw-r--r--
a00328.html
5.96
KB
-rw-r--r--
a00329.html
6.44
KB
-rw-r--r--
a00330.html
6.53
KB
-rw-r--r--
a00331.html
4.54
KB
-rw-r--r--
a00332.html
4.53
KB
-rw-r--r--
a00333.html
4.74
KB
-rw-r--r--
a00334.html
4.36
KB
-rw-r--r--
a00335.html
4.78
KB
-rw-r--r--
a00336.html
4.92
KB
-rw-r--r--
a00337.html
5.55
KB
-rw-r--r--
a00338.html
5.47
KB
-rw-r--r--
a00339.html
10.44
KB
-rw-r--r--
a00340.html
6.96
KB
-rw-r--r--
a00341.html
4.5
KB
-rw-r--r--
a00342.html
6.19
KB
-rw-r--r--
a00343.html
5.17
KB
-rw-r--r--
a00344.html
4.87
KB
-rw-r--r--
a00345.html
4.83
KB
-rw-r--r--
a00346.html
7.14
KB
-rw-r--r--
a00347.html
9.79
KB
-rw-r--r--
a00348.html
4.59
KB
-rw-r--r--
a00349.html
6.6
KB
-rw-r--r--
a00350.html
4.53
KB
-rw-r--r--
a00351.html
5.4
KB
-rw-r--r--
a00352.html
4.89
KB
-rw-r--r--
a00353.html
5.88
KB
-rw-r--r--
a00354.html
5.89
KB
-rw-r--r--
a00355.html
6.93
KB
-rw-r--r--
a00356.html
4.56
KB
-rw-r--r--
a00357.html
4.56
KB
-rw-r--r--
a00358.html
4.53
KB
-rw-r--r--
a00359.html
4.58
KB
-rw-r--r--
a00360.html
4.56
KB
-rw-r--r--
a00361.html
4.65
KB
-rw-r--r--
a00362.html
6.5
KB
-rw-r--r--
a00363.html
4.53
KB
-rw-r--r--
a00364.html
4.54
KB
-rw-r--r--
a00365.html
4.92
KB
-rw-r--r--
a00366.html
6.07
KB
-rw-r--r--
a00367.html
4.51
KB
-rw-r--r--
a00368.html
4.35
KB
-rw-r--r--
a00369.html
4.7
KB
-rw-r--r--
a00370.html
4.69
KB
-rw-r--r--
a00371.html
4.69
KB
-rw-r--r--
a00372.html
4.53
KB
-rw-r--r--
a00373.html
4.52
KB
-rw-r--r--
a00374.html
4.52
KB
-rw-r--r--
a00375.html
4.84
KB
-rw-r--r--
a00376.html
4.69
KB
-rw-r--r--
a00377.html
4.87
KB
-rw-r--r--
a00378.html
5.23
KB
-rw-r--r--
a00379.html
4.7
KB
-rw-r--r--
a00380.html
4.7
KB
-rw-r--r--
a00381.html
5.87
KB
-rw-r--r--
a00382.html
4.51
KB
-rw-r--r--
a00383.html
5.77
KB
-rw-r--r--
a00384.html
4.53
KB
-rw-r--r--
a00385.html
13.22
KB
-rw-r--r--
a00386.html
4.67
KB
-rw-r--r--
a00387.html
5.08
KB
-rw-r--r--
a00388.html
4.95
KB
-rw-r--r--
a00389.html
4.54
KB
-rw-r--r--
a00390.html
4.52
KB
-rw-r--r--
a00391.html
4.57
KB
-rw-r--r--
a00392.html
5.32
KB
-rw-r--r--
a00393.html
4.74
KB
-rw-r--r--
a00394.html
4.56
KB
-rw-r--r--
a00395.html
4.53
KB
-rw-r--r--
a00396.html
4.96
KB
-rw-r--r--
a00397.html
4.74
KB
-rw-r--r--
a00398.html
5.97
KB
-rw-r--r--
a00399.html
4.7
KB
-rw-r--r--
a00400.html
11.46
KB
-rw-r--r--
a00402.html
6.25
KB
-rw-r--r--
a00403.html
9.98
KB
-rw-r--r--
a00404.html
5.08
KB
-rw-r--r--
a00405.html
6.84
KB
-rw-r--r--
a00406.html
5.32
KB
-rw-r--r--
a00407.html
9.82
KB
-rw-r--r--
a00408.html
4.39
KB
-rw-r--r--
a00409.html
4.52
KB
-rw-r--r--
a00410.html
5.41
KB
-rw-r--r--
a00411.html
4.92
KB
-rw-r--r--
a00412.html
4.86
KB
-rw-r--r--
a00413.html
4.8
KB
-rw-r--r--
a00414.html
4.76
KB
-rw-r--r--
a00415.html
4.72
KB
-rw-r--r--
a00416.html
7.54
KB
-rw-r--r--
a00417.html
5.96
KB
-rw-r--r--
a00418.html
6.6
KB
-rw-r--r--
a00419.html
4.54
KB
-rw-r--r--
a00420.html
4.37
KB
-rw-r--r--
a00421.html
4.72
KB
-rw-r--r--
a00422.html
4.56
KB
-rw-r--r--
a00423.html
4.69
KB
-rw-r--r--
a00424.html
6.42
KB
-rw-r--r--
a00425.html
5.5
KB
-rw-r--r--
a00426.html
4.74
KB
-rw-r--r--
a00427.html
6.43
KB
-rw-r--r--
a00428.html
5.12
KB
-rw-r--r--
a00429.html
4.72
KB
-rw-r--r--
a00430.html
4.54
KB
-rw-r--r--
a00431.html
12.55
KB
-rw-r--r--
a00432.html
6.55
KB
-rw-r--r--
a00433.html
5.39
KB
-rw-r--r--
a00434.html
4.72
KB
-rw-r--r--
a00435.html
5.06
KB
-rw-r--r--
a00436.html
6.28
KB
-rw-r--r--
a00437.html
4.54
KB
-rw-r--r--
a00438.html
4.54
KB
-rw-r--r--
a00439.html
5.63
KB
-rw-r--r--
a00440.html
4.52
KB
-rw-r--r--
a00441.html
4.35
KB
-rw-r--r--
a00442.html
4.71
KB
-rw-r--r--
a00443.html
4.54
KB
-rw-r--r--
a00444.html
4.86
KB
-rw-r--r--
a00445.html
4.54
KB
-rw-r--r--
a00446.html
4.53
KB
-rw-r--r--
a00447.html
4.56
KB
-rw-r--r--
all_5f.html
18.52
KB
-rw-r--r--
all_62.html
18.29
KB
-rw-r--r--
all_63.html
10.46
KB
-rw-r--r--
all_64.html
153.11
KB
-rw-r--r--
all_65.html
1.16
KB
-rw-r--r--
all_66.html
1.09
KB
-rw-r--r--
all_68.html
1.89
KB
-rw-r--r--
all_69.html
3.73
KB
-rw-r--r--
all_6c.html
1.47
KB
-rw-r--r--
all_6d.html
3.15
KB
-rw-r--r--
all_6e.html
3.63
KB
-rw-r--r--
all_6f.html
2.63
KB
-rw-r--r--
all_70.html
5.48
KB
-rw-r--r--
all_71.html
3.1
KB
-rw-r--r--
all_72.html
5.05
KB
-rw-r--r--
all_73.html
4.98
KB
-rw-r--r--
all_74.html
64.33
KB
-rw-r--r--
all_75.html
1.52
KB
-rw-r--r--
all_77.html
1.52
KB
-rw-r--r--
all_79.html
1.15
KB
-rw-r--r--
annotated.html
20.04
KB
-rw-r--r--
classes_5f.html
14.23
KB
-rw-r--r--
classes_62.html
1.41
KB
-rw-r--r--
classes_63.html
2.69
KB
-rw-r--r--
classes_64.html
5.54
KB
-rw-r--r--
classes_66.html
1.09
KB
-rw-r--r--
classes_6c.html
1.09
KB
-rw-r--r--
classes_6d.html
1.68
KB
-rw-r--r--
classes_6e.html
1.71
KB
-rw-r--r--
classes_70.html
1.98
KB
-rw-r--r--
classes_73.html
1.71
KB
-rw-r--r--
classes_74.html
17.73
KB
-rw-r--r--
classes.html
17.43
KB
-rw-r--r--
close.png
273
B
-rw-r--r--
defines_62.html
1.16
KB
-rw-r--r--
defines_64.html
11.61
KB
-rw-r--r--
defines_74.html
2.67
KB
-rw-r--r--
doxygen.css
7.73
KB
-rw-r--r--
doxygen.png
1.25
KB
-rw-r--r--
enums_5f.html
1.17
KB
-rw-r--r--
enums_74.html
1.92
KB
-rw-r--r--
enumvalues_74.html
6.12
KB
-rw-r--r--
files_62.html
1.08
KB
-rw-r--r--
files_64.html
1.09
KB
-rw-r--r--
files_73.html
1.09
KB
-rw-r--r--
files_74.html
1.08
KB
-rw-r--r--
files.html
12.78
KB
-rw-r--r--
functions_5f.html
4.67
KB
-rw-r--r--
functions_62.html
16.6
KB
-rw-r--r--
functions_64.html
135.7
KB
-rw-r--r--
functions_72.html
1.15
KB
-rw-r--r--
functions_74.html
29.48
KB
-rw-r--r--
functions.html
16.38
KB
-rw-r--r--
functions_vars.html
16.3
KB
-rw-r--r--
globals_0x62.html
7.9
KB
-rw-r--r--
globals_0x64.html
32.68
KB
-rw-r--r--
globals_0x72.html
5.19
KB
-rw-r--r--
globals_0x74.html
16.61
KB
-rw-r--r--
globals_defs.html
8.37
KB
-rw-r--r--
globals_enum.html
4.98
KB
-rw-r--r--
globals_eval.html
6.31
KB
-rw-r--r--
globals_func_0x62.html
7.76
KB
-rw-r--r--
globals_func_0x64.html
29.59
KB
-rw-r--r--
globals_func_0x72.html
5.15
KB
-rw-r--r--
globals_func_0x74.html
12.83
KB
-rw-r--r--
globals_func.html
6.13
KB
-rw-r--r--
globals.html
6.27
KB
-rw-r--r--
globals_type.html
5.87
KB
-rw-r--r--
globals_vars.html
4.69
KB
-rw-r--r--
index.html
5.46
KB
-rw-r--r--
installdox
2.52
KB
-rw-r--r--
modules.html
5.2
KB
-rw-r--r--
nomatches.html
461
B
-rw-r--r--
pages.html
4.01
KB
-rw-r--r--
search.css
3.75
KB
-rw-r--r--
search.js
21.65
KB
-rw-r--r--
search.png
527
B
-rw-r--r--
tab_b.gif
35
B
-rw-r--r--
tab_l.gif
706
B
-rw-r--r--
tab_r.gif
2.52
KB
-rw-r--r--
tabs.css
1.8
KB
-rw-r--r--
typedefs_64.html
1.56
KB
-rw-r--r--
typedefs_74.html
4.85
KB
-rw-r--r--
variables_62.html
1.18
KB
-rw-r--r--
variables_63.html
8.54
KB
-rw-r--r--
variables_64.html
2.24
KB
-rw-r--r--
variables_65.html
1.16
KB
-rw-r--r--
variables_68.html
1.89
KB
-rw-r--r--
variables_69.html
3.73
KB
-rw-r--r--
variables_6c.html
1.18
KB
-rw-r--r--
variables_6d.html
2.27
KB
-rw-r--r--
variables_6e.html
2.72
KB
-rw-r--r--
variables_6f.html
2.63
KB
-rw-r--r--
variables_70.html
4.29
KB
-rw-r--r--
variables_71.html
3.1
KB
-rw-r--r--
variables_72.html
4.69
KB
-rw-r--r--
variables_73.html
3.76
KB
-rw-r--r--
variables_74.html
4.88
KB
-rw-r--r--
variables_75.html
1.52
KB
-rw-r--r--
variables_77.html
1.52
KB
-rw-r--r--
variables_79.html
1.15
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : a00288.html
<!-- This comment will put IE 6, 7 and 8 in quirks mode --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>FreeTDS API: Bulk copy functions</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javaScript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.6.3 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <img id="MSearchSelect" src="search/search.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </div> </li> </ul> </div> </div> <div class="contents"> <h1>Bulk copy functions<br/> <small> [<a class="el" href="a00285.html">The db-lib API</a>]</small> </h1> <p>Functions to bulk-copy (a/k/a <em>bcp</em>) data to/from the database. <a href="#_details">More...</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Modules</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00289.html">Internal bcp functions</a></td></tr> <p><tr><td class="mdescLeft"> </td><td class="mdescRight"><p>Static functions internal to the bcp library. </p> <br/></td></tr> </p> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">DBINT </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01">bcp_batch</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Commit a set of rows to the table. <a href="#gaa23f8e5c7f437a94746c90292dd1cb01"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35">bcp_bind</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, BYTE *varaddr, int prefixlen, DBINT varlen, BYTE *terminator, int termlen, int vartype, int table_column)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Bind a program host variable to a database column. <a href="#gaf08c7f8e74ddf23b83800bc378821b35"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#ga0ed03c69e698336d015bb315ad755fd5">bcp_colfmt</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, int host_colnum, int host_type, int host_prefixlen, DBINT host_collen, const BYTE *host_term, int host_termlen, int table_colnum)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Specify the format of a datafile prior to writing to a table. <a href="#ga0ed03c69e698336d015bb315ad755fd5"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#gaf13b2bb12b4200752718f3a3face3870">bcp_colfmt_ps</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, int host_colnum, int host_type, int host_prefixlen, DBINT host_collen, BYTE *host_term, int host_termlen, int table_colnum, <a class="el" href="a00064.html">DBTYPEINFO</a> *typeinfo)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Specify the format of a host file for bulk copy purposes, with precision and scale support for numeric and decimal columns. <a href="#gaf13b2bb12b4200752718f3a3face3870"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#gae41d196a22c544d66212dacc5b555791">bcp_collen</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, DBINT varlen, int table_column)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the length of a host variable to be written to a table. <a href="#gae41d196a22c544d66212dacc5b555791"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#ga6498235e4ef8e41ea43b01494b28998d">bcp_colptr</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, BYTE *colptr, int table_column)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Override <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a> by pointing to a different host variable. <a href="#ga6498235e4ef8e41ea43b01494b28998d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#ga330b9f1028f856a9eec5115550bcb4f7">bcp_columns</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, int host_colcount)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Indicate how many columns are to be found in the datafile. <a href="#ga330b9f1028f856a9eec5115550bcb4f7"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#ga244547855b41788fa3a67756956fbc81">bcp_control</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, int field, DBINT value)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set BCP options for uploading a datafile. <a href="#ga244547855b41788fa3a67756956fbc81"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">DBINT </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65">bcp_done</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Conclude the transfer of data from program variables. <a href="#ga8b85f79f53a62ac7a728fe626d609b65"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#ga7a184158b27a50f713e9cfae3b746209">bcp_exec</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, DBINT *rows_copied)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Write a datafile to a table. <a href="#ga7a184158b27a50f713e9cfae3b746209"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">DBBOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#ga220f6b043602da1028f98dacb2fd00c0">bcp_getl</a> (<a class="el" href="a00070.html">LOGINREC</a> *login)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">See if <a class="el" href="a00285.html#ga5a626d228e82be0af8449d2b8c278241" title="Enable (or prevent) bcp operations for connections made with a login.">BCP_SETL()</a> was used to set the <a class="el" href="a00070.html">LOGINREC</a> for BCP work. <a href="#ga220f6b043602da1028f98dacb2fd00c0"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#gada8e987c4a6225b9276c05ba3a4f47a0">bcp_init</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, const char *tblname, const char *hfile, const char *errfile, int direction)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Prepare for bulk copy operation on a table. <a href="#gada8e987c4a6225b9276c05ba3a4f47a0"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#gafec3feb5bac1cb33545ba01efb0a67b8">bcp_options</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, int option, BYTE *value, int valuelen)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set "hints" for uploading a file. <a href="#gafec3feb5bac1cb33545ba01efb0a67b8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#ga963c5e38bca7668afc57f5cc123d10fb">bcp_readfmt</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc, const char filename[])</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Read a format definition file. <a href="#ga963c5e38bca7668afc57f5cc123d10fb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">RETCODE </td><td class="memItemRight" valign="bottom"><a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40">bcp_sendrow</a> (<a class="el" href="a00098.html">DBPROCESS</a> *dbproc)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Write data in host variables to the table. <a href="#gaf1130ac97f6af55e86ec70b0aa4f5b40"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Functions to bulk-copy (a/k/a <em>bcp</em>) data to/from the database. </p> <hr/><h2>Function Documentation</h2> <a class="anchor" id="gaa23f8e5c7f437a94746c90292dd1cb01"></a><!-- doxytag: member="bcp.c::bcp_batch" ref="gaa23f8e5c7f437a94746c90292dd1cb01" args="(DBPROCESS *dbproc)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DBINT bcp_batch </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Commit a set of rows to the table. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> </table> </dd> </dl> <dl class="remark"><dt><b>Remarks:</b></dt><dd>If not called, <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a> will cause the rows to be saved. </dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Count of rows saved, or -1 on error. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> </div> </div> <a class="anchor" id="gaf08c7f8e74ddf23b83800bc378821b35"></a><!-- doxytag: member="bcp.c::bcp_bind" ref="gaf08c7f8e74ddf23b83800bc378821b35" args="(DBPROCESS *dbproc, BYTE *varaddr, int prefixlen, DBINT varlen, BYTE *terminator, int termlen, int vartype, int table_column)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_bind </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">BYTE * </td> <td class="paramname"> <em>varaddr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>prefixlen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">DBINT </td> <td class="paramname"> <em>varlen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">BYTE * </td> <td class="paramname"> <em>terminator</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>termlen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>vartype</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>table_column</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Bind a program host variable to a database column. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>varaddr</em> </td><td>address of host variable </td></tr> <tr><td valign="top"></td><td valign="top"><em>prefixlen</em> </td><td>length of any prefix found at the beginning of <em>varaddr</em>, in bytes. Use zero for fixed-length datatypes. </td></tr> <tr><td valign="top"></td><td valign="top"><em>varlen</em> </td><td>bytes of data in <em>varaddr</em>. Zero for NULL, -1 for fixed-length datatypes. </td></tr> <tr><td valign="top"></td><td valign="top"><em>terminator</em> </td><td>byte sequence that marks the end of the data in <em>varaddr</em> </td></tr> <tr><td valign="top"></td><td valign="top"><em>termlen</em> </td><td>length of <em>terminator</em> </td></tr> <tr><td valign="top"></td><td valign="top"><em>vartype</em> </td><td>datatype of the host variable </td></tr> <tr><td valign="top"></td><td valign="top"><em>table_column</em> </td><td>Nth column, starting at 1, in the table.</td></tr> </table> </dd> </dl> <dl class="remark"><dt><b>Remarks:</b></dt><dd>The order of operation is:<ul> <li><a class="el" href="a00288.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a> with <em>hfile</em> == NULL and <em>direction</em> == DB_IN.</li> <li><a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, once per column you want to write to</li> <li><a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, optionally, to commit a set of rows</li> <li><a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a> </li> </ul> </dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00288.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00288.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00288.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00288.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00288.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00288.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, bcp_moretext(), <a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> </div> </div> <a class="anchor" id="ga0ed03c69e698336d015bb315ad755fd5"></a><!-- doxytag: member="bcp.c::bcp_colfmt" ref="ga0ed03c69e698336d015bb315ad755fd5" args="(DBPROCESS *dbproc, int host_colnum, int host_type, int host_prefixlen, DBINT host_collen, const BYTE *host_term, int host_termlen, int table_colnum)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_colfmt </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>host_colnum</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>host_type</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>host_prefixlen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">DBINT </td> <td class="paramname"> <em>host_collen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const BYTE * </td> <td class="paramname"> <em>host_term</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>host_termlen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>table_colnum</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Specify the format of a datafile prior to writing to a table. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_colnum</em> </td><td>datafile column number (starting with 1, not zero). </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_type</em> </td><td>dataype token describing the data type in <em>host_colnum</em>. E.g. SYBCHAR for character data. </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_prefixlen</em> </td><td>size of the prefix in the datafile column, if any. For delimited files: zero. May be 0, 1, 2, or 4 bytes. The prefix will be read as an integer (not a character string) from the data file, and will be interpreted the data size of that column, in bytes. </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_collen</em> </td><td>maximum size of datafile column, exclusive of any prefix/terminator. Just the data, ma'am. Special values:</p> <ul> <li><b>0</b> indicates NULL.</li> <li><b>-1</b> for fixed-length non-null datatypes</li> <li><b>-1</b> for variable-length datatypes (e.g. SYBCHAR) where the length is established by a prefix/terminator. </li> </ul> </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_term</em> </td><td>the sequence of characters that will serve as a column terminator (delimiter) in the datafile. Often a tab character, but can be any string of any length. Zero indicates no terminator. Special characters:</p> <ul> <li><b>'\0'</b> terminator is an ASCII NUL.</li> <li><b>'\t'</b> terminator is an ASCII TAB.</li> <li><b>'\n'</b> terminator is an ASCII NL. </li> </ul> </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_termlen</em> </td><td>the length of <em>host_term</em>, in bytes. </td></tr> <tr><td valign="top"></td><td valign="top"><em>table_colnum</em> </td><td>Nth column, starting at 1, in the table that maps to <em>host_colnum</em>. If there is a column in the datafile that does not map to a table column, set <em>table_colnum</em> to zero.</td></tr> </table> </dd> </dl> <dl class="remark"><dt><b>Remarks:</b></dt><dd><a class="el" href="a00288.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a> is called once for each column in the datafile, as specified with <a class="el" href="a00288.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>. In so doing, you describe to FreeTDS how to parse each line of your datafile, and where to send each field.</dd></dl> <p>When a prefix or terminator is used with variable-length data, <em>host_collen</em> may have one of three values:</p> <ul> <li><b>positive</b> indicating the maximum number of bytes to be used</li> <li><b>0</b> indicating NULL</li> <li><b>-1</b> indicating no maximum; all data, as described by the prefix/terminator will be used.</li> </ul> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00288.html#gaf13b2bb12b4200752718f3a3face3870" title="Specify the format of a host file for bulk copy purposes, with precision and scale...">bcp_colfmt_ps()</a>, <a class="el" href="a00288.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00288.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00288.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00288.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00288.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, <a class="el" href="a00288.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a>, <a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow</a> </dd></dl> </div> </div> <a class="anchor" id="gaf13b2bb12b4200752718f3a3face3870"></a><!-- doxytag: member="bcp.c::bcp_colfmt_ps" ref="gaf13b2bb12b4200752718f3a3face3870" args="(DBPROCESS *dbproc, int host_colnum, int host_type, int host_prefixlen, DBINT host_collen, BYTE *host_term, int host_termlen, int table_colnum, DBTYPEINFO *typeinfo)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_colfmt_ps </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>host_colnum</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>host_type</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>host_prefixlen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">DBINT </td> <td class="paramname"> <em>host_collen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">BYTE * </td> <td class="paramname"> <em>host_term</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>host_termlen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>table_colnum</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00064.html">DBTYPEINFO</a> * </td> <td class="paramname"> <em>typeinfo</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Specify the format of a host file for bulk copy purposes, with precision and scale support for numeric and decimal columns. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_colnum</em> </td><td>datafile column number (starting with 1, not zero). </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_type</em> </td><td>dataype token describing the data type in <em>host_colnum</em>. E.g. SYBCHAR for character data. </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_prefixlen</em> </td><td>size of the prefix in the datafile column, if any. For delimited files: zero. May be 0, 1, 2, or 4 bytes. The prefix will be read as an integer (not a character string) from the data file, and will be interpreted the data size of that column, in bytes. </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_collen</em> </td><td>maximum size of datafile column, exclusive of any prefix/terminator. Just the data, ma'am. Special values:</p> <ul> <li><b>0</b> indicates NULL.</li> <li><b>-1</b> for fixed-length non-null datatypes</li> <li><b>-1</b> for variable-length datatypes (e.g. SYBCHAR) where the length is established by a prefix/terminator. </li> </ul> </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_term</em> </td><td>the sequence of characters that will serve as a column terminator (delimiter) in the datafile. Often a tab character, but can be any string of any length. Zero indicates no terminator. Special characters:</p> <ul> <li><b>'\0'</b> terminator is an ASCII NUL.</li> <li><b>'\t'</b> terminator is an ASCII TAB.</li> <li><b>'\n'</b> terminator is an ASCII NL. </li> </ul> </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_termlen</em> </td><td>the length of <em>host_term</em>, in bytes. </td></tr> <tr><td valign="top"></td><td valign="top"><em>table_colnum</em> </td><td>Nth column, starting at 1, in the table that maps to <em>host_colnum</em>. If there is a column in the datafile that does not map to a table column, set <em>table_colnum</em> to zero. </td></tr> <tr><td valign="top"></td><td valign="top"><em>typeinfo</em> </td><td>something </td></tr> </table> </dd> </dl> <dl class="todo"><dt><b><a class="el" href="a00306.html#_todo000002">Todo:</a></b></dt><dd>Not implemented. </dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00288.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00288.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00288.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00288.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00288.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00288.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, <a class="el" href="a00288.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a>, <a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow</a> </dd></dl> </div> </div> <a class="anchor" id="gae41d196a22c544d66212dacc5b555791"></a><!-- doxytag: member="bcp.c::bcp_collen" ref="gae41d196a22c544d66212dacc5b555791" args="(DBPROCESS *dbproc, DBINT varlen, int table_column)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_collen </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">DBINT </td> <td class="paramname"> <em>varlen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>table_column</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the length of a host variable to be written to a table. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>varlen</em> </td><td>size of the variable, in bytes, or</p> <ul> <li><b>0</b> indicating NULL</li> <li><b>-1</b> indicating size is determined by the prefix or terminator. (If both a prefix and a terminator are present, bcp is supposed to use the smaller of the two. This feature might or might not actually work.) </li> </ul> </td></tr> <tr><td valign="top"></td><td valign="top"><em>table_column</em> </td><td>the number of the column in the table (starting with 1, not zero).</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00288.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> </div> </div> <a class="anchor" id="ga6498235e4ef8e41ea43b01494b28998d"></a><!-- doxytag: member="bcp.c::bcp_colptr" ref="ga6498235e4ef8e41ea43b01494b28998d" args="(DBPROCESS *dbproc, BYTE *colptr, int table_column)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_colptr </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">BYTE * </td> <td class="paramname"> <em>colptr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>table_column</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Override <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a> by pointing to a different host variable. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>colptr</em> </td><td>The pointer, the address of your variable. </td></tr> <tr><td valign="top"></td><td valign="top"><em>table_column</em> </td><td>The 1-based column ordinal in the table. </td></tr> </table> </dd> </dl> <dl class="remark"><dt><b>Remarks:</b></dt><dd>Use between calls to <a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a>. After calling <a class="el" href="a00288.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, subsequent calls to <a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> will bind to the new address. </dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00288.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> </div> </div> <a class="anchor" id="ga330b9f1028f856a9eec5115550bcb4f7"></a><!-- doxytag: member="bcp.c::bcp_columns" ref="ga330b9f1028f856a9eec5115550bcb4f7" args="(DBPROCESS *dbproc, int host_colcount)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_columns </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>host_colcount</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Indicate how many columns are to be found in the datafile. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>host_colcount</em> </td><td>count of columns in the datafile, irrespective of how many you intend to use. </td></tr> </table> </dd> </dl> <dl class="remark"><dt><b>Remarks:</b></dt><dd>This function describes the file as it is, not how it will be used.</dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. It's hard to see how it could fail. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a> </dd></dl> </div> </div> <a class="anchor" id="ga244547855b41788fa3a67756956fbc81"></a><!-- doxytag: member="bcp.c::bcp_control" ref="ga244547855b41788fa3a67756956fbc81" args="(DBPROCESS *dbproc, int field, DBINT value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_control </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>field</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">DBINT </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set BCP options for uploading a datafile. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>field</em> </td><td>symbolic constant indicating the option to be set, one of:</p> <ul> <li><b>BCPMAXERRS</b> Maximum errors tolerated before quitting. The default is 10.</li> <li><b>BCPFIRST</b> The first row to read in the datafile. The default is 1.</li> <li><b>BCPLAST</b> The last row to read in the datafile. The default is to copy all rows. A value of -1 resets this field to its default?</li> <li><b>BCPBATCH</b> The number of rows per batch. Default is 0, meaning a single batch. </li> </ul> </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The value for <em>field</em>.</td></tr> </table> </dd> </dl> <dl class="remark"><dt><b>Remarks:</b></dt><dd>These options control the behavior of <a class="el" href="a00288.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>. When writing to a table from application host memory variables, program logic controls error tolerance and batch size.</dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00288.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00288.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00288.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00288.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00288.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, <a class="el" href="a00288.html#gafec3feb5bac1cb33545ba01efb0a67b8" title="Set "hints" for uploading a file.">bcp_options()</a> </dd></dl> </div> </div> <a class="anchor" id="ga8b85f79f53a62ac7a728fe626d609b65"></a><!-- doxytag: member="bcp.c::bcp_done" ref="ga8b85f79f53a62ac7a728fe626d609b65" args="(DBPROCESS *dbproc)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DBINT bcp_done </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Conclude the transfer of data from program variables. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> </table> </dd> </dl> <dl class="remark"><dt><b>Remarks:</b></dt><dd>Do not overlook this function. According to Sybase, failure to call <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a> "will result in unpredictable errors". </dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>As with <a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, the count of rows saved, or -1 on error. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, bcp_moretext(), <a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> </div> </div> <a class="anchor" id="ga7a184158b27a50f713e9cfae3b746209"></a><!-- doxytag: member="bcp.c::bcp_exec" ref="ga7a184158b27a50f713e9cfae3b746209" args="(DBPROCESS *dbproc, DBINT *rows_copied)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_exec </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">DBINT * </td> <td class="paramname"> <em>rows_copied</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Write a datafile to a table. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>rows_copied</em> </td><td>bcp_exec will write the count of rows successfully written to this address. If <em>rows_copied</em> is NULL, it will be ignored by db-lib.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00288.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00288.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00288.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00288.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00288.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00288.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a>, <a class="el" href="a00288.html#gaf1130ac97f6af55e86ec70b0aa4f5b40" title="Write data in host variables to the table.">bcp_sendrow()</a> </dd></dl> </div> </div> <a class="anchor" id="ga220f6b043602da1028f98dacb2fd00c0"></a><!-- doxytag: member="bcp.c::bcp_getl" ref="ga220f6b043602da1028f98dacb2fd00c0" args="(LOGINREC *login)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">DBBOOL bcp_getl </td> <td>(</td> <td class="paramtype"><a class="el" href="a00070.html">LOGINREC</a> * </td> <td class="paramname"> <em>login</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>See if <a class="el" href="a00285.html#ga5a626d228e82be0af8449d2b8c278241" title="Enable (or prevent) bcp operations for connections made with a login.">BCP_SETL()</a> was used to set the <a class="el" href="a00070.html">LOGINREC</a> for BCP work. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>login</em> </td><td>Address of the <a class="el" href="a00070.html">LOGINREC</a> variable to be passed to <a class="el" href="a00156.html#ae408d8e1c2ab0767d8bfd26d00d1ff6a" title="Normally not used.">dbopen()</a>.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>TRUE or FALSE. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00285.html#ga5a626d228e82be0af8449d2b8c278241" title="Enable (or prevent) bcp operations for connections made with a login.">BCP_SETL()</a>, <a class="el" href="a00288.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a>, <a class="el" href="a00286.html#ga0984798bb806f7451a53bffa7e2c430f" title="Allocate a LOGINREC structure.">dblogin()</a>, <a class="el" href="a00156.html#ae408d8e1c2ab0767d8bfd26d00d1ff6a" title="Normally not used.">dbopen()</a> </dd></dl> </div> </div> <a class="anchor" id="gada8e987c4a6225b9276c05ba3a4f47a0"></a><!-- doxytag: member="bcp.c::bcp_init" ref="gada8e987c4a6225b9276c05ba3a4f47a0" args="(DBPROCESS *dbproc, const char *tblname, const char *hfile, const char *errfile, int direction)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_init </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>tblname</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>hfile</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>errfile</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>direction</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Prepare for bulk copy operation on a table. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>tblname</em> </td><td>the name of the table receiving or providing the data. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hfile</em> </td><td>the data file opposite the table, if any. </td></tr> <tr><td valign="top"></td><td valign="top"><em>errfile</em> </td><td>the "error file" captures messages and, if errors are encountered, copies of any rows that could not be written to the table. </td></tr> <tr><td valign="top"></td><td valign="top"><em>direction</em> </td><td>one of</p> <ul> <li><b>DB_IN</b> writing to the table</li> <li><b>DB_OUT</b> writing to the host file</li> </ul> </td></tr> </table> </dd> </dl> <dl class="remark"><dt><b>Remarks:</b></dt><dd><a class="el" href="a00288.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a> sets the host file data format and acquires the table metadata. It is called before the other bulk copy functions.</dd></dl> <p>When writing to a table, bcp can use as its data source a data file (<em>hfile</em>), or program data in an application's variables. In the latter case, call <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a> to associate your data with the appropriate table column. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00285.html#ga5a626d228e82be0af8449d2b8c278241" title="Enable (or prevent) bcp operations for connections made with a login.">BCP_SETL()</a>, <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00288.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a> </dd></dl> </div> </div> <a class="anchor" id="gafec3feb5bac1cb33545ba01efb0a67b8"></a><!-- doxytag: member="bcp.c::bcp_options" ref="gafec3feb5bac1cb33545ba01efb0a67b8" args="(DBPROCESS *dbproc, int option, BYTE *value, int valuelen)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_options </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>option</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">BYTE * </td> <td class="paramname"> <em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>valuelen</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set "hints" for uploading a file. </p> <p>A FreeTDS-only function.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>option</em> </td><td>symbolic constant indicating the option to be set, one of:</p> <ul> <li><b>BCPLABELED</b> Not implemented.</li> <li><b>BCPHINTS</b> The hint to be passed when the bulk-copy begins. </li> </ul> </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The string constant for <em>option</em> a/k/a the hint. One of:</p> <ul> <li><b>ORDER</b> The data are ordered in accordance with the table's clustered index.</li> <li><b>ROWS_PER_BATCH</b> The batch size</li> <li><b>KILOBYTES_PER_BATCH</b> The approximate number of kilobytes to use for a batch size</li> <li><b>TABLOCK</b> Lock the table</li> <li><b>CHECK_CONSTRAINTS</b> Apply constraints </li> </ul> </td></tr> <tr><td valign="top"></td><td valign="top"><em>valuelen</em> </td><td>The strlen of <em>value</em>.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00288.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, </dd></dl> <dl class="todo"><dt><b><a class="el" href="a00306.html#_todo000003">Todo:</a></b></dt><dd>Simplify. Remove <em>valuelen</em>, and dbproc->bcpinfo->hint = strdup(hints[i]) </dd></dl> </div> </div> <a class="anchor" id="ga963c5e38bca7668afc57f5cc123d10fb"></a><!-- doxytag: member="bcp.c::bcp_readfmt" ref="ga963c5e38bca7668afc57f5cc123d10fb" args="(DBPROCESS *dbproc, const char filename[])" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_readfmt </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char </td> <td class="paramname"> <em>filename</em>[]</td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Read a format definition file. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server. </td></tr> <tr><td valign="top"></td><td valign="top"><em>filename</em> </td><td>Name that will be passed to fopen(3).</td></tr> </table> </dd> </dl> <dl class="remark"><dt><b>Remarks:</b></dt><dd>Reads a format file and calls <a class="el" href="a00288.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a> and <a class="el" href="a00288.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a> as needed.</dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00288.html#gaf13b2bb12b4200752718f3a3face3870" title="Specify the format of a host file for bulk copy purposes, with precision and scale...">bcp_colfmt_ps()</a>, <a class="el" href="a00288.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, bcp_writefmt() </dd></dl> </div> </div> <a class="anchor" id="gaf1130ac97f6af55e86ec70b0aa4f5b40"></a><!-- doxytag: member="bcp.c::bcp_sendrow" ref="gaf1130ac97f6af55e86ec70b0aa4f5b40" args="(DBPROCESS *dbproc)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RETCODE bcp_sendrow </td> <td>(</td> <td class="paramtype"><a class="el" href="a00098.html">DBPROCESS</a> * </td> <td class="paramname"> <em>dbproc</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Write data in host variables to the table. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dbproc</em> </td><td>contains all information needed by db-lib to manage communications with the server.</td></tr> </table> </dd> </dl> <dl class="remark"><dt><b>Remarks:</b></dt><dd>Call <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a> first to describe the variables to be used. Use <a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a> to commit sets of rows. After sending the last row call <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>. </dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>SUCCEED or FAIL. </dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00288.html#gaa23f8e5c7f437a94746c90292dd1cb01" title="Commit a set of rows to the table.">bcp_batch()</a>, <a class="el" href="a00288.html#gaf08c7f8e74ddf23b83800bc378821b35" title="Bind a program host variable to a database column.">bcp_bind()</a>, <a class="el" href="a00288.html#ga0ed03c69e698336d015bb315ad755fd5" title="Specify the format of a datafile prior to writing to a table.">bcp_colfmt()</a>, <a class="el" href="a00288.html#gae41d196a22c544d66212dacc5b555791" title="Set the length of a host variable to be written to a table.">bcp_collen()</a>, <a class="el" href="a00288.html#ga6498235e4ef8e41ea43b01494b28998d" title="Override bcp_bind() by pointing to a different host variable.">bcp_colptr()</a>, <a class="el" href="a00288.html#ga330b9f1028f856a9eec5115550bcb4f7" title="Indicate how many columns are to be found in the datafile.">bcp_columns()</a>, <a class="el" href="a00288.html#ga244547855b41788fa3a67756956fbc81" title="Set BCP options for uploading a datafile.">bcp_control()</a>, <a class="el" href="a00288.html#ga8b85f79f53a62ac7a728fe626d609b65" title="Conclude the transfer of data from program variables.">bcp_done()</a>, <a class="el" href="a00288.html#ga7a184158b27a50f713e9cfae3b746209" title="Write a datafile to a table.">bcp_exec()</a>, <a class="el" href="a00288.html#gada8e987c4a6225b9276c05ba3a4f47a0" title="Prepare for bulk copy operation on a table.">bcp_init()</a>, bcp_moretext(), <a class="el" href="a00288.html#gafec3feb5bac1cb33545ba01efb0a67b8" title="Set "hints" for uploading a file.">bcp_options()</a> </dd></dl> </div> </div> </div> <!--- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Aug 17 22:22:31 2011 for FreeTDS API by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>
Close