1767. Class

1767.1. Zend\Db\Adapter\Driver\Sqlsrv\Connection

1767.1.1. Methods

1767.1.1.1. __construct

__construct()

Constructor

Parameters:array|resource
Throws ZendDbAdapterExceptionInvalidArgumentException:
 

1767.1.1.2. setDriver

setDriver()

Set driver

Parameters:Sqlsrv
Return type:Connection

1767.1.1.3. setProfiler

setProfiler()

@param ProfilerProfilerInterface $profiler

Return type:Connection

1767.1.1.4. getProfiler

getProfiler()

@return null|ProfilerProfilerInterface

1767.1.1.5. setConnectionParameters

setConnectionParameters()

Set connection parameters

Parameters:array
Return type:Connection

1767.1.1.6. getConnectionParameters

getConnectionParameters()

Get connection parameters

Return type:array

1767.1.1.7. getCurrentSchema

getCurrentSchema()

Get current schema

Return type:string

1767.1.1.8. setResource

setResource()

Set resource

Parameters:resource
Throws ExceptionInvalidArgumentException:
 
Return type:Connection

1767.1.1.9. getResource

getResource()

@return resource

1767.1.1.10. connect

connect()

Connect

Return type:null

1767.1.1.11. isConnected

isConnected()

Is connected

Return type:bool

1767.1.1.12. disconnect

disconnect()

Disconnect

1767.1.1.13. beginTransaction

beginTransaction()

Begin transaction

1767.1.1.14. commit

commit()

Commit

1767.1.1.15. rollback

rollback()

Rollback

1767.1.1.16. execute

execute()

Execute

Parameters:string
Throws ExceptionRuntimeException:
 
Return type:mixed

1767.1.1.17. prepare

prepare()

Prepare

Parameters:string
Return type:string

1767.1.1.18. getLastGeneratedValue

getLastGeneratedValue()

Get last generated id

Parameters:string
Return type:mixed