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 2,634건 81 페이지
  • RSS
기술자료 목록
1034
WindowsServer   27070  2011-12-28 16:30  
1033
Editor   17342  2011-12-27 14:22  
1032
HTML   15593  2011-12-26 14:18  
1031
ClassicASP   26187  2011-12-22 21:49 ~ 2015-01-26 00:00  
1030
HTML   28046  2011-12-19 22:46 ~ 2015-04-04 00:00  
1029
PHP   23693  2011-12-16 17:50 ~ 2017-12-01 23:10  
열람
PHP   35520  2011-12-16 14:24  
1027
PHP   14655  2011-12-16 11:56  
1026
PHP   39957  2011-12-10 17:48 ~ 2011-12-17 00:00  
1025
PHP   22259  2011-12-10 17:48  
1024
MySQL   16991  2011-12-01 23:15 ~ 2018-01-16 11:18  
1023
PHP   18728  2011-11-28 08:46 ~ 2017-01-13 00:00  
1022
HTML   19479  2011-11-24 20:03  
1021
Adobe   15017  2011-11-16 23:15  
1020
일반   18033  2011-11-14 22:25 ~ 2013-11-24 00:00  
1019
SNS   14426  2011-11-14 09:10  
1018
SNS   12752  2011-11-07 08:37  
1017
SNS   11941  2011-11-06 04:38  
1016
일반   13928  2011-11-06 01:16  
1015
전자결제   18248  2011-11-04 16:22 ~ 2011-11-05 00:00  

검색

해피정닷컴 정보

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

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