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,641건 1 페이지
  • RSS
기술자료 목록
2641
그누보드   185  2024-11-26 21:14 ~ 2024-11-26 21:22  
2640
그누보드   220  2024-11-22 10:52 ~ 2024-11-22 11:03  
2639
호스팅   215  2024-11-19 14:41 ~ 2024-11-19 21:17  
2638
Linux   154  2024-11-18 15:45 ~ 2024-11-18 15:48  
2637
일반   172  2024-11-15 16:45 ~ 2024-11-15 16:46  
2636
Secure   194  2024-11-06 18:48 ~ 2024-11-06 18:50  
2635
영카트   350  2024-10-21 13:44 ~ 2024-10-21 19:42  
2634
전자결제   740  2024-09-05 09:30  
2633
MySQL   994  2024-03-29 14:14 ~ 2024-03-29 14:14  
2632
그누보드   1231  2024-02-23 18:40 ~ 2024-02-24 06:13  
2631
JavaScript   1346  2024-02-16 18:50 ~ 2024-02-16 20:37  
2630
Java   1304  2024-02-06 16:49  
2629
PHP   1485  2024-02-06 16:42  
2628
호스팅   1400  2024-01-29 12:54  
2627
PHP   1363  2024-01-26 11:04 ~ 2024-01-26 11:13  
2626
MySQL   1539  2024-01-08 17:37 ~ 2024-03-14 16:00  
2625
SQL   1713  2024-01-08 12:36  
2624
영카트   1747  2024-01-04 14:57  
2623
일반   2633  2023-12-15 18:33  
2622
Android   2101  2023-11-30 18:48 ~ 2023-11-30 19:41  

검색

해피정닷컴 정보

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

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