mssql_query
Send MS SQL query
&reftitle.description;
mixedmssql_query
stringquery
resourcelink_identifier
intbatch_size0
mssql_query sends a query to the currently active
database on the server that's associated with the specified link
identifier.
&reftitle.parameters;
query
A SQL query.
link_identifier
A MS SQL link identifier, returned by
mssql_connect or
mssql_pconnect.
If the link identifier isn't specified, the last opened link is
assumed. If no link is open, the function tries to establish a link
as if mssql_connect was called, and use it.
batch_size
The number of records to batch in the buffer.
&reftitle.returnvalues;
Returns a MS SQL result resource on success, &true; if no rows were
returned, or &false; on error.
&reftitle.examples;
mssql_query example
]]>
&reftitle.notes;
If the query returns multiple results then it is necessary to fetch all
results by mssql_next_result or free the results by
mssql_free_result before executing next query.
&reftitle.seealso;
mssql_select_db
mssql_connect