|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
help in Sql query
<i><b>Originally posted by : sesh (Seshagiri_Rao@reyrey.com)</b></i><br />Hi,<br /> i need to find out the number of columns in a table(column count). can anyone help me out<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : sesh (Seshagiri_Rao@reyrey.com)</b></i><br />adding to my previous question query must be accessed by MsAcess or SqlServer<br /><br /><br />------------<br />sesh at 7/24/2002 3:43:18 PM<br /><br />Hi,<br /> i need to find out the number of columns in a table(column count). can anyone help me out<br />
|
|
#3
|
|||
|
|||
|
Access:
open a recordset and use the fields collection: rs.Fields.Count - 1 (0-based) SQLServer: select count(*) from sysobjects o, syscolumns c where o.id = c.id and o.name = 'MyTable' |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > help in Sql query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|