MSSQL and SQLSRV Function 비교 > 기술자료 | 해피정닷컴

MSSQL and SQLSRV Function 비교 > 기술자료

본문 바로가기

사이트 내 전체검색

MSSQL and SQLSRV Function 비교 > 기술자료

PHP MSSQL and SQLSRV Function 비교

페이지 정보


본문


                                                                                                         

MSSQL

SQLSRV

비고

mssql_bindsqlsrv_queryWith the sqlsrv API, stored procedure parameters are defined in an array that is passed to sqlsrv_query orsqlsrv_prepare. For more information and examples, see How to: Retrieve Output ParametersHow to: Retrieve Input/Output Parameters, andsqlsrv_next_result
mssql_closesqlsrv_closeThese functions are equivalent, but note that calling sqlsrv_closereturns a connection to a connection pool. For more information, seeConnection Pooling
mssql_connectsqlsrv_connectThese functions are equivalent, but note thatsqlsrv_connect attempts to use a pooled connection before it creates a new one. For more information, see Connection Pooling
mssql_data_seeksqlsrv_fetch
/
sqlsrv_fetch_array
The sqlsrv API provides forward-only reading of result sets by default. However, in v1.1 of the driver, you can specify and retrieve any row of a result set with sqlsrv_fetch orsqlsrv_fetch_array. For more information, seeSpecifying a Cursor Type and Selecting Rows.
mssql_executesqlsrv_queryThere are no special functions for executing stored procedures in thesqlsrv API. Stored procedures are executed with the sqlsrv_queryfunction. For more information and examples, see How to: Retrieve Output ParametersHow to: Retrieve Input/Output Parameters, andsqlsrv_next_result.
mssql_fetch_arraysqlsrv_fetch_array기능동일
mssql_fetch_assocsqlsrv_fetch_arrayThe sqlsrv_fetch_arrayfunction returns a row with both numeric and associative indexes by default. You can retrieve only an associative array by using theSQLSRV_FETCH_ASSOCconstant in the function call.
mssql_fetch_batch지원안함While the sqlsrv API does not have a function equivalent ofmssql_fetch_batch, the number of rows in a result set can obtained using sqlsrv_num_rows. As you process rows, you can track the number of remaining rows.
mssql_fetch_fieldsqlsrv_field_metadataThese functions both return metadata about a result set, although they each return slightly different metadata. Seemssql_fetch_field and  forsqlsrv_field_metadatadetails.
mssql_fetch_objectsqlsrv_fetch_object기능동일
mssql_fetch_rowsqlsrv_fetch_arrayThese functions are equivalent, but note that thesqlsrv_fetch_arrayfunction returns an array with both numeric and associative indexes by default. You can retrieve only a numeric array by using theSQLSRV_FETCH_NUMERICconstant in the function call.
mssql_field_length지원안함 Note that for some field types, the maximum length is returned by thesqlsrv_field_metadatafunction.
mssql_field_namesqlsrv_field_metadataIn addition to other information, the field name is retuned by thesqlsrv_field_metadatafunction.
mssql_field_seek지원안함 When using thesqlsrv_get_field function, fields must be accessed in order. The sqlsrv API does not provide a way to access fields randomly.
mssql_field_typesqlsrv_field_metadataIn addition to other information, the field name is retuned by thesqlsrv_field_metadatafunction.
mssql_free_resultsqlsrv_cancel기능동일
mssql_free_statementsqlsrv_free_stmtThese functions both free resources associated with a statement, but note that the sqlsrv_free_stmt does this for any statement (not only statements associated with stored procedures).
mssql_get_last_messagesqlsrv_errorsThese functions both return error information about the last operation performed, but the sqlsrv_errorsfunction returns information in an array (error code and error message).
mssql_guid_string지원안함 While the sqlsrv API does not provide a function for converting GUIDs to strings, you can convert GUIDS to string-compatible types on the server with theCONVERT function.
mssql_init지원안함 There is no special function for initializing stored procedures in thesqlsrv API. Stored procedures are executed with the sqlsrv_queryfunction. For more information and examples, see How to: Retrieve Output ParametersHow to: Retrieve Input/Output Parameters, andsqlsrv_next_result.
mssql_min_error_severity지원안함 The sqlsrv API does not provide functionality for filtering errors based on severity. For information on handling errors with thesqlsrv API, see How to: Configure Error and Warning Handling andHow to: Handle Errors and Warnings.
mssql_min_message_severity지원안함 The sqlsrv API does not provide functionality for filtering errors based on severity. For information on handling errors with thesqlsrv API, see How to: Configure Error and Warning Handling andHow to: Handle Errors and Warnings.
mssql_next_resultsqlsrv_next_result기능동일
mssql_num_fieldssqlsrv_num_fields기능동일
mssql_num_rowssqlsrv_num_rows기능동일
mssql_pconnectsqlsrv_connectThe default behavior of thesqlsrv_connect function is to open a pooled connection if one is available. When a script ends or whensqlsrv_close is called, the connection is returned to the connection pool. For more information, seeConnection Pooling.
mssql_querysqlsrv_query기능동일
mssql_resultsqlsrv_fetch
/
sqlsrv_get_field
The combination of thesqlsrv_fetch andsqlsrv_get_field functions are equivalent to themssql_result function. Calling sqlsrv_fetchmakes a row of data available for reading andsqlsrv_get_field reads fields in the current row.
mssql_rows_affectedsqlsrv_rows_affected기능동일
mssql_select_db지원안함 To select a database with the sqlsrv API, usesqlsrv_query to execute the following query: USE databaseName.


참고자료

댓글목록

등록된 댓글이 없습니다.


Total 195건 6 페이지
  • RSS
기술자료 목록
95
PHP   21856  2012-03-16 23:55 ~ 2014-12-28 00:00  
94
PHP   22934  2012-03-04 17:29  
93
PHP   21846  2012-03-04 17:09 ~ 2023-01-08 11:38  
92
PHP   27600  2012-03-01 21:47 ~ 2012-04-08 00:00  
91
PHP   15689  2012-02-11 08:05  
90
PHP   23707  2011-12-16 17:50 ~ 2017-12-01 23:10  
열람
PHP   35548  2011-12-16 14:24  
88
PHP   14676  2011-12-16 11:56  
87
PHP   39986  2011-12-10 17:48 ~ 2011-12-17 00:00  
86
PHP   22284  2011-12-10 17:48  
85
PHP   18743  2011-11-28 08:46 ~ 2017-01-13 00:00  
84
PHP   15998  2011-08-15 20:08  
83
PHP   15459  2011-07-26 07:10  
82
PHP   24797  2011-06-12 20:30 ~ 2024-02-28 09:43  
81
PHP   29472  2011-04-20 19:59  
80
PHP   22618  2011-03-27 21:51  
79
PHP   19642  2011-02-24 16:10 ~ 2021-11-23 09:25  
78
PHP   27869  2010-09-24 20:57  
77
PHP   17513  2010-08-25 11:34  
76
PHP   16143  2010-08-21 09:37 ~ 2014-10-06 00:00  

검색

해피정닷컴 정보

회사소개 회사연혁 협력사 오시는길 서비스 이용약관 개인정보 처리방침

회사명: 해피정닷컴   대표: 정창용   전화: 070-7600-3500   팩스: 042-670-8272
주소: (34368) 대전시 대덕구 대화로 160 대전산업용재유통단지 1동 222호
개인정보보호책임자: 정창용   사업자번호: 119-05-36414
통신판매업신고: 제2024-대전대덕-0405호 [사업자등록확인]  
Copyright 2001~2024 해피정닷컴. All Rights Reserved.