tableNrow: Number of Rows

View source: R/tableNrow.R

tableNrowR Documentation

Number of Rows

Description

Return the number of rows in a database table.

Usage

tableNrow(channel, sqtable)

Arguments

channel

an RODBC connection.

sqtable

a database table or view.

Value

Number of rows as integer.

See Also

tableDim and tableNcol also return the dimensions of a database table.

sqlQuery is the underlying function used to examine the table rows.

nrow is the base function to return the number of rows for data frames inside the R workspace.

MSSQL-package gives an overview of the package.

Examples

## Not run: 
con <- odbcConnect("myDatabase")

tableNrow(con, "sysusers")

## End(Not run)


MSSQL documentation built on Oct. 22, 2024, 9:06 a.m.