SQL SERVER – List All Objects Created on All Filegroups in Database

June 19, 2013 Leave a comment

List All Objects Created on All Filegroups in Database

Categories: INDEXES

How to move table to particular file in database

June 19, 2013 Leave a comment

moving Tables from one filegroup to another filegroup ENJOY šŸ™‚

Vishal's avatarSql And Me

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

Categories: INDEXES

Windows Azure pay per minute – Time is money !

June 17, 2013 Leave a comment

Windows Azure pay per minute – Time is money !

Anup Sivadas Warrier's avatarCloud & SQLSailor

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.

Time is money

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

Categories: INDEXES

free SQL server books for download

June 16, 2013 Leave a comment

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/

freeebook

 

ENJOY šŸ™‚

what the service pack of my SQL server

June 16, 2013 2 comments

 

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

 

 

 

 

 

SP_list

 

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

June 15, 2013 Leave a comment

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 ..

1

2> update setup media compatibility test PASSED .. signifying slipstream installation

2

3> Giving a named instance for this particular instance ..

3

4> choosing to install NATIVE mode Default installation for Reporting services

4

5> verified that our installation is a SLIPSTREAMED installation of SP2

5

6> confirm the features selected

6

7> summary log file .. shows success for reporting services feature installation ..

7

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 šŸ™‚

When statistics was updated?

June 12, 2013 Leave a comment

script to find the LAST update stats by KARTHICK ..

Karthick P.K's avatarSQLServerScribbles.COM

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.

View original post

Categories: INDEXES

Change data capture (CDC) in SQL Server 2008

June 10, 2013 1 comment

cool post by Mustafa on CDC .. Enjoy šŸ™‚

Mustafa EL-Masry's avatarDB Cloud TECH

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

Categories: INDEXES

SQL SERVER – 2014 Announced and SQL Server 2014 Datasheet

June 9, 2013 Leave a comment

SQL SERVER – 2014 announced .. check an list of abstract level new features present in it .. ENJOY:)

Categories: General

INDEXING FUNDAMENTALS FOR MICROSOFT SQL SERVER – Jason Strate

June 8, 2013 Leave a comment

Hi everyone ..

i just came across one cool session onĀ http://www.jasonstrate.comĀ covered by Jason Strate .. duringĀ Ā TechEd North America

StrateJason

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Ā )

http://www.jasonstrate.com/2013/06/my-teched-presentation-indexing-fundamentals-for-microsoft-sql-server/

Enjoy šŸ™‚

Categories: INDEXES Tags:
Design a site like this with WordPress.com
Get started