.NET Connector. (MS Windows)

Size: px
Start display at page:

Download ".NET Connector. (MS Windows)"

Transcription

1 tcaccess, Version 8.0 tcaccess.net documentation.net Connector (MS Windows) Last Review: 12/10/ /10/2010 Page 1

2 tcaccess.net documentation tcaccess, Version 8.0 Table of contents 1. General Requirements Installation Publishing of a.net application NET architecture Class "TcaConnection" Properties Methods Possible ConnectionString options: Examples VB.NET C# Class "TcaCommand" Properties Methods Examples VB.NET C# Class "TcaCommandBuilder" Properties Methods Examples VB.NET C# Class "TcaDataAdapter" Properties Methods Examples VB.NET C# Class "TcaDataReader" Properties Methods Examples VB.NET C# Class "TcaException" Properties Methods Examples VB.NET C# Class "TcaTransaction" Properties Methods Examples VB.NET C#...20 Page 2 12/10/2010

3 tcaccess, Version 8.0 tcaccess.net documentation 3. tcaccess.net and Prepared Statements General Usage of Prepared Statements Examples for Prepared Statements VB.NET C# tcaccess.net and Stored Procedures General Usage of Stored Procedures Examples for Stored Procedures VB.NET C# Index /10/2010 Page 3

4 tcaccess.net documentation tcaccess, Version General Using the tcaccess.net Connector enables developers to create.net applications that access mainframe data. tcaccess.net implements an ADO.NET interface and provides support for ADO.NET development tools. Applications using the tcaccess.net Connector can be developed in any language supported by the.net environment. 1.1 Requirements All functions provided by the tcaccess.net programming interface are part of file "Tca.Data.dll". This file must be added as link to the project (C#, Visual Basic, etc.). The required steps can be obtained from the documentation of the corresponding development tool..net Framework 2.0 is required. 1.2 Installation After the installation of tcaccess file "Tca.Data.dll" is part of the tcaccess installation directory. The.NET Connector can be added as link from this directory to the project. The Connector may also be included in the global Assembly Cache. To do this tool "Gacutil.exe" can be used (refer to.net Framework documentation). gacutil -i Tca.Data.dll It is also possible to use the extension provided by the.net Framework SDK for the Windows Shell (Assembly Cache Viewer (Shfusion.dll)). The shell extension allows to drag assemblies into the global Assembly Cache (mostly directory "C:\WINNT\Assembly"). Alternatively the configuration tool of the.net Framework (Mscorcfg.msc) can be used. It allows the display of the global Assembly Cache and to add new Assemblies to the cache. 1.3 Publishing of a.net application When publishing a.net application that uses the tcaccess.net Connector file "Tca.Data.dll" must be included in the installation file as application. The necessary steps can be found in the documentation of the corresponding development tool. On all machines where the application will be installed a path must exist that points to the tcaccess base directory. Page 4 12/10/2010

5 tcaccess, Version 8.0 tcaccess.net documentation 2..NET architecture The tcaccess.net Connector contains classes used to establish a connection to the database, executes queries and statements and to evaluate result sets. The following are the most important classes of the tcaccess.net Connectors: TcaConnection: Represents a connection to the tcaccess Host. TcaCommand: Represents a SQL-statement that should be executed at the tcaccess Host. TcaCommandBuilder: Automatically creates statements that should be used for a table to apply changes to a data record (dataset) for the assigned tcaccess host database. TcaDataAdapter: Represent SQL-statements and a database connection that should be used to fill a database object and to modify a tcaccess database. TcaDataReader: Provides the methods used to retrieve the "forward only" data records of a tcaccess database. TcaException: The exception will be used if tcaccess returns an error. TcaTransaction: Represents a SQL transaction that should be executed against a tcaccess database. All of these classes are explained in detail in the following chapters. The chapters provide an overview of the most important tcaccess.net Connector classes and are not meant to be a syntax reference. 2.1 Class "TcaConnection" A TcaConnection object represents a connection to a tcaccess data source. All properties are initialized during the creation of the TcaConnection instance.. When a TcaConnection becomes invalid it will not be closed. It must be explicitly closed using method "Close" Properties The following properties are available: Name ConnectionString ConnectionTimeout Database State Description Specifies or retrieves the connection string (refer to "Possible ConnectionString options"). Specifies or retrieves the timeout value used to establish a connection. If the timeout value is reached the attempt ends and an error is generated. Retrieves the name of the current database or the one that should be used after a connection has been established. If the database name has been specified, the creator (schema) name can be omitted in the SQL statement. Example: If the database name has been set to "DEMO" instead of "select * from DEMO.TEST" only "select * from TEST" can be used. Provides the current state of the connection Methods The following methods are available: Name BeginTransaction ChangeDatabase Close CreateCommand Open Description Starts a database transaction. Changes the current database object for an open TcaConnection-object. (refer to property "Database") Closes the connection with a database. Creates a Command-object that is assigned to the connection. Opens a database connection. The properties specified for the ConnectionString will be used. 12/10/2010 Page 5

6 tcaccess.net documentation tcaccess, Version Possible ConnectionString options: Option Description Default Config Name of the tcaccess configuration UID tcaccess user name. If this option is not defined the user name specified in the connection will be used. PWD tcaccess user password. If this option is not defined the password specified in the connection will be used. Trace "Yes" creates an access log in a text file. No Type This parameter specifies the type of the ODBC access for this data TCA/SQLX source. The following entries are allowed: TCA/SQLX tcaccess SQL-Engine SQL/DS SQL/DS DB2 DB/2 Parameter The data source parameter are explained in manual "tcaccess 8.0 Windows Client". ShowStat "Yes" displays a status window that contains transfer information. No Transactions This option is available for DB2, SQL/DS and the SQL-Engine. No Transactions are only possible for SQL-Engine tables if the underlying data source also supports transactions. Examples are DL/I databases and VSAM-files controlled by CICS Journalling/Recovery. Neither PS/PDS-files, SAM-files or VSAM Batch files support logical transactions. If the option has been defined it is the responsibility of the calling Windows application to correctly perform transaction processing. SendStatistics FixedFieldSize UsePreparedCommands OptimisticReadAhead LogonAsSqlId Pooling ConnectionLifetime If the option is not active no transaction support is available. However it is still possible to use the standard ODBC commands (i.e. a "Pass-Through Query in Microsoft Access): "NOCOMMIT", "COMMIT", "ROLLBACK" "Yes" will send statistical information about the transfer to the host, similar to the tcaccess Front end program. If this option is specified trailing blanks for character fields are not truncated. Using this option commands are being prepared on the host and are executed as "Prepared Command". This option specifies whether the Optimistic Read Ahead function should be used for the data source. This option specifies whether the the data source should use the current user name from the session sign-on as default SQLID. After method "Close" for the Connection-object has been used the connection to the host should not be closed but rather becomes part of a connection pool. If a new connection is established using the same ConnectionString the connection can be reused. Defines the maximum "Age" of a connection in seconds. If a connection reaches this age it is no longer included in the pool but closed. No No No No No No Examples The following example creates a TcaConnection- and a TcaCommand-object. The TcaConnection will be opened and used as connection for TcaCommand. Then, the ExecuteNonQuery will be called and the connection will be closed VB.NET The example shows how TcaConnection is used withvb.net. Page 6 12/10/2010

7 tcaccess, Version 8.0 tcaccess.net documentation Public Sub InsertRow() Dim connstr As String connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;" Dim conn As New TcaConnection(connStr) Dim cmd As New TcaCommand("INSERT INTO DEMO.TEST (100, NAME )") cmd.connection = conn conn.open() cmd.executenonquery() conn.close() End Sub C# The example shows how TcaConnection is used with C#. public void InsertRow() { string connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;"; TcaConnection conn = new TcaConnection(connStr); TcaCommand cmd = new TcaCommand("INSERT INTO DEMO.TEST (100, NAME )"); cmd.connection = conn; conn.open(); cmd.executenonquery(); conn.close(); } 2.2 Class "TcaCommand" The TcaCommand object represents a SQL-statement that is executed using a tcaccess data source Properties The following properties are available: 12/10/2010 Page 7

8 tcaccess.net documentation tcaccess, Version 8.0 Name CommandText CommandTimeout CommandType Connection Parameters Transaction UpdatedRowSource Description Specifies or retrieves the command text for the data source. Specifies or retrieves the timeout value that should be used for the command execution before an error is generated. Specifies how the CommandText-property should be interpreted. Specifies or retrieves the TcaConnection that should be used for this instance of TcaCommand. Retrieves the TcaDataParameterCollection. Specifies or retrieves the transaction used for the command object. Specifies or retrieves how the results of commands for DataRow should be applied if they are used by the update method of TcaDataAdapter. Page 8 12/10/2010

9 tcaccess, Version 8.0 tcaccess.net documentation Methods The following methods are available: Name Cancel CreateParameter ExecuteNonQuery ExecuteReader ExecuteScalar Prepare Description Attempts to cancel the execution of a TcaCommand. This operation is not supported. Creates a new instance of a TcaDataParameter-object. Executes a SQL statement for the Connection-object and returns the number of affected rows. Executes CommandText and creates a TcaDataReader. Executes the query and returns the first column of the first row of the result set. Additional columns or rows are ignored. Creates a prepared command version for the data source Examples The following example creates a TcaConnection- and a TcaCommand-object. The TcaConnection will be opened and used as connection for TcaCommand. Then, the ExecuteNonQuery will be called and the connection will be closed VB.NET The example shows the usage of TcaCommand with VB.NET. Public Sub InsertRow() Dim connstr As String connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;" Dim conn As New TcaConnection(connStr) Dim cmd As New TcaCommand("INSERT INTO DEMO.TEST (100, NAME )") cmd.connection = conn conn.open() cmd.executenonquery() conn.close() End Sub C# The example shows the usage of TcaCommand with C#. 12/10/2010 Page 9

10 tcaccess.net documentation tcaccess, Version 8.0 public void InsertRow() { string connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;"; TcaConnection conn = new TcaConnection(connStr); TcaCommand cmd = new TcaCommand("INSERT INTO DEMO.TEST (100, NAME )"); cmd.connection = conn; conn.open(); cmd.executenonquery(); conn.close(); } 2.3 Class "TcaCommandBuilder" A TcaDataAdapter object automatically creates the required SQL statements to modify a record in a tcaccess host database. Also a TcaCommandBuilder object can be created to automatically generate SQL statements for a table. Property "SelectCommand" of the TcaDataAdapter object must be specified. If this is the case all statements that have not been specified will be created by TcaCommandBuilder. The TcaCommandBuilder object registers itself as listener for "OnRowUpdating"-events when property "dataadapter" has been specified. Only one TcaDataAdapter- and one TcaCommandBuilder-object can be linked at a time. TcaCommandBuilder must execute SelectCommand to get the required meta data to create INSERT, UPDATE and DELETE commands. This requires a new read of the data source that may impact performance. The best performance can be achieved by directly specifying the commands and not to use TcaCommandBuilder. SelectCommand must at least return a primary key or a unique column otherwise exception InvalidOperation-will be created and no commands will be generated. If an assignment exists to DataAdapter TcaCommandBuilder automatically generates properties "InsertCommand", "UpdateCommand" and "DeleteCommand" for the TcaDataAdapter if these are NULLreferences. If a command already exists for a property this command will be used. Database views that consist of joins between 2 or more databases are not being treated as a single table. In this case TcaCommandBuilder cannot be used for the automatic command generation. The required command must be explicitly specified. Page 10 12/10/2010

11 tcaccess, Version 8.0 tcaccess.net documentation Properties The following properties are available: Name DataAdapter QuotePrefix QuoteSuffix Description Specifies or retrieves a TcaDataAdapter object for which transact SQL statements will be automatically generated. Specifies or retrieves the quote prefix that should be used for the specification of database objects (i.e tables or columns) that may contains spaces or reserved tokens. The default is a single quote ('). Specifies or retrieves the quote suffix that should be used for the specification of database objects (i.e tables or columns) that may contains spaces or reserved tokens. The default is a single quote (') Methods The following methods are available: Name DeriveParameters GetDeleteCommand GetInsertCommand GetUpdateCommand RefreshSchema Description Retrieves the parameter information of the procedure stored in TcaCommand and pads the parameter listing of the specified TcaCommand object. (This is a static method). Retrieves the automatically generated TcaCommand object that is required for database DELETEs. Retrieves the automatically generated TcaCommand object that is required for database INSERTs. Retrieves the automatically generated TcaCommand object that is required for database UPDATEs. Deletes the commands assigned to this TcaCommandBuilder Examples The following example creates a TcaConnection- and a TcaDataAdapter-object. A SelectCommand is assigned to TcaDataAdapter. The created TcaCommandBuilder object will be assigned to TcaDataAdapter. The connection is opened and a DataSet is created. Modifications to data in DataSet is represented by an update command for the database. The corresponding Delete-, Insert- or Update-statement has been created by TcaCommadBuilder. Then the connection will be closed VB.NET The example demonstrates the use of TcaCommandBuilder with VB.NET. 12/10/2010 Page 11

12 tcaccess.net documentation tcaccess, Version 8.0 Public Sub SelectRows() Dim connstr As String connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;" Dim conn As New TcaConnection(connStr) Dim da As TcaDataAdapter = New TcaDataAdapter() da.selectcommand = New TcaCommand("select * from DEMO.TEST", conn) Dim cb As TcaCommandBuilder = New TcaCommandBuilder(da) conn.open() Dim ds As DataSet = New DataSet da.fill(ds) code to modify data in DataSet without the TcaCommandBuilder this line would fail da.update(ds) conn.close() End Sub C# The example demonstrates the use of TcaCommandBuilder with C#. Page 12 12/10/2010

13 tcaccess, Version 8.0 tcaccess.net documentation public void SelectRows() { string connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;"; TcaConnection conn = new TcaConnection(connStr); TcaDataAdapter da = new TcaDataAdapter(); da.selectcommand = new TcaCommand("select * from DEMO.TEST", conn); TcaCommandBuilder cb = new TcaCommandBuilder(da); conn.open(); DataSet ds = New DataSet(); da.fill(ds); // code to modify data in DataSet // without the TcaCommandBuilder this line would fail da.update(ds); } conn.close(); 2.4 Class "TcaDataAdapter" A TcaDataAdapter object acts as a link between a DataSet and a tcaccess database for the retrieval and storing of data. TcaDataAdapter-object provides method "Fill" to adjust the data in DataSet with the data in the data source. Method "Update" adjust the data of the data source with the data in DataSet by using the corresponding SQL statements for the data source. 12/10/2010 Page 13

14 tcaccess.net documentation tcaccess, Version Properties The following properties are available: Name DeleteCommand InsertCommand SelectCommand UpdateCommand Description Specifies or retrieves a command to DELETE data records. Specifies or retrieves a command to INSERT data records. Specifies or retrieves a command to SELECT data records. Specifies or retrieves a command to UPDATE data records Methods The following methods are available: Name Fill Update Description Inserts into a DataSet or table. Retrieves the corresponding INSERT., UPDATE- or DELETE staement for every affected row Examples The following example creates a TcaConnection- and a TcaDataAdapter-object. A SelectCommand is assigned to TcaDataAdapter. The connection will be opened and a supplied DataSet will be filled. After the process is completed the connection will be closed VB.NET The example shows the processing of TcaDataAdapter with VB.NET. Public Sub SelectRows(ds As DataSet) Dim connstr As String connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;" Dim conn As New TcaConnection(connStr) Dim da As TcaDataAdapter = New TcaDataAdapter() da.selectcommand = New TcaCommand("select * from DEMO.TEST", conn) conn.open() da.fill(ds) conn.close() End Sub C# The example shows the processing of TcaDataAdapter with C#. Page 14 12/10/2010

15 tcaccess, Version 8.0 tcaccess.net documentation public void SelectRows(DataSet ds) { string connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;"; TcaConnection conn = new TcaConnection(connStr); TcaDataAdapter da = new TcaDataAdapter(); da.selectcommand = new TcaCommand("select * from DEMO.TEST", conn); conn.open(); da.fill(ds); conn.close(); } 2.5 Class "TcaDataReader" A TcaDataReader object provides the methods to retrieve the "forward only" data records of a tcaccess database. To create a TcaDataReader object method "ExecuteReader" of a TcaCommand object must be called. It is not possible to directly call a constructor. As long as a TcaDataReader object is in use the corresponding TcaConnection will be busy to retrieve the data for TcaDataReader. Therefore no other operations except close - can be executed on TcaConnection. This is true as long a method "CLOSE" has not been called for the TcaDataReader object. "IsClosed" and "RecordsAffected" are the only properties that can be called after TcaDataReader has been closed. Although "RecordsAffected" can be called at any time during the existence of the TcaDataReader object, method "CLOSE" should always be called before a value for "RecordsAffected" is returned to make sure that the correct value is available Properties The following properties are available Name Depth FieldCount HasRows IsClosed Item RecordsAffected Description Gets a value that indicates the depth of the current row. The tcaccess.net Connector always returns 0. Gets the number of columns of the current row Gets a value that indicates whether TcaDataReader has one or more rows. Gets a boolean value that indicates whether the TcaDataReader instance has been closed. Gets the column value in the system format. Gets the number of rows affected by a transact-sql-statements. 12/10/2010 Page 15

16 tcaccess.net documentation tcaccess, Version Methods The following methods are available: Name Close GetBoolean GetByte GetBytes GetChar GetChars GetDataTypeName GetDateTime GetDecimal GetDouble GetFieldType GetFloat GetGUID GetInt16 GetInt32 GetInt64 GetName GetOrdinal GetSchemaTable GetString GetValue GetValues IsDBNull NextResult Read Description Closes the TcaDataReader object. Gets the Boolean value of the specified column. Gets the value of the specified column as a byte. Reads a stream of bytes from the specified column offset into the buffer an array starting at the given buffer offset. Gets the single character value of the specified column. Reads a stream of characters from the specified column offset into the buffer as an array starting at the given buffer offset. Gets a string representing the data type of the specified column Gets the value of the specified column as a DateTime object. Gets the value of the specified column as a Decimal object. Gets the value of the specified column as a double-precision floating point number. Gets the Type that is the data type of the object returned by GetValue. Gets the value of the specified column as a single-precision floating point number. Gets the value of the specified column as a globally unique identifier (GUID). Gets the value of the specified column as a 16-bit signed integer. Gets the value of the specified column as a 32-bit signed integer. Gets the value of the specified column as a 64-bit signed integer. Gets the name of the specified column. Gets the column ordinal, given the name of the column. Returns a DataTable that describes the column metadata of the TcaDataReader.. Gets the value of the specified column as a string. Gets the value of the specified column in its native format. Gets all attribute columns in the collection for the current row. Gets a value that indicates whether the column contains non-existent or missing values. Advances the data reader to the next result, when reading the results of batch Transact-SQL statements.. Advances the TcaDataReader to the next record Examples The following example creates a TcaConnection- and a TcaDataAdapter-object. A SelectCommand is assigned to TcaDataAdapter. The connection will be opened and a supplied DataSet will be filled. After the process is completed the connection will be closed VB.NET The example shows the usage of TcaDataReader with VB.NET. Page 16 12/10/2010

17 tcaccess, Version 8.0 tcaccess.net documentation Public Sub ReadData() Dim connstr As String connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;" Dim conn As New TcaConnection(connStr) Dim cmd As New TcaCommand("select * from DEMO.TEST", conn) conn.open() Dim rdr As TcaDataReader rdr = cmd.executereader() while rdr.read() Console.WriteLine(rdr.GetInt32(0) & ", " & rdr.getstring(1) ) End While rdr.close() conn.close() End Sub C# The example shows the usage of TcaDataReader with C#. public void ReadData () { string connstr = " UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;"; TcaConnection conn = new TcaConnection(connStr); TcaCommand cmd = new TcaCommand("select * from DEMO.TEST", conn); conn.open(); TcaDataReader rdr = cmd.executereader(); while (rdr.read()) Console.WriteLine(rdr.GetInt32(0) + ", " + rdr.getstring(1) ); rdr.close(); conn.close(); } 2.6 Class "TcaException" A TcaException object is created whenever tcaccess.net detects an error. 12/10/2010 Page 17

18 tcaccess.net documentation tcaccess, Version Properties The following properties are available: Name Error Message Number Description Returns a TcaError object Returns an error message for the current exception. Returns an error number that identifies the error Methods TcaException has no methods Examples The following example analyzes a TcaException object and displays a summary upon console VB.NET The example sghows the usage of TcaException with VB.NET. Public Sub EvaluateTcaException(ex As TcaException) Console.WriteLine("Exception caught:") Console.WriteLine(" Number: " + ex.number) Console.WriteLine(" Message: " + ex.message) If Not ex.error Is Nothing Then Dim error As TcaError error = ex.error; Dim szmsg As String szmsg = String.Format("[{0}][{1:D}] : {2}", error.level, error.code, error.message); Console.WriteLine(" SQL Internal: " + szmsg) End If End Sub C# The example sghows the usage of TcaException with C#. Page 18 12/10/2010

19 tcaccess, Version 8.0 tcaccess.net documentation public void EvaluateTcaException(TcaException ex) { Console.WriteLine("Exception caught:"); Console.WriteLine(" Number: " + ex.number); Console.WriteLine(" Message: " + ex.message); if (ex.error!= null) { TcaError error = ex.error; String szmsg = String.Format("[{0}][{1:D}] : {2}", error.level, error.code, error.message); } } Console.WriteLine(" SQL Internal: " + szmsg); 12/10/2010 Page 19

20 tcaccess.net documentation tcaccess, Version Class "TcaTransaction" A TcaTransaction object represents a SQL transaction that should be executed for the tcaccess database Properties The following properties are available: Name Connection IsolationLevel Description Specifies the Connection object that is assigned to the transaction. Specifies the IsolationLevel-enumeration for this transaction Methods The following methods are available: Name Commit Rollback Description Performs a Commit for the database transaction. Performs a rollback for a not yet completed transaction Examples The following example creates a TcaConnection- and a TcaDataAdapter-object. The TcaCommand executes an INSERT statement that is "rollback"ed. The connection is closed VB.NET The example shows the usage of TcaTransaction with VB.NET. Public Sub InsertRow() Dim connstr As String connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;" Dim conn As New TcaConnection(connStr) Dim transaction As TcaTransaction = conn.begintransaction() Dim cmd As New TcaCommand("insert into DEMO.TEST values (200, NewName )", conn) conn.open() cmd.executenonquery() transaction.rollback() conn.close() End Sub C# The example shows the usage of TcaTransaction with C#. Page 20 12/10/2010

21 tcaccess, Version 8.0 tcaccess.net documentation public void InsertRow() { string connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;"; TcaConnection conn = new TcaConnection(connStr); TcaTransaction transaction = conn.begintransaction(); TcaCommand cmd = new TcaCommand(("insert into DEMO.TEST values (200, NewName )", conn)); } conn.open(); cmd.executenonquery(); transaction.rollback(); conn.close(); 12/10/2010 Page 21

22 tcaccess.net documentation tcaccess, Version tcaccess.net and Prepared Statements 3.1 General Using the tcaccess.net Connector it is possible to use Prepared Statements. The usage of Prepared Statements can lead to better performance especially for queries that are executed multiple times, hence the query must only be analyzed once. Also the network usage can be reduced, because only parameter must be sent instead of the full query. 3.2 Usage of Prepared Statements To use a Prepared Statement a TcaCommand-object must be created and the query that should be executed must become the "CommandText"- property. Next method "Prepare" of the TcaCommand-object should be called and the parameter for the dynamic elements of the query can be added. After the query and parameter have been built the statement can be executed using methods "ExecuteNonQuery", "ExecuteReader" or "ExecuteScalar". For every additional execution only the parameter values must be changed and the execute method must be called again. It is not necessary to set the "CommandText"- property again and the parameter must not be newly defined. 3.3 Examples for Prepared Statements The following example shows a simple use of Prepared Statements. The ConnectionString used to establish the connection must have option "UsePreparedCommands" set to "Yes". The query to be prepared contains the column names as parameter where the name is prefixed by (? ). Using "Prepare" prepares the query. The parameter must be defined according to the database structure. Finally the parameter values are created within a loop and the query is executed. Page 22 12/10/2010

23 tcaccess, Version 8.0 tcaccess.net documentation VB.NET Public Sub InsertRows() Dim connstr As String connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;" connstr += "UsePreparedCommands=Yes;" Dim conn As New TcaConnection(connStr) conn.open() Dim cmd As New TcaCommand("insert into DEMO.TEST values (?id,?name)", conn) cmd.prepare() cmd.parameters.add("id", TcaDbType.Int32, 4) cmd.parameters.add("name", TcaDbType.String, 40) Dim i As Int32 for i = 1 To Next cmd.parameters("id").value = i cmd.parameters.("name").value = String.Format("Name {0}", i); cmd.executenonquery() conn.close() End Sub 12/10/2010 Page 23

24 tcaccess.net documentation tcaccess, Version C# public void InsertRows() { string connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;"; connstr += "UsePreparedCommands=Yes;"; TcaConnection conn = New TcaConnection(connStr); conn.open(); TcaCommand cmd = New TcaCommand("insert into DEMO.TEST values (?id,?name)", conn); cmd.prepare(); cmd.parameters.add("id", TcaDbType.Int32, sizeof(int32)); cmd.parameters.add("name", TcaDbType.String, 40); Int32 i; for (i = 1 ; i <= 100 ; i++) {..} } cmd.parameters("id").value = i; cmd.parameters.("name").value = String.Format("Name {0}", i); cmd.executenonquery(); conn.close(); Page 24 12/10/2010

25 tcaccess, Version 8.0 tcaccess.net documentation 4. tcaccess.net and Stored Procedures 4.1 General A Stored Procedure is a logical unit of processing steps stored in a database. Clients must not perform the individual steps but can rather execute the Stored Procedure. tcaccess.net supports the execution of Stored Procedures using the TcaCommand objects. Data can be passed to the Stored Procedure using the the collection obtained with TcaCommand. Parameter (In-parameter) and results from the Stored Procedure can be retrieved (Out-Parameter). 4.2 Usage of Stored Procedures To use a Stored Procedure a TcaCommand-object must be created and the name of the Stored Procedure that should be executed must be specified as "CommandText"- property. Property "CommandType" must be set to "CommandType.StoredProcedure". Next for each parameter of the Stored Procedure a Tcacommand parameter must be created. In-parameter are defined using the parameter name and a value. Out-parameter must be defined using the parameter name and the expected data type. All parameter have the parameter direction in common (In or Out). After all the parameter have been specified the Stored Procedure can be executed using method "ExecuteNonQuery". 4.3 Examples for Stored Procedures The following example shows a simple use of Stored Procedures. The Stored Procedure has one input parameter ("SWITCH") and two output parameter ("DATE" and "TIME"). Depending upon the input parameter the output parameter are returned by the Stored procedure. Properties "CommandText" and "CommandType" must be set for the created TcaCommand-object. Next the parameter must be defined. Only the In-parameter contains a value. After the execution of the Stored Procedure the values of the out-parameter can be retrieved with method "ExecuteNonQuery". Note: The parameter definition can also be automated. To do this method "DeriveParameters" of class "TcaCommandBuilder" must be called. The method has the TcaCommand object specified as parameter and only the value of the in-parameter must be set. TcaCommandBuilder.DeriveParameters(cmd) cmd.parameters("switch").value = Int16.Parse(textBox1.Text) To determine the parameter information additional database accesses are necessary that may influence the execution performance. If the parameter information are known they should be explicitly defined to gain a far better performance. 12/10/2010 Page 25

26 tcaccess.net documentation tcaccess, Version VB.NET Public Sub CallProcedure() Dim connstr As String connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;" Dim conn As New TcaConnection(connStr) conn.open() Dim cmd As New TcaCommand("DEMO.TCATIMEQ", conn) cmd.commandtype = CommandType.StoredProcedure Dim parameter As TcaParameter parameter = cmd.parameters.add("?switch", TcaDbType.Int16) parameter.value = Int16.Parse(textBox1.Text) parameter = cmd.parameters.add("?date", TcaDbType.Date, 10) parameter.direction = ParameterDirection.Output parameter = cmd.parameters.add("?time", TcaDbType.Time, 8) parameter.direction = ParameterDirection.Output cmd.executenonquery() String szresult = String.Format("In SWITCH: {0}", textbox1.text) szresult += Environment.NewLine szresult += String.Format("Out DATE: {0}", cmd.parameters["?date"].value) szresult += Environment.NewLine szresult += String.Format("Out TIME: {0}", cmd.parameters["?time"].value) textbox2.text = szresult conn.close() End Sub Page 26 12/10/2010

27 tcaccess, Version 8.0 tcaccess.net documentation C# public void CallProcedure() { string connstr = "UID=MyUid;PWD=MyPwd;Type=TCA/SQLX;Config=ZVSE;"; TcaConnection conn = New TcaConnection(connStr); conn.open(); TcaCommand cmd = New TcaCommand("DEMO.TCATIMEQ ", conn); cmd.commandtype = CommandType.StoredProcedure; TcaParameter parameter = cmd.parameters.add("?switch", TcaDbType.Int16); parameter.value = Int16.Parse(textBox1.Text); parameter = cmd.parameters.add("?date", TcaDbType.Date, 10); parameter.direction = ParameterDirection.Output; parameter = cmd.parameters.add("?time", TcaDbType.Time, 8); parameter.direction = ParameterDirection.Output; cmd.executenonquery(); String szresult = String.Format("In SWITCH: {0}\r\n", textbox1.text); szresult += String.Format("Out DATE: {0}\r\n", cmd.parameters["?date"].value); szresult += String.Format("Out TIME: {0}\r\n", cmd.parameters["?time"].value); textbox2.text = szresult; conn.close(); } 12/10/2010 Page 27

28 tcaccess.net documentation tcaccess, Version Index P Procedures...25 S Statements...22 Page 28 12/10/2010

BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED PROGRAMMING, X428.6)

BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED PROGRAMMING, X428.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 7 Professional Program: Data Administration and Management BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED

More information

6 Microsoft.Data.Odbc

6 Microsoft.Data.Odbc 6 Microsoft.Data.Odbc The ODBC.NET Data Provider is necessary to maintain wide support for scores of legacy data sources. During the last few years, not all software vendors were quick to develop OLE DB

More information

ADO.NET in Visual Basic

ADO.NET in Visual Basic ADO.NET in Visual Basic Source code Download the source code of the tutorial from the Esercitazioni page of the course web page http://www.unife.it/ing/lm.infoauto/sistemiinformativi/esercitazioni Uncompress

More information

An Introduction to ADO.Net

An Introduction to ADO.Net An Introduction to ADO.Net Mr. Amit Patel Dept. of I.T. .NET Data Providers Client SQL.NET Data Provider OLE DB.NET Data Provider ODBC.NET Data Provider OLE DB Provider ODBC Driver SQL SERVER Other DB

More information

ADO.NET. Two Providers ADO.NET. Namespace. Providers. Behind every great application is a database manager

ADO.NET. Two Providers ADO.NET. Namespace. Providers. Behind every great application is a database manager ADO.NET ADO.NET Behind every great application is a database manager o Amazon o ebay Programming is about managing application data UI code is just goo :) 11/10/05 CS360 Windows Programming 1 11/10/05

More information

Accessing Databases 7/6/2017 EC512 1

Accessing Databases 7/6/2017 EC512 1 Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing

More information

iseries Access in the.net World

iseries Access in the.net World Session: 420219 Agenda Key: 44CA ~ Access in the.net World Brent Nelson - bmnelson@us.ibm.com Access Development 8 Copyright IBM Corporation, 2005. All Rights Reserved. This publication may refer to products

More information

PLATFORM TECHNOLOGY UNIT-4

PLATFORM TECHNOLOGY UNIT-4 VB.NET: Handling Exceptions Delegates and Events - Accessing Data ADO.NET Object Model-.NET Data Providers Direct Access to Data Accessing Data with Datasets. ADO.NET Object Model ADO.NET object model

More information

.NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications

.NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications .NET and DB2 united with IBM DB2.NET Data Provider Objectives :.NET ADO.NET DB2 and ADO.NET DB2 - ADO.NET applications ABIS Training & Consulting 1 DEMO Win Forms client application queries DB2 according

More information

It is the primary data access model for.net applications Next version of ADO Can be divided into two parts. Resides in System.

It is the primary data access model for.net applications Next version of ADO Can be divided into two parts. Resides in System. It is the primary data access model for.net applications Next version of ADO Can be divided into two parts Providers DataSets Resides in System.Data namespace It enables connection to the data source Each

More information

Oracle Data Provider for.net

Oracle Data Provider for.net Oracle Data Provider for.net Oracle TimesTen In-Memory Database Support User's Guide 11g Release 2 (11.2) for Windows E18485-05 March 2012 Oracle Data Provider for.net (ODP.NET) is an implementation of

More information

Oracle Data Provider for.net

Oracle Data Provider for.net Oracle Data Provider for.net Oracle TimesTen In-Memory Database Support User's Guide 12c Release 1 (12.1) for Windows E38358-01 April 2013 Oracle Data Provider for.net (ODP.NET) is an implementation of

More information

EVALUATION COPY. Unauthorized reproduction or distribution is prohibited. Table of Contents (Detailed)

EVALUATION COPY. Unauthorized reproduction or distribution is prohibited. Table of Contents (Detailed) Table of Contents (Detailed) Chapter 1 Introduction to ADO.NET... 1 Microsoft Data Access Technologies... 3 ODBC... 4 OLE DB... 5 ActiveX Data Objects (ADO)... 6 Accessing SQL Server before ADO.NET...

More information

Mobile MOUSe ADO.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE

Mobile MOUSe ADO.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE Mobile MOUSe ADO.NET FOR DEVELOPERS PART 1 ONLINE COURSE OUTLINE COURSE TITLE ADO.NET FOR DEVELOPERS PART 1 COURSE DURATION 14 Hour(s) of Interactive Training COURSE OVERVIEW ADO.NET is Microsoft's latest

More information

Index. Symbols. ABS (Absolute) mathematical function, 295 Absolute function listing (10.1), 295

Index. Symbols. ABS (Absolute) mathematical function, 295 Absolute function listing (10.1), 295 Index Symbols + (Add) operator, 280 & (And) operator, 282, 286 / (Divide) Operator, 281 = (Equals) Operator, 284 = (Equal To) Operator, 282 ^ (Exclusive Or) Operator, 283 > (Greater Than) Operator, 284

More information

Oracle Data Provider for.net

Oracle Data Provider for.net Oracle Data Provider for.net Oracle TimesTen In-Memory Database Support User's Guide 11g Release 2 (11.2) for Windows E21641-05 June 2014 Oracle Data Provider for.net (ODP.NET) is an implementation of

More information

LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS *** ADO.NET

LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS *** ADO.NET LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS *** ADO.NET Nội dung trình bày Giới thiệu Connected Model Disconnected Model 2 Giới thiệu ADO.NET là một tập các lớp thư viện được sử dụng để truy xuất dữ liệu Thêm/xóa/sửa

More information

> ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs

> ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs > ADO.NET: ActiveX Data Objects for.net, set of components used to interact with any DB/ XML docs It supports 2 models for interacting with the DB: 1. Disconnected Model 2. Connection Oriented Model Note:

More information

ADO.NET Guide. RDM Server 8.2

ADO.NET Guide. RDM Server 8.2 RDM Server 8.2 ADO.NET Guide 1 Trademarks Raima Database Manager ("RDM"), RDM Embedded, RDM Server, RDM Mobile, XML, db_query, db_revise and Velocis are trademarks of Birdstep Technology and may be registered

More information

Oracle Data Provider for.net

Oracle Data Provider for.net Oracle Data Provider for.net Oracle TimesTen In-Memory Database Support User's Guide 12c Release 1 (12.1) for Windows E38358-03 September 2013 Oracle Data Provider for.net (ODP.NET) is an implementation

More information

ADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT

ADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT ADO.NET.NET Data Access and Manipulation Mechanism Nikita Gandotra Assistant Professor, Department of Computer Science & IT Overview What is ADO.NET? ADO VS ADO.NET ADO.NET Architecture ADO.NET Core Objects

More information

B Nagaraju

B Nagaraju Agenda What to expect in this session Complete ADO.NET Support available in.net Clear Conceptual View Supported by Demos Understand 3 generations of DataAccess.NET Around 9 minutes of videos Free Stuff

More information

ITcertKing. The latest IT certification exam materials. IT Certification Guaranteed, The Easy Way!

ITcertKing.   The latest IT certification exam materials. IT Certification Guaranteed, The Easy Way! ITcertKing The latest IT certification exam materials http://www.itcertking.com IT Certification Guaranteed, The Easy Way! Exam : 70-561-VB Title : TS: MS.NET Framework 3.5, ADO.NET Application Development

More information

Oracle Rdb Technical Forums

Oracle Rdb Technical Forums Oracle Rdb Technical Forums Connecting to Oracle Rdb from.net Jim Murray Oracle New England Development Centre 1 Agenda.NET Connectivity Overview ADO.NET Overview Oracle Data Provider for.net Oracle Rdb

More information

UNIT III APPLICATION DEVELOPMENT ON.NET

UNIT III APPLICATION DEVELOPMENT ON.NET UNIT III APPLICATION DEVELOPMENT ON.NET Syllabus: Building Windows Applications, Accessing Data with ADO.NET. Creating Skeleton of the Application Select New->Project->Visual C# Projects->Windows Application

More information

Oracle is a registered trademark, and Oracle Rdb, Oracle RMU and Oracle SQL/Services are trademark or registered trademarks of Oracle Corporation.

Oracle is a registered trademark, and Oracle Rdb, Oracle RMU and Oracle SQL/Services are trademark or registered trademarks of Oracle Corporation. Oracle Rdb Data Provider for NET Developer's Guide V73-2 March 2010 Oracle Rdb Data Provider for NET Developer s Guide, Release 73-2 Copyright 2010 Oracle Corporation All rights reserved The Programs (which

More information

Exception/Error Handling in ASP.Net

Exception/Error Handling in ASP.Net Exception/Error Handling in ASP.Net Introduction Guys, this is not first time when something is written for exceptions and error handling in the web. There are enormous articles written earlier for this

More information

STEP 1: CREATING THE DATABASE

STEP 1: CREATING THE DATABASE Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM

More information

.Net Interview Questions

.Net Interview Questions .Net Interview Questions 1.What is.net? NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who

More information

Saikat Banerjee Page 1

Saikat Banerjee Page 1 1.What is.net? NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who need.net to run an application

More information

EDB Postgres Advanced Server.NET Connector Guide

EDB Postgres Advanced Server.NET Connector Guide EDB Postgres Advanced Server.NET Connector Guide EDB Postgres Advanced Server 9.5 formerly Postgres Plus Advanced Server 9.5 March 7, 2016 EDB Postgres Advanced Server.NET Connector Guide, Version 9.5

More information

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year! EXAMGOOD QUESTION & ANSWER Exam Good provides update free of charge in one year! Accurate study guides High passing rate! http://www.examgood.com Exam : 70-561C++ Title : TS: MS.NET Framework 3.5, ADO.NET

More information

EDB Postgres Advanced Server.NET Connector Guide

EDB Postgres Advanced Server.NET Connector Guide EDB Postgres Advanced Server.NET Connector Guide Connectors Release 10.0.0.NET 4.0 Connector Version 2.2.4.4.NET 4.5 Connector Version 3.1.9.4 August 18, 2017 EDB Postgres Advanced Server.NET Connector

More information

EDB Postgres Advanced Server.NET Connector Guide

EDB Postgres Advanced Server.NET Connector Guide EDB Postgres Advanced Server.NET Connector Guide Connectors Release 11.0.1.NET 4.0 Connector Version 2.2.4.5.NET 4.5/4.5.1 Connector Version 4.0.2.1.NET Standard 2.0 Connector Version 4.0.2.1 November

More information

EDB Postgres Advanced Server.NET Connector Guide

EDB Postgres Advanced Server.NET Connector Guide EDB Postgres Advanced Server.NET Connector Guide Connectors Release 10.0.1.NET 4.0 Connector Version 2.2.4.4.NET 4.5/4.5.1 Connector Version 3.2.2.1.NET Standard 1.3 Connector Version 3.2.2.1 January 15,

More information

Industrial Programming

Industrial Programming Industrial Programming Lecture 6: C# Data Manipulation Industrial Programming 1 The Stream Programming Model File streams can be used to access stored data. A stream is an object that represents a generic

More information

Model Question Paper. Credits: 4 Marks: 140

Model Question Paper. Credits: 4 Marks: 140 Model Question Paper Subject Code: BT0075 Subject Name: RDBMS and MySQL Credits: 4 Marks: 140 Part A (One mark questions) 1. MySQL Server works in A. client/server B. specification gap embedded systems

More information

LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS ADO.NET

LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS ADO.NET LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS ADO.NET Phạm Minh Tuấn pmtuan@fit.hcmuns.edu.vn Nội dung trình bày Giới thiệu Connected Model Disconnected Model Khoa CNTT - ĐH KHTN 08/09/11 Giói thiệu 4 ADO.NET là một

More information

Connectivity Pack for Microsoft Guide

Connectivity Pack for Microsoft Guide HP Vertica Analytic Database Software Version: 7.0.x Document Release Date: 5/2/2018 Legal Notices Warranty The only warranties for Micro Focus products and services are set forth in the express warranty

More information

Visual Basic.NET Complete Sybex, Inc.

Visual Basic.NET Complete Sybex, Inc. SYBEX Sample Chapter Visual Basic.NET Complete Sybex, Inc. Chapter 14: A First Look at ADO.NET Copyright 2002 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. No part

More information

Oracle is a registered trademark, and Oracle Rdb, Oracle RMU and Oracle SQL/Services are trademark or registered trademarks of Oracle Corporation.

Oracle is a registered trademark, and Oracle Rdb, Oracle RMU and Oracle SQL/Services are trademark or registered trademarks of Oracle Corporation. Oracle Rdb Data Provider for NET Release Notes V73-10 January 2009 Oracle Rdb Data Provider for NET Release Notes, Release 73-10 Copyright 2009 Oracle Corporation All rights reserved The Programs (which

More information

ADO.NET 2.0. database programming with

ADO.NET 2.0. database programming with TRAINING & REFERENCE murach s ADO.NET 2.0 database programming with (Chapter 3) VB 2005 Thanks for downloading this chapter from Murach s ADO.NET 2.0 Database Programming with VB 2005. We hope it will

More information

How to work with data sources and datasets

How to work with data sources and datasets Chapter 14 How to work with data sources and datasets Objectives Applied Use a data source to get the data that an application requires. Use a DataGridView control to present the data that s retrieved

More information

JapanCert 専門 IT 認証試験問題集提供者

JapanCert 専門 IT 認証試験問題集提供者 JapanCert 専門 IT 認証試験問題集提供者 http://www.japancert.com 1 年で無料進級することに提供する Exam : 070-561-Cplusplus Title : TS: MS.NET Framework 3.5, ADO.NET Application Development Vendors : Microsoft Version : DEMO Get Latest

More information

MySQL Connector/NET Developer Guide

MySQL Connector/NET Developer Guide MySQL Connector/NET Developer Guide Abstract This manual describes how to install and configure MySQL Connector/NET, the connector that enables.net applications to communicate with MySQL servers, and how

More information

Poom Malakul Na Ayudhya

Poom Malakul Na Ayudhya DataClient 1.0.6 Manual By Poom Malakul Na Ayudhya pmalakul@gmail.com (Under Development) Page 1 Contents 1. Introduction 2. Installation 2.1. Knowledge Requirements 2.2. Software Requirements 2.3. DataClient

More information

PREPARATION. Install MyGeneration and add the doodads project to your solution

PREPARATION. Install MyGeneration and add the doodads project to your solution PREPARATION Database Design Tips (MS SQL Server) 1. For each table, use a single identity column as the primary key. 2. For each table, add a column named "RowVersion" with a datatype of timestamp. (doodads

More information

REXX/SQL for VM. User s Guide. Software Product Research

REXX/SQL for VM. User s Guide. Software Product Research REXX/SQL for VM User s Guide Software Product Research REXX/SQL for VM Version 1 Copyright Software Product Research 2000 SQL/Monitoring Facility is a product name owned by Software Product Research All

More information

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik Advanced Programming C# Lecture 5 dr inż. malgorzata.janik@pw.edu.pl Today you will need: Classes #6: Project I 10 min presentation / project Presentation must include: Idea, description & specification

More information

The ADO Connection Object is used to create an open connection to a data source. Through this connection, you can access and manipulate a database.

The ADO Connection Object is used to create an open connection to a data source. Through this connection, you can access and manipulate a database. Unit 5: Accessing Databases with ASP and ADO Active Database Object(ADO) ADO represents a collection of objects that, via ASP, you can easily manipulate to gain incredible control over the information

More information

CMPT 354 Database Systems I

CMPT 354 Database Systems I CMPT 354 Database Systems I Chapter 8 Database Application Programming Introduction Executing SQL queries: Interactive SQL interface uncommon. Application written in a host language with SQL abstraction

More information

Working with Data in ASP.NET 2.0 :: Using Existing Stored Procedures for the Typed DataSet s TableAdapters Introduction

Working with Data in ASP.NET 2.0 :: Using Existing Stored Procedures for the Typed DataSet s TableAdapters Introduction 1 of 20 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

A201 Object Oriented Programming with Visual Basic.Net

A201 Object Oriented Programming with Visual Basic.Net A201 Object Oriented Programming with Visual Basic.Net By: Dr. Hossein Computer Science and Informatics IU South Bend 1 What do we need to learn in order to write computer programs? Fundamental programming

More information

Pro ODP.NET for Oracle. Database 11 g. Edmund Zehoo. Apress

Pro ODP.NET for Oracle. Database 11 g. Edmund Zehoo. Apress Pro ODP.NET for Oracle Database 11 g Edmund Zehoo Apress Contents Contents at a Glance iv Contents....v About the Author About the Technical Reviewer Acknowledgments xvii xviii xix Chapter 1: Introduction

More information

Senturus Analytics Connector. User Guide Cognos to Tableau Senturus, Inc. Page 1

Senturus Analytics Connector. User Guide Cognos to Tableau Senturus, Inc. Page 1 Senturus Analytics Connector User Guide Cognos to Tableau 2019-2019 Senturus, Inc. Page 1 Overview This guide describes how the Senturus Analytics Connector is used from Tableau after it has been configured.

More information

Copy Datatable Schema To Another Datatable Vb.net

Copy Datatable Schema To Another Datatable Vb.net Copy Datatable Schema To Another Datatable Vb.net NET Framework 4.6 and 4.5 The schema of the cloned DataTable is built from the columns of the first enumerated DataRow object in the source table The RowState

More information

Unity and MySQL. Versions: Unity 3.0.0f5; MySQL Author: Jonathan Wood. Alias: Zumwalt. Date: 10/8/2010. Updated: 10/12/2010 to include JS code

Unity and MySQL. Versions: Unity 3.0.0f5; MySQL Author: Jonathan Wood. Alias: Zumwalt. Date: 10/8/2010. Updated: 10/12/2010 to include JS code Versions: Unity 3.0.0f5; MySQL 5.2.28 Author: Jonathan Wood Alias: Zumwalt Date: 10/8/2010 Updated: 10/12/2010 to include JS code Document Version 1.0.1 Unity and MySQL Table of Contents Unity and MySQL...

More information

Setting Synchronization Direction

Setting Synchronization Direction In Visual Studio 2008, the Local Database Cache configures a SQL Server Compact 3.5 database and a set of partial classes that enable Sync Services for ADO.NET. Because Visual Studio generates partial

More information

Contents. Chapter 1 Introducing ADO.NET...1. Acknowledgments...xiii. About the Authors...xv. Introduction...xix

Contents. Chapter 1 Introducing ADO.NET...1. Acknowledgments...xiii. About the Authors...xv. Introduction...xix Acknowledgments...xiii About the Authors...xv Introduction...xix Chapter 1 Introducing ADO.NET...1 How We Got Here...2 What Do These Changes Mean?...5 ADO.NET A New Beginning...7 Comparing ADOc and ADO.NET...8

More information

Enzo Framework API Reference Guide

Enzo Framework API Reference Guide Enzo Framework API Reference Guide This document provides a programmatic reference guide for the Enzo Framework API. BETA DOCUMENTATION Blue Syntax Consulting specializes in the Microsoft Azure platform

More information

Real4Test. Real IT Certification Exam Study materials/braindumps

Real4Test.   Real IT Certification Exam Study materials/braindumps Real4Test http://www.real4test.com Real IT Certification Exam Study materials/braindumps Exam : 70-561-Csharp Title : TS:MS.NET Framework 3.5,ADO.NET Application Development Vendors : Microsoft Version

More information

Oracle is a registered trademark, and Oracle Rdb, Oracle RMU and Oracle SQL/Services are trademark or registered trademarks of Oracle Corporation.

Oracle is a registered trademark, and Oracle Rdb, Oracle RMU and Oracle SQL/Services are trademark or registered trademarks of Oracle Corporation. Oracle Rdb Data Provider for NET Release Notes V73-11 December 2009 Oracle Rdb Data Provider for NET Release Notes, Release 73-11 Copyright 2009 Oracle Corporation All rights reserved The Programs (which

More information

13 Creation and Manipulation of Tables and Databases

13 Creation and Manipulation of Tables and Databases 150.420 Informationslogistik SQL Handout No. 9 SS 2013 13 Creation and Manipulation of Tables and Databases 13.1 Creation and Deletion Databases can be created and deleted using respectively. CREATE DATABASE

More information

API Gateway Version September Key Property Store User Guide

API Gateway Version September Key Property Store User Guide API Gateway Version 7.5.2 15 September 2017 Key Property Store User Guide Copyright 2017 Axway All rights reserved. This documentation describes the following Axway software: Axway API Gateway 7.5.2 No

More information

Lecture 10: Database. Lisa (Ling) Liu

Lecture 10: Database. Lisa (Ling) Liu Chair of Software Engineering C# Programming in Depth Prof. Dr. Bertrand Meyer March 2007 May 2007 Lecture 10: Database Lisa (Ling) Liu Database and Data Representation Database Management System (DBMS):

More information

KB_SQL Release Notes Version 4.3.Q2. Knowledge Based Systems, Inc.

KB_SQL Release Notes Version 4.3.Q2. Knowledge Based Systems, Inc. KB_SQL Release Notes Version 4.3.Q2 Copyright 2003 by All rights reserved., Ashburn, Virginia, USA. Printed in the United States of America. No part of this manual may be reproduced in any form or by any

More information

MySQL Connector/Net Developer Guide

MySQL Connector/Net Developer Guide MySQL Connector/Net Developer Guide Abstract This manual describes how to install and configure MySQL Connector/Net, the connector that enables.net applications to communicate with MySQL servers, and how

More information

UNIT III - JDBC Two Marks

UNIT III - JDBC Two Marks UNIT III - JDBC Two Marks 1.What is JDBC? JDBC stands for Java Database Connectivity, which is a standard Java API for databaseindependent connectivity between the Java programming language and a wide

More information

Data Layer. Reference Documentation

Data Layer. Reference Documentation Data Layer Reference Documentation Release Issue Date 1 1 March 2015 Copyright European Union, 1995 2015 Reproduction is authorised, provided the source is acknowledged, save where otherwise stated. Where

More information

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1

Create a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1 Create a Windows Application that Reads- Writes PI Data via PI OLEDB Page 1 1.1 Create a Windows Application that Reads-Writes PI Data via PI OLEDB 1.1.1 Description The goal of this lab is to learn how

More information

Saranya Sriram Developer Evangelist Microsoft Corporation India

Saranya Sriram Developer Evangelist Microsoft Corporation India Saranya Sriram Developer Evangelist Microsoft Corporation India Microsoft s Cloud ReCap Azure Services Platform Agenda Data is King Motivation? Why data outside your premise? Microsoft s Data Storage offerings

More information

ASP.NET Web Forms Programming Using Visual Basic.NET

ASP.NET Web Forms Programming Using Visual Basic.NET ASP.NET Web Forms Programming Using Visual Basic.NET Duration: 35 hours Price: $750 Delivery Option: Attend training via an on-demand, self-paced platform paired with personal instructor facilitation.

More information

Chapter 8. ADO.NET Data Containers... 1 Data Adapters... 1 In-Memory Data Container Objects Conclusion... 35

Chapter 8. ADO.NET Data Containers... 1 Data Adapters... 1 In-Memory Data Container Objects Conclusion... 35 Table of Contents... 1 Data Adapters... 1 In-Memory Data Container Objects... 15 Conclusion... 35 Page 1 Return to Table of Contents Chapter 8 ADO.NET Data Containers In this chapter: Data Adapters...355

More information

Cookbook for using SQL Server DTS 2000 with.net

Cookbook for using SQL Server DTS 2000 with.net Cookbook for using SQL Server DTS 2000 with.net Version: 1.0 revision 15 Last updated: Tuesday, July 23, 2002 Author: Gert E.R. Drapers (GertD@SQLDev.Net) All rights reserved. No part of the contents of

More information

Traffic violations revisited

Traffic violations revisited Traffic violations revisited November 9, 2017 In this lab, you will once again extract data about traffic violations from a CSV file, but this time you will use SQLite. First, download the following files

More information

.NET-6Weeks Project Based Training

.NET-6Weeks Project Based Training .NET-6Weeks Project Based Training Core Topics 1. C# 2. MS.Net 3. ASP.NET 4. 1 Project MS.NET MS.NET Framework The.NET Framework - an Overview Architecture of.net Framework Types of Applications which

More information

JAVA AND DATABASES. Summer 2018

JAVA AND DATABASES. Summer 2018 JAVA AND DATABASES Summer 2018 JDBC JDBC (Java Database Connectivity) an API for working with databases in Java (works with any tabular data, but focuses on relational databases) Works with 3 basic actions:

More information

Top 50 JDBC Interview Questions and Answers

Top 50 JDBC Interview Questions and Answers Top 50 JDBC Interview Questions and Answers 1) What is the JDBC? JDBC stands for Java Database Connectivity. JDBC is a Java API that communicates with the database and execute SQLquery. 2) What is a JDBC

More information

Talend User Component tgoogleanalyticsinput

Talend User Component tgoogleanalyticsinput Talend User Component tgoogleanalyticsinput Purpose This component addresses the needs of gathering Google Analytics data for a large number of profiles and fine-grained detail data. The component uses

More information

ODBC Client Driver PTC Inc. All Rights Reserved.

ODBC Client Driver PTC Inc. All Rights Reserved. 2017 PTC Inc. All Rights Reserved. 2 Table of Contents 1 Table of Contents 2 4 Overview 4 External Dependencies 4 Setup 5 Channel Properties General 5 Channel Properties Write Optimizations 6 Channel Properties

More information

PERSİSTENCE OBJECT RELATİON MAPPİNG

PERSİSTENCE OBJECT RELATİON MAPPİNG PERSİSTENCE Most of the applications require storing and retrieving objects in a persistent storage mechanism. This chapter introduces how to store and retrieve information in a persistent storage with

More information

TABLE OF CONTENTS. Data binding Datagrid 10 ComboBox 10 DropdownList 10. Special functions LoadFromSql* 11 FromXml/ToXml 12

TABLE OF CONTENTS. Data binding Datagrid 10 ComboBox 10 DropdownList 10. Special functions LoadFromSql* 11 FromXml/ToXml 12 TABLE OF CONTENTS Preparation Database Design Tips 2 Installation and Setup 2 CRUD procedures 3 doodads for tables 3 doodads for views 3 Concrete classes 3 ConnectionString 4 Enhancing concrete classes

More information

LABORATORY OF DATA SCIENCE. Data Access: Relational Data Bases. Data Science and Business Informatics Degree

LABORATORY OF DATA SCIENCE. Data Access: Relational Data Bases. Data Science and Business Informatics Degree LABORATORY OF DATA SCIENCE Data Access: Relational Data Bases Data Science and Business Informatics Degree RDBMS data access 2 Protocols and API ODBC, OLE DB, ADO, ADO.NET, JDBC Python DBAPI with ODBC

More information

Calling SQL from a host language (Java and Python) Kathleen Durant CS 3200

Calling SQL from a host language (Java and Python) Kathleen Durant CS 3200 Calling SQL from a host language (Java and Python) Kathleen Durant CS 3200 1 SQL code in other programming languages SQL commands can be called from within a host language (e.g., C++ or Java) program.

More information

JDBC, Transactions. Niklas Fors JDBC 1 / 38

JDBC, Transactions. Niklas Fors JDBC 1 / 38 JDBC, Transactions SQL in Programs Embedded SQL and Dynamic SQL JDBC Drivers, Connections, Statements, Prepared Statements Updates, Queries, Result Sets Transactions Niklas Fors (niklas.fors@cs.lth.se)

More information

C# Syllabus. MS.NET Framework Introduction

C# Syllabus. MS.NET Framework Introduction C# Syllabus MS.NET Framework Introduction The.NET Framework - an Overview Framework Components Framework Versions Types of Applications which can be developed using MS.NET MS.NET Base Class Library MS.NET

More information

Lab # 2. Data Definition Language (DDL) Eng. Alaa O Shama

Lab # 2. Data Definition Language (DDL) Eng. Alaa O Shama The Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Database Lab Lab # 2 Data Definition Language (DDL) Eng. Alaa O Shama October, 2015 Objective To be familiar

More information

TABLE OF CONTENTS. Data binding Datagrid 10 ComboBox 10 DropdownList 10

TABLE OF CONTENTS. Data binding Datagrid 10 ComboBox 10 DropdownList 10 TABLE OF CONTENTS Preparation Database Design Tips 2 Installation and Setup 2 CRUD procedures 3 doodads for tables 3 doodads for views 3 Concrete classes 3 ConnectionString 4 Enhancing concrete classes

More information

MySQL Connector/Net Developer Guide

MySQL Connector/Net Developer Guide MySQL Connector/Net Developer Guide Abstract This manual describes how to install and configure MySQL Connector/Net, the connector that enables.net applications to communicate with MySQL servers, and how

More information

13.1 Relational Databases (continued) 13.1 Relational Databases. - Logical model

13.1 Relational Databases (continued) 13.1 Relational Databases. - Logical model 13.1 Relational Databases 13.1 Relational Databases (continued) - A relational database is a collection of tables of data, each of which has one special column that stores the primary keys of the table

More information

13.1 Relational Databases

13.1 Relational Databases 13.1 Relational Databases - A relational database is a collection of tables of data, each of which has one special column that stores the primary keys of the table - Designing a relational database for

More information

Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release June 2015

Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release June 2015 Oracle Rdb Developer Tools for Visual Studio Developer's Guide Release 7.3.4.0 June 2015 Oracle Rdb Data Provider for.net Developer's Guide, Release 7.3.4.0 Copyright 2011, 2015 Oracle and/or its affiliates.

More information

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 14 Database Connectivity and Web Technologies

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 14 Database Connectivity and Web Technologies Database Systems: Design, Implementation, and Management Tenth Edition Chapter 14 Database Connectivity and Web Technologies Database Connectivity Mechanisms by which application programs connect and communicate

More information

VB. Microsoft. UPGRADE-MCSD MS.NET Skills to MCPD Entpse App Dvlpr Pt1

VB. Microsoft. UPGRADE-MCSD MS.NET Skills to MCPD Entpse App Dvlpr Pt1 Microsoft 70-553-VB UPGRADE-MCSD MS.NET Skills to MCPD Entpse App Dvlpr Pt1 Download Full Version : http://killexams.com/pass4sure/exam-detail/70-553-vb Answer: D QUESTION: 79 A Windows Forms application

More information

Senturus Analytics Connector. User Guide Cognos to Power BI Senturus, Inc. Page 1

Senturus Analytics Connector. User Guide Cognos to Power BI Senturus, Inc. Page 1 Senturus Analytics Connector User Guide Cognos to Power BI 2019-2019 Senturus, Inc. Page 1 Overview This guide describes how the Senturus Analytics Connector is used from Power BI after it has been configured.

More information

DO NOT COPY AMIT PHOTOSTUDIO

DO NOT COPY AMIT PHOTOSTUDIO AMIT PHOTOSTUDIO These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA) All rights

More information

Overview. Database Application Development. SQL in Application Code. SQL in Application Code (cont.)

Overview. Database Application Development. SQL in Application Code. SQL in Application Code (cont.) Overview Database Application Development Chapter 6 Concepts covered in this lecture: SQL in application code Embedded SQL Cursors Dynamic SQL JDBC SQLJ Stored procedures Database Management Systems 3ed

More information

Database Application Development

Database Application Development Database Application Development Chapter 6 Database Management Systems 3ed 1 Overview Concepts covered in this lecture: SQL in application code Embedded SQL Cursors Dynamic SQL JDBC SQLJ Stored procedures

More information

Database Application Development

Database Application Development Database Application Development Chapter 6 Database Management Systems 3ed 1 Overview Concepts covered in this lecture: SQL in application code Embedded SQL Cursors Dynamic SQL JDBC SQLJ Stored procedures

More information

Agenda & Reading. VB.NET Programming. Data Types. COMPSCI 280 S1 Applications Programming. Programming Fundamentals

Agenda & Reading. VB.NET Programming. Data Types. COMPSCI 280 S1 Applications Programming. Programming Fundamentals Agenda & Reading COMPSCI 80 S Applications Programming Programming Fundamentals Data s Agenda: Data s Value s Reference s Constants Literals Enumerations Conversions Implicitly Explicitly Boxing and unboxing

More information