Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Count Fields in Table of SQL Server 7


Message #1 by Sergio Davi <davi@c...> on Fri, 22 Jun 2001 13:01:39 -0300
HI,

    SQL Server has a table called Syscolumns which has columns of all 
the tables. Use the following query.

    Select count(*) from syscolumns where id=3D
    (select id from sysobjects where type=3D'u' and name=3D'employee')

Hope this helps,

N.T.GOPALAKRISHNAN
  ----- Original Message -----
  From: Sergio Davi
  To: professional vb
  Sent: Friday, June 22, 2001 9:31 PM
  Subject: [pro_vb] Count Fields in Table of SQL Server 7



  Please

  How do i Count fields in table of Sql Server??


  Sergio Davi S Bezerra
  davi@c...
  sergiodavibezerra@h...
  UIN# 75143339


  Return to Index