SQL SERVER – List All Objects Created on All Filegroups in Database
List All Objects Created on All Filegroups in Database
How to move table to particular file in database
moving Tables from one filegroup to another filegroup ENJOY š
Well, it canāt be done. You cannot move a table to a particular file in database.
Ā
What you can do is move the table to a particular file group. A FILEGROUP contains one or more data files. If the FILEGROUP contains more than one data file, SQL Server uses a proportional fill algorithm to make use of all data files in the FILEGROUP. On the other hand, if the FILEGROUP contains a single data file, then you can say that you have moved the table to a particular file without any doubts.
To move a table to a particular file file group, you need to re-create the clustered index on the table. Recreating an index effectively moves the table to the new FILEGROUP. The example below demonstrates the same.
Ā
Letās create a test database to work with:
USEĀ Ā [master]
GO
Ā
CREATEDATABASE [TestDB]
View original post 715 more words
Windows Azure pay per minute – Time is money !
Windows Azure pay per minute ā Time is money !
One of the most exciting news which got announced yesterday was related to Windows Azure. When ScottĀ Guthrie mentioned that billing model for Windows Azure is going to be per minute basis from now on, then there was a great cheer from the crowd.
This is indeed a game changing announcement. IĀ definitelyĀ foreseeĀ great amount of Windows Azure usage in the future, and this announcement is a great deal for the cloud adopters.
Earlier if I had used my cloud service for 20 minutes,and then turned that off I was charged still for the full hour. Lot manyĀ cloudĀ providers still operate with this policy.
Going forward I will be charged for what I use.Ā I will be charged for just 20 minutes, no questions asked.
Another super news which was really exciting for me was related to no charge for stopped VMs.
Think about a situation ā
Your Dev/Test folks works fromā¦
View original post 109 more words
free SQL server books for download
download some of the BEST SQL server books ALL for FREEE … books on more then 10 topics …
available for free download ..
1> execution plan
2> profiler
3> security
4> SQL hardware and many more ..
JUST click on —– Download eBook (PDF): Free —— beside the book you are interested in ………….
http://www.sqlservercentral.com/books/
ENJOY š
what the service pack of my SQL server

Hi all,
you may required to check your SQL service packs .. use below template to compare the same as of JULY 2013 …
use query as
1> select @@version
output ::
Microsoft SQL Server 2008 R2 (SP2) – 10.50.4000.0 (X64)
Jun 28 2012 08:36:30
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
2>
SELECT SERVERPROPERTY(‘productversion’)‘productversion’,SERVERPROPERTY(‘productlevel’)‘Servicepack’,SERVERPROPERTY(‘edition’)‘Product Edition’
use below chart for your reference
chart referred from –> http://sqlserverbuilds.blogspot.in/
Enjoy š
how to Slipstream SP2 or SP1 for SQL 2008 R2 – part 2 – installing reporting services along with database engine
Hi all,
as promised in my last post .. that I will test a scenario were in .. if we try to install reporting services using a Slipstream SP2 of SQL
server 2008 R2 .. then we may hit issues and installation may fail .. all together for reporting services ..
Nicolas Cain has covered more on this at this site –> Ā http://sirsql.net/blog/2012/11/15/issues-with-slipstreaming-service-pack-2-on-to-sql-2008-r2.html
you may refer the post over here how to Slipstream SP2 or SP1 for SQL 2008Ā R2
below are the step followed for installing SQL reporting services along with DB engine (using Slipstreamed SP2 of SQL server 2008 R2)
my OS was windows 7 SP1 64 bit ..
1>Ā selected reporting services and database engine on feature selection page ..
2> update setup media compatibility test PASSED .. signifying slipstream installation
3> Giving a named instance for this particular instance ..
4> choosing to install NATIVE mode Default installation for Reporting services
5> verified that our installation is a SLIPSTREAMED installation of SP2
6> confirm the features selected
7> summary log file .. shows success for reporting services feature installation ..
Notes:
I was able to connect to reporting services using SSMS server name as –> http://machinename:8080/ReportServer_SQL2008R2_INST3
I have tweaked the port no. from 80 to 8080 .. as I have trouble connecting to the same using reporting configuration
also I have recreated the reporting databases using reporting configuration GUI ..
all in all I did not face any particular issues with installation and this issue can be specific to windows OS
do share details .. if you are facing any issues for installation of reporting services using Slipstreamed method ..
Enjoy š
Related articles
- how to Slipstream SP2 or SP1 for SQL 2008 R2 (sqlcurve.wordpress.com)
When statistics was updated?
script to find the LAST update stats by KARTHICK ..
Statistics are used by the SQL Server optimizer to choose the efficient plan.Ā When we donāt have up to date statistics
it may end with SQL server optimizer choosing inefficient query plan. We can use below query to identify when SQL Server
statistics were last updated.
Change data capture (CDC) in SQL Server 2008
cool post by Mustafa on CDC .. Enjoy š
Introduction
Change data capture or (CDC) is very helpful feature in SQL Server 2008
Change Data Capture records INSERTs, UPDATEs, and DELETEs applied to SQL Server tables, and makes a record available of what changed, where, and when, in simple relational āchange tableā The SQL Server DBA can then easily monitor the activity for the logged table using these new audit tables .(Really i love this feature very nice microsoft)
Enabling Change Data Capture
CDC Enabling have two steps one on Database level and one on Tables level before Enabling CDC you must be Check CDC is enabled in any Database so Run the Query to check whether it is enabled for any database.
USE master
GO
SELECT [name], database_id, is_cdc_enabled
FROM sys.databases
GO
After you run this script you will see your all database name and id andĀ you will know Ā from this column Ā (IS_CDC_ENABLED) if CDCĀ feature is enabledā¦
View original post 1,212 more words
SQL SERVER – 2014 Announced and SQL Server 2014 Datasheet
SQL SERVER ā 2014 announced .. check an list of abstract level new features present in it .. ENJOY:)
INDEXING FUNDAMENTALS FOR MICROSOFT SQL SERVER – Jason Strate
Hi everyone ..
i just came across one cool session onĀ http://www.jasonstrate.comĀ covered by Jason Strate .. duringĀ Ā TechEd North America
if you are looking for material related to MCM certification then check out Jason site .. it really helpful (Jason has cleared MCM exam and has shared some unique experiences/preparation that one goes through ..)
duration : 75 mins (INDEXING FUNDAMENTALSĀ )
Enjoy š









