mssql_query() sends a query to the currently active database on the server that's associated with the specified link identifier.
queryA SQL query.
link_identifierA 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_sizeThe number of records to batch in the buffer.