이베리스
Iberis
이베리스
전체 방문자
오늘
어제
  • 전체보기 (72)
    • Course (64)
      • MS-SQL (10)
      • MY-SQL (12)
      • Oracle (2)
      • PostgreSQL (1)
      • ASP.NET with C# (5)
      • PHP (14)
      • Java (1)
      • javaScript (11)
      • A quick tip (1)
      • CodeIgniter (1)
      • CSS (3)
      • 운영체제 (2)
      • Git (1)
      • 리눅스 (0)
    • Utility (4)
    • 와우 (2)
      • 애드온 (2)

블로그 메뉴

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

공지사항

인기 글

태그

  • 3자리
  • wowclassic
  • width
  • 19c
  • share
  • Benik
  • 삭제
  • 보안 주체
  • 15517
  • power point
  • MSSQL
  • 접속안됨
  • comma
  • 이베리스
  • 구조 복사
  • 테이블
  • 콤마
  • 공유폴더
  • 테이블 복사
  • error
  • dbo
  • 수동삭제
  • 1326
  • 와우클래식
  • Elv
  • 렌카드
  • 3DP
  • table
  • 쿼리
  • 자동 줄 바꿈

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
이베리스

Iberis

Course/MS-SQL

PHP | MSSQL and SQLSRV Function 비교

2016. 7. 6. 10:42
                                                                                                         

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 Parameters, How 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 Parameters, How 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 Parameters, How 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.


참고자료
http://blogs.msdn.com/b/brian_swan/archive/2010/03/10/mssql-vs-sqlsrv-what-s-the-difference-part-2.aspx
http://msdn.microsoft.com/ko-kr/library/cc296161(v=SQL.90).aspx 




출처 : http://happyjung.com/bbs/board.php?bo_table=lecture&wr_id=1083

저작자표시 비영리 변경금지 (새창열림)

'Course > MS-SQL' 카테고리의 다른 글

mssql 보안 주체 dbo 관련 에러 Error: 15517  (0) 2018.11.07
[MS SQL] 테이블 정의서 내용 추출하기  (0) 2016.07.15
데이터 export 시에 print 'processed *** total receords' 제거하기  (0) 2016.06.29
MSSQL CONVERT 시 varchar 잘림 문제  (0) 2016.06.23
text 형식의 필드 검색 방법  (0) 2016.06.22
    'Course/MS-SQL' 카테고리의 다른 글
    • mssql 보안 주체 dbo 관련 에러 Error: 15517
    • [MS SQL] 테이블 정의서 내용 추출하기
    • 데이터 export 시에 print 'processed *** total receords' 제거하기
    • MSSQL CONVERT 시 varchar 잘림 문제
    이베리스
    이베리스
    Developer

    티스토리툴바