Pages
Home
C#.NET, ASP.NET, SQL Server, MVC
Home
Asp.Net
MVC
WCF
SQL SERVER
JQUERY
JAVASCRIPT
VALIDATIONS
Execute SqlServer script using command prompt
Posted by
Vikram Chowdary
Labels:
Sql Server
0 comments
Execute SQL Server script using command prompt.
sqlcmd -S myServer\instanceName -U sa -P sa1234 -d Northwind -i C:\myScript.sql
Sql server query to find all tables and space they used
Posted by
Vikram Chowdary
Labels:
Sql Server
0 comments
This query is used to find all tables and space they used
SELECT
sum
(
used_page_count
)
*
8
as
SizeKB
,
sum
(
row_count
)
as
[RowCount]
,
object_name
(
object_id
)
AS
TableName
FROM
sys
.
dm_db_partition_stats
WHERE
index_id
=
0
or
index_id
=
1
GROUP
BY
object_id
ORDER
BY
sum
(
used_page_count
)
DESC
Newer Posts
Older Posts
Home
Subscribe to:
Comments (Atom)
Labels
3-Tier Architecture
(1)
Asp.net
(13)
Dropdown
(1)
Fileupload
(1)
Gridview
(2)
Interview Questions
(1)
Javascript
(4)
JQuery
(2)
ListBox
(1)
MVC
(12)
oops Concept
(1)
Shorten your URL
(1)
Sql Server
(5)
Validations
(3)
WCF
(1)
Vikram Chowdary
Chandra
Blog Archive
►
2015
(4)
►
December
(3)
►
March
(1)
►
2014
(10)
►
November
(3)
►
March
(3)
►
February
(4)
▼
2013
(17)
►
December
(1)
►
November
(1)
►
October
(1)
►
September
(1)
►
August
(1)
►
July
(5)
▼
June
(2)
Execute SqlServer script using command prompt
Sql server query to find all tables and space they...
►
April
(1)
►
March
(4)
►
2012
(5)
►
May
(1)
►
February
(4)
►
2011
(6)
►
May
(1)
►
February
(5)
Followers
Total Pageviews
Powered by
Blogger
.
About Me
Vikram Chowdary
Hi this is vikram chandra, Software Engineer @ eBizSolutions
View my complete profile
Copyright ©
C#.NET, ASP.NET, SQL Server, MVC
Vikram Chandra
Theme
by
BloggerThemes
&
NewWPThemes
Sponsored by
iBlogtoBlog