What is the datatype returned by count(*)
Answer Posted / lakshmi narayanan r
It will return INT. Proof is here...
SELECT COUNT(*) AS Total INTO tmpArchiveStoreMaster1 FROM
ArchiveStoreMaster asm
GO
sp_help tmpArchiveStoreMaster1
Name
Owner
Type
Created_datetime
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
------------------------------- -----------------------
tmpArchiveStoreMaster1
dbo
user table 2010-07-06
15:43:05.310
Column_name
Type
Computed Length
Prec Scale Nullable
TrimTrailingBlanks FixedLenNullInSource
Collation
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
----------------------------------- ----------- ----- -----
-----------------------------------
-----------------------------------
-----------------------------------
--------------------------------------------------------------------------------------------------------------------------------
Total
int
no 4
10 0 yes (n/a)
(n/a)
NULL
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the synonym of join?
How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?
How to backup encryption key ?
What are the purposes and advantages stored procedure?
Is sql server 2016 free?
Explain optimistic and pessimistic concurrency?
How to add additional conditions in SQL?
Why truncate is ddl?
How to create a simple table to test triggers in ms sql server?
Define synonym?
How to create user defined functions with parameters?
What does REVERT do in SQL Server 2005?
What are the different types of replication you can set up in sql server?
How do you implement session management in SQL Server mode?
What happens to a trigger with multiple affected rows?