C# Class Mono.Data.Tds.Protocol.Tds70

Inheritance: Tds
Show file Open project: kumpera/mono

Public Methods

Method Description
BeginExecuteNonQuery ( string cmdText, TdsMetaParameterCollection parameters, AsyncCallback callback, object state ) : IAsyncResult
BeginExecuteProcedure ( string prolog, string epilog, string cmdText, bool IsNonQuery, TdsMetaParameterCollection parameters, AsyncCallback callback, object state ) : IAsyncResult
BeginExecuteQuery ( string cmdText, TdsMetaParameterCollection parameters, AsyncCallback callback, object state ) : IAsyncResult
Connect ( Mono.Data.Tds.Protocol.TdsConnectionParameters connectionParameters ) : bool
EndExecuteNonQuery ( IAsyncResult ar ) : void
EndExecuteProcedure ( IAsyncResult ar ) : void
EndExecuteQuery ( IAsyncResult ar ) : void
ExecPrepared ( string commandText, TdsMetaParameterCollection parameters, int timeout, bool wantResults ) : void
ExecProc ( string commandText, TdsMetaParameterCollection parameters, int timeout, bool wantResults ) : void
Execute ( string commandText, TdsMetaParameterCollection parameters, int timeout, bool wantResults ) : void
Prepare ( string commandText, TdsMetaParameterCollection parameters ) : string
Reset ( ) : bool
Tds70 ( string server, int port ) : System
Tds70 ( string server, int port, int packetSize, int timeout ) : System
Tds70 ( string server, int port, int packetSize, int timeout, TdsVersion version ) : System
Unprepare ( string statementId ) : void

Protected Methods

Method Description
BuildExec ( string sql ) : string
ExecRPC ( TdsRpcProcId rpcId, string sql, TdsMetaParameterCollection parameters, int timeout, bool wantResults ) : void
ExecRPC ( string rpcName, TdsMetaParameterCollection parameters, int timeout, bool wantResults ) : void
IsValidRowCount ( byte status, byte op ) : bool
ProcessColumnInfo ( ) : void
ProcessReturnStatus ( ) : void

Private Methods

Method Description
BuildParameters ( ) : string
BuildPreparedParameters ( ) : string
BuildPreparedQuery ( string id ) : string
BuildProcedureCall ( string procedure ) : string
EncryptPassword ( string pass ) : string
FormatParameter ( TdsMetaParameter parameter ) : string
GetPrecision ( TdsColumnType type, int columnSize ) : byte
GetScale ( TdsColumnType type, int columnSize ) : byte
WriteParameterInfo ( TdsMetaParameter param ) : void
WritePreparedParameterInfo ( TdsMetaParameterCollection parameters ) : void
WriteRpcParameterInfo ( TdsMetaParameterCollection parameters ) : void

Method Details

BeginExecuteNonQuery() public method

public BeginExecuteNonQuery ( string cmdText, TdsMetaParameterCollection parameters, AsyncCallback callback, object state ) : IAsyncResult
cmdText string
parameters TdsMetaParameterCollection
callback AsyncCallback
state object
return IAsyncResult

BeginExecuteProcedure() public method

public BeginExecuteProcedure ( string prolog, string epilog, string cmdText, bool IsNonQuery, TdsMetaParameterCollection parameters, AsyncCallback callback, object state ) : IAsyncResult
prolog string
epilog string
cmdText string
IsNonQuery bool
parameters TdsMetaParameterCollection
callback AsyncCallback
state object
return IAsyncResult

BeginExecuteQuery() public method

public BeginExecuteQuery ( string cmdText, TdsMetaParameterCollection parameters, AsyncCallback callback, object state ) : IAsyncResult
cmdText string
parameters TdsMetaParameterCollection
callback AsyncCallback
state object
return IAsyncResult

BuildExec() protected method

protected BuildExec ( string sql ) : string
sql string
return string

Connect() public method

public Connect ( Mono.Data.Tds.Protocol.TdsConnectionParameters connectionParameters ) : bool
connectionParameters Mono.Data.Tds.Protocol.TdsConnectionParameters
return bool

EndExecuteNonQuery() public method

public EndExecuteNonQuery ( IAsyncResult ar ) : void
ar IAsyncResult
return void

EndExecuteProcedure() public method

public EndExecuteProcedure ( IAsyncResult ar ) : void
ar IAsyncResult
return void

EndExecuteQuery() public method

public EndExecuteQuery ( IAsyncResult ar ) : void
ar IAsyncResult
return void

ExecPrepared() public method

public ExecPrepared ( string commandText, TdsMetaParameterCollection parameters, int timeout, bool wantResults ) : void
commandText string
parameters TdsMetaParameterCollection
timeout int
wantResults bool
return void

ExecProc() public method

public ExecProc ( string commandText, TdsMetaParameterCollection parameters, int timeout, bool wantResults ) : void
commandText string
parameters TdsMetaParameterCollection
timeout int
wantResults bool
return void

ExecRPC() protected method

protected ExecRPC ( TdsRpcProcId rpcId, string sql, TdsMetaParameterCollection parameters, int timeout, bool wantResults ) : void
rpcId TdsRpcProcId
sql string
parameters TdsMetaParameterCollection
timeout int
wantResults bool
return void

ExecRPC() protected method

protected ExecRPC ( string rpcName, TdsMetaParameterCollection parameters, int timeout, bool wantResults ) : void
rpcName string
parameters TdsMetaParameterCollection
timeout int
wantResults bool
return void

Execute() public method

public Execute ( string commandText, TdsMetaParameterCollection parameters, int timeout, bool wantResults ) : void
commandText string
parameters TdsMetaParameterCollection
timeout int
wantResults bool
return void

IsValidRowCount() protected method

protected IsValidRowCount ( byte status, byte op ) : bool
status byte
op byte
return bool

Prepare() public method

public Prepare ( string commandText, TdsMetaParameterCollection parameters ) : string
commandText string
parameters TdsMetaParameterCollection
return string

ProcessColumnInfo() protected method

protected ProcessColumnInfo ( ) : void
return void

ProcessReturnStatus() protected method

protected ProcessReturnStatus ( ) : void
return void

Reset() public method

public Reset ( ) : bool
return bool

Tds70() public method

public Tds70 ( string server, int port ) : System
server string
port int
return System

Tds70() public method

public Tds70 ( string server, int port, int packetSize, int timeout ) : System
server string
port int
packetSize int
timeout int
return System

Tds70() public method

public Tds70 ( string server, int port, int packetSize, int timeout, TdsVersion version ) : System
server string
port int
packetSize int
timeout int
version TdsVersion
return System

Unprepare() public method

public Unprepare ( string statementId ) : void
statementId string
return void