Lines Matching refs:conn
9 $conn = odbc_connect($dsn, $user, $pass);
10 $result = @odbc_exec($conn, "SELECT @@Version");
25 $conn = odbc_connect($dsn, $user, $pass);
26 odbc_exec($conn, 'CREATE DATABASE PrimarykeysTest');
27 odbc_exec($conn, 'USE PrimarykeysTest');
28 odbc_exec($conn, 'CREATE TABLE primarykeys (test INT NOT NULL)');
30 $res = odbc_primarykeys($conn, "PrimarykeysTest", "dbo", "primarykeys");
34 odbc_exec($conn, 'ALTER TABLE primarykeys ADD CONSTRAINT primarykeys_pk PRIMARY KEY (test)');
36 $res = odbc_primarykeys($conn, "PrimarykeysTest", "dbo", "");
40 $res = odbc_primarykeys($conn, "PrimarykeysTest", "", "primarykeys");
44 $res = odbc_primarykeys($conn, null, "dbo", "primarykeys");
48 $res = odbc_primarykeys($conn, "PrimarykeysTest", "dbo", "primarykeys");
56 $conn = odbc_connect($dsn, $user, $pass);
57 odbc_exec($conn, 'USE PrimarykeysTest');
58 odbc_exec($conn, 'DROP TABLE primarykeys');
59 odbc_exec($conn, 'USE master');
60 odbc_exec($conn, 'DROP DATABASE PrimarykeysTest');