Click here to Skip to main content
15,903,724 members
Home / Discussions / Database
   

Database

 
GeneralRe: use of datetime datatype Pin
vinodh.s26-Feb-08 9:48
vinodh.s26-Feb-08 9:48 
GeneralThey will not let me hit the database until the last minute. Help !!! [modified] Pin
crystal915426-Feb-08 5:52
crystal915426-Feb-08 5:52 
GeneralRe: They will not let me hit the database until the last minute. Help !!! Pin
SimulationofSai26-Feb-08 7:24
SimulationofSai26-Feb-08 7:24 
GeneralRe: They will not let me hit the database until the last minute. Help !!! Pin
crystal915426-Feb-08 8:13
crystal915426-Feb-08 8:13 
GeneralHelp! ADO . NET connecting to SQL Server 2005 Pin
D_Ana26-Feb-08 5:43
D_Ana26-Feb-08 5:43 
GeneralRe: Help! ADO . NET connecting to SQL Server 2005 Pin
Xmen Real 26-Feb-08 6:20
professional Xmen Real 26-Feb-08 6:20 
GeneralRe: Help! ADO . NET connecting to SQL Server 2005 Pin
D_Ana26-Feb-08 9:35
D_Ana26-Feb-08 9:35 
GeneralRe: Help! ADO . NET connecting to SQL Server 2005 Pin
SimulationofSai26-Feb-08 7:46
SimulationofSai26-Feb-08 7:46 
GeneralRe: Help! ADO . NET connecting to SQL Server 2005 Pin
D_Ana26-Feb-08 9:44
D_Ana26-Feb-08 9:44 
GeneralFrom keyword not found where expected Pin
Waqas Hasan26-Feb-08 1:06
Waqas Hasan26-Feb-08 1:06 
GeneralRe: From keyword not found where expected Pin
Kschuler26-Feb-08 7:42
Kschuler26-Feb-08 7:42 
Questionhow to count number of records in table Pin
chithra.r25-Feb-08 22:31
chithra.r25-Feb-08 22:31 
AnswerRe: how to count number of records in table Pin
Joe25-Feb-08 22:53
Joe25-Feb-08 22:53 
GeneralRe: how to count number of records in table Pin
Ashfield25-Feb-08 23:54
Ashfield25-Feb-08 23:54 
@@Rowcount is only gives you the number of rows affected by the last query, for example

select count(*) from table1

will give an @@RowCount of 1

The best way I know of without using select count(*) is

EXEC sp_spaceused 'tablename'

which gives you

name rows reserved data index_size unused

If you only want an approximate count

select max(rows)<br />
from sysindexes <br />
where indid < 2<br />
and id = object_id('TableName')


(this is not 100% accurate as rows sysindexes is not always updated)

Bob
Ashfield Consultants Ltd

AnswerRe: how to count number of records in table Pin
Paddy Boyd26-Feb-08 1:05
Paddy Boyd26-Feb-08 1:05 
AnswerRe: how to count number of records in table Pin
GuyThiebaut26-Feb-08 4:37
professionalGuyThiebaut26-Feb-08 4:37 
AnswerRe: how to count number of records in table Pin
Chris Meech26-Feb-08 9:16
Chris Meech26-Feb-08 9:16 
QuestionHow to Calculate Percentile. Pin
Khawar Abbas125-Feb-08 20:23
Khawar Abbas125-Feb-08 20:23 
AnswerRe: How to Calculate Percentile. Pin
Joe25-Feb-08 22:55
Joe25-Feb-08 22:55 
AnswerRe: How to Calculate Percentile. Pin
Paul Conrad1-Mar-08 12:34
professionalPaul Conrad1-Mar-08 12:34 
GeneralDelete Record from Access DB Pin
tr_thorn25-Feb-08 19:48
tr_thorn25-Feb-08 19:48 
GeneralRe: Delete Record from Access DB Pin
Hesham Amin25-Feb-08 21:18
Hesham Amin25-Feb-08 21:18 
GeneralRe: Delete Record from Access DB Pin
tr_thorn26-Feb-08 0:32
tr_thorn26-Feb-08 0:32 
Generalstore string direct to database instead of table Pin
Xmen Real 25-Feb-08 19:01
professional Xmen Real 25-Feb-08 19:01 
GeneralRe: store string direct to database instead of table Pin
Christian Graus25-Feb-08 19:34
protectorChristian Graus25-Feb-08 19:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.