I was wondering if anyone has a VB script which will count the fields in an SQL 2000 table, and if there are more than 5000 fields i need a true response.
fields are referred to as columns, if you mean rows then you can do this
function CountRows
dim rowcount
[connection open]
connection.execute("select 'Total' = count(*) from table")
rowcount = connection("Total")
[connection close]
if rowcount => 5000 then
CountRows = true
else
countRows = False
end if
end function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.