A Sandcastle Documented Class Library

# RelationalDataProvider CreateTable Method

Creates a database table.

Namespace: Dundas.BI.Data.DataProviders.Relational
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public virtual string CreateTable(
    	IDisposable connection,
    	IDataReader tableDataReader,
    	string tableName,
    	bool forceRecreate
    )

    Public Overridable Function CreateTable (
    	connection As IDisposable,
    	tableDataReader As IDataReader,
    	tableName As String,
    	forceRecreate As Boolean
    ) As String

    public:
    virtual String^ CreateTable(
    	IDisposable^ connection,
    	IDataReader^ tableDataReader,
    	String^ tableName,
    	bool forceRecreate
    )

    abstract CreateTable :
            connection : IDisposable *
            tableDataReader : IDataReader *
            tableName : string *
            forceRecreate : bool -> string
    override CreateTable :
            connection : IDisposable *
            tableDataReader : IDataReader *
            tableName : string *
            forceRecreate : bool -> string

#### Parameters

connection
  Type: System
  IDisposable
  Opened connection.
tableDataReader
  Type: System.Data
  IDataReader
  Table data reader.
tableName
  Type: System
  String
  Table name.
forceRecreate
  Type: System
  Boolean
  If
  and table exists, throw exception, otherwise - drop and recreate the table.

#### Return Value

Type: String
Table name. This name maybe different than tableName.
Exceptions

Exception | Condition
--- | ---
NotSupportedException | Thrown when the data provider does not support creating tables.

Remarks
Table name returned is a "full" name and maybe different than tableName.
See Also

#### Reference

RelationalDataProvider Class
Dundas.BI.Data.DataProviders.Relational Namespace