Quantcast
Channel: SQL Server Database Engine Forum
Viewing all 15872 articles
Browse latest View live

Msg 3287, Level 16, State 1, Line 1 The file ID 1 on device 'D:\_DEV_file13.bak' is incorrectly formed and can not be read. Msg 3013, Level 16, State 1, Line 1 RESTORE DATABASE is terminating abnormally.

$
0
0
Getting error while restore SQl 2012 to sql 2014 

Upgrading sql server 2005 to 2008

$
0
0
I want to upgrade sql server 2005 to 2008 what are the things need to be taken care 

Failing to restore SQL 2008R2 SP2 Enterprise Edition with CDC enabled to SQL 2012 SP2 Standard Edition

$
0
0

We currently restore a CDC Enabled SQL2008R2 Enterprise Edition backup to a SQL2008R2 Standard Edition server for our OAT, but when I try to restore the same to SQL2012 Standard Edition using the same scripting I receive the error:

Database 'xx' cannot be opened. It has been marked SUSPECT by recovery. 
See the SQL Server errorlog for more information.
Msg 934, Level 21, State 1, Line 3
SQL Server cannot load database 'xx' because Change Data Capture is enabled. 
The currently installed edition of SQL Server does not support Change Data Capture. 
Either disable Change Data Capture in the database by using a supported edition of SQL Server, 
or upgrade the instance to one that supports Change Data Capture.

My question is, have the restrictions been tightened up for SQL2012?

Thanks

April TechNet Guru results were announced! Are you entering for May?

$
0
0

The results for April's TechNet Guru competition were been posted!

http://blogs.technet.com/b/wikininjas/archive/2015/05/17/the-microsoft-technet-guru-awards-april-2015.aspx 

Below is a summary of the medal winners for April. The last column being a few of the comments from the judges.

Unfortunately, runners up and their judge feedback comments had to be trimmed from THIS post, to fit into the forum's 60,000 character limit, however the full version is available on TechNet Wiki.

Some articles only just missed out, so we may be returning to discuss those too, in future blogs.

 

Guru Award BizTalk Technical Guru - April 2015  

Gold Award Winner

 

Muhammad EhsanCalling the Force.com REST API from BizTalk Server - Multiple EndpointsSandro Pereira: "Well format with nice pictures, well explained and with source code, you cannot ask for more. Great article. Nice job Muhammad Ehsan"
Ed Price: "Great scenario that's thoroughly explained! Great to have the code on the MSDN Gallery!"

 

Guru Award Microsoft Azure Technical Guru - April 2015  

Gold Award Winner

 

ChervineBig Data Analytics using Microsoft Azure: IntroductionJH: "Great introduction to one of my favorite topics. Hope to see more about it."
Ed Price: "I love the write-ups and diagrams! You do a great job walking the reader through this topic!"

Silver Award Winner

 

Ken CenerelliUsing Microsoft Application Insights in an MVC applicationEd Price: "Great descriptions and use of images! The See Also section is also helpful!"
JH: "Another great one from Ken. Would like to see another article about the customizing."

Bronze Award Winner

 

Chiyo OdikaTroubleshooting Azure Operational Insights Capacity Planning Data Aggregation in Progress IssuesJH: "A service I was not really aware of. Great article about Azure OpInsights."
Ed Price: "This is a good solution and article. It could benefit from a TOC, Headers, and links sections at the bottom. "

Guru Award Miscellaneous Technical Guru - April 2015  

Gold Award Winner

 

Andy O'NeillSilverlight: StrikeThroughEd Price: "Wow! This is a lot of work to get a strike through! Incredibly thorough! Great article!"
Durval Ramos: "Very useful, images and code help a lot to understand. And have a sample on TNGallery, "tags", See Also,... Good article!"
PG: "Very elaborate article, nice procedure"
Richard Mueller: "A subtle and complex problem. Good to have a solution. We can use more links."

Silver Award Winner

 

Sarah LeanCRM 2011 Outlook DeploymentEd Price: "A valuable list of requirements. Short but useful."
Durval Ramos: "Further work is needed to better understand this content"
PG: "Very short, to the point, might need some work to build more elaborate content"
Richard Mueller: "Good start, but needs work. Needs references."

Guru Award SharePoint 2010 / 2013 Technical Guru - April 2015  

Gold Award Winner

 

Danish IslamSharePoint Site URLs not working without appending default.aspxMargriet Bruggeman: "I like this one. Not a trivial issue to solve, although it will occur seldomly, and the reasoning behind the solution is explained nicely"
Ed Price: "Good formatting and use of images."

Silver Award Winner

 

Inderjeet Singh JaggiPSconfig wizard fails after you install any update on SharePoint serverEd Price: "Great write up! Could benefit form code formatting, Headers, a TOC, and link sections like See Also, References, and Other Resources."
Margriet Bruggeman: "Nice find, although I am a bit worried about the state of the upgrade after this has happened and the property is changed. Also, be consistent: are we talking about 2010 or 2013?"
Hezequias Vasconcelos: "Great technical content."

Bronze Award Winner

 

Arleta WanatSharePoint Online: Remove a stuck site mailboxEd Price: "Beautiful! This is a great scenario that's masterfully demonstrated with the right balance of images, explanations, and code snippets!"
Margriet Bruggeman: "This seems to be a very complete discussion of this very problem. Very useful!"
Hezequias Vasconcelos: "Interesting feature in SharePoint Online."


 

Guru Award Small Basic Technical Guru - April 2015  

Gold Award Winner

 

Ed Price - MSFTProgramming Games with Small Basic: Chapter 6: Tic Tac Toe ProgramMichiel Van Hoorn: "This is probably one of the best end-to-end tutorials for programming a simple (but well designed game). Great learning material for all beginning coders."
RZ: "This is fantastic! Tic-Tac-Toe is the classic of course. And the book is modeled after the classic one. Tons of games for beginner to explore the power of BASIC programming language."

Guru Award SQL BI and Power BI Technical Guru - April 2015  

Gold Award Winner

 

Samir AbrahaoImplementing a faster distinct sort or aggregate in SSISPT: "Nice, well-written and thorough post."
Ed Price: "Very good! Great descriptions and use of images! It could benefit from Headers, a TOC, and a See Also section at the end that links to other Wiki articles. It was very well written!"
RB: "Nice, explicative walkthrough."

Guru Award SQL Server General and Database Engine Technical Guru - April 2015  

Gold Award Winner

 

ShankyDoes SQL Server Backup Operation Uses ParallelismEd Price: "Who should win? Shanky or Shanky? I think Shanky should win! Great code formatting, images, very easy to navigate, and solid Conclusion write-up! It would benefit from a See Also section. Amazing article!"
Durval Ramos: "Very clear and detailed, successfully demonstrates how BACKUP operation use parallelism. Amazing!"
JS: "Very well researched, I like the reference you are doing to the mutiple MSDN articles / blogs."

Silver Award Winner

 

ShankyShould we move resource database ?

Ed Price: "Very clear and easy to follow!"
Durval Ramos: "This is an interesting article, it would be better used on MS Connect" 
AN: "I don´t see any reason why you should move the resource databases nor is one mentioned here. I see the "not supported" flags you are raising, but why write a technet article from it? Good technical depth, but no need for exposing this."

  

Guru Award System Center Technical Guru - April 2015  

Gold Award Winner

 

Chiyo OdikaTroubleshooting Azure Operational Insights Capacity Planning Data Aggregation in Progress IssuesEd Price: "Good topic, descriptions, and use of images. Could be improved with a TOC and links sections at the end. Great article!"

Silver Award Winner

 

Noah StahlPowerShell & System Center Orchestrator - Best Practice TemplateEd Price: "Great template with a lot of details! Could benefit from a Conclusion and link sections at the end. Fantastic article that's very clear!"
TN: "excellent article providing PoweShell template for Orchestrator"

Bronze Award Winner

 

Daniel ÖrnelingCapacity planning in Azure Operational InsightsEd Price: "Good introduction, use of images, and wrap up! Could benefit from a TOC."
TN: "helpful article on capacity planning "


 

Guru Award Transact-SQL Technical Guru - April 2015  

Gold Award Winner

 

Saeid HasaniT-SQL: Check Database Consistency Using Visual Studio SSDTEd Price: "The images are a lot of fun! This is a very clear article that's easy to follow! Great job!"
Durval Ramos: "Good solution, mainly to find differences in large scritps. A step-by-step with images and code that really makes it clear. "
Richard Mueller: "A subtle issue. Grammar needs work."

Silver Award Winner

 

Saeid HasaniT-SQL: Two Reasons for Using Table Variable Instead of Temp TablesRichard Mueller: "Very interesting and instructive issue. Grammar should be improved."
Durval Ramos: "Interesting, we should appreciate the discussion about the issue."
Ed Price: "As Andy mentions in the comments: "I think there are times the various work rounds aren't attractive or available and it's good to be aware of the potential pitfalls rather than just use temp tables every time." Great article!"

Bronze Award Winner

 

Emiliano MussoExtending DATEADD Function to Skip Weekend DaysEd Price: "Great scenario that's well-exectued with beautifully formatted code!"
Richard Mueller: "Good solution for common problem. Needs references/links."
Durval Ramos: "Very interesting, but we have other similar articles on TNWiki. I believe is missing add a "See Also" section to enhance this article and others about the same issue."

Guru Award Visual Basic Technical Guru - April 2015  

Gold Award Winner

 

Emiliano MussoParse a JSON stream to show TechNet Medals on WPF ListBoxAnthony D. Green: "I really like the topic being covered. JSON seems like it's in every app now and it's good to see some examples of using it from within VB."
Ed Price: "Wow! Incredible depth in this article! "
Richard Mueller: "Outstanding example. This can be leveraged for other uses as well."

Guru Award Visual C# Technical Guru - April 2015  

Gold Award Winner

 

Andy ONeillC#: Local FilesEd Price: "Great, exhaustive article! Easy to navigate and great formatting!"
Carmelo La Monica: "Fantasctic article, very detailed in all parts."
Jaliya Udagedara: "Quite important article. Gives a thorough explanation on how you can use/access file system from the application and the limitations."

Silver Award Winner

 

Tom Mohan.NET 4.5 Read-Only InterfacesJaliya Udagedara: "Just great! Well explained set of important interfaces available in .NET 4.5 and beyond."
Carmelo La Monica: "Great topic, it' explain all part of Read-Only Interfaces."
Ed Price: "The diagram really pops! The embedded links add a lot of value!"

Bronze Award Winner

 

Yan GrenierC#: Serialization and Casting values with XDocumentEd Price: "Fantastic scenario with expert formatting!"
Jaliya Udagedara: "I really like this article. And the sample code can be downloaded from the TechNet gallery, which is great!"
Carmelo La Monica: "Great content and sample code C#."

  

Guru Award Wiki and Portals Technical Guru - April 2015  

Gold Award Winner

 

Ed Price - MSFTLive Meeting PortalDurval Ramos: "Very useful! We need to pull together even more articles about this Product."
PG: "Good starting point for Live Meeting & Lync"
Richard Mueller: "Another great addition to our collection of portals."

Silver Award Winner

 

Andy ONeillSilverlight Resources on the Technet WikiRichard Mueller: "Great collection of references"
Durval Ramos: "This article is interesting, has a very useful collection of links for developers and users. "
PG: "Good starting point for Slverlight resources"

  

Guru Award Windows Phone and Windows Store Apps Technical Guru - April 2015  

Gold Award Winner

 

Carmelo La MonicaWindows Phone 8.1: Sqlite (part two)JH: "Very, very detailed article with a lot of code snippets. Can't wait to see another part of the series."
Ed Price: "Another incredibly thorough article! It covers all the details, with code and images! Great formatting on the code snippets."

Silver Award Winner

 

Emiliano MussoMaking a Windows Phone App to read TechNet profile through JSONEd Price: "What an amazing article!!! The first sections were very clear. I love the prerequisites. And the code download and video at the end are incredibly helpful!"
JH: "This article combines two cool things: Our wiki and app development. If you got the time, play around with it."

Bronze Award Winner

 

Tom MohanVariableSizedWrapGridEd Price: "Great use of sections and embedded links! It would be good to divide See Also as Wiki articles and Other Resources as non-Wiki links. Great breakdown of the code snippets!"
JH: "Nice introduction about the usage of the VariableSizedGrid in Windows Store Apps."

  

Guru Award Windows PowerShell Technical Guru - April 2015  

Gold Award Winner

 

Noah StahlPowerShell & System Center Orchestrator - Best Practice TemplateChen V: "Very well documented and good explanation. "
Alan Carlos: "Great article!"
Richard Mueller: "Excellent. Great list if reasons why we want to use this. Should add references at the end in "Other Reources" and/or "See Also" sections. Good example code."

Guru Award Windows Presentation Foundation (WPF) Technical Guru - April 2015  

Gold Award Winner

 

Andy ONeillWPF: Change TrackingEd Price: "Incredibly thorough! Great breakdown of the code. Includes a link to download all the code and great link sections at the bottom!"
KJ: "nice - I love articles with well written base classes I can pull into my projects"

Silver Award Winner

 

Ayyappan SubramanianSimple navigation technique in WPF using MVVMEd Price: "Good code coloring and introductory sections. Could benefit from Headers, a TOC, formatting the code in blocks, and link sections at the end (like Download, See Also, or Other Resources), Great to have the TechNet Gallery download!"

Bronze Award Winner

 

Tom MohanWPF: MultiBinding and IMultiValueConverterEd Price: "The Download section at the end really makes it clear. The embedded links also provide a lot of great resources as you read through the article!" 


  

Guru Award Windows Server Technical Guru - April 2015  

Gold Award Winner

 

Darshana JayathilakeServer 2012/2012 R2 Server Manager, manage lower versions of Windows serversMark Parris: "Handy snippet to know."
JM: "This is a good article that could use an edit pass for grammar and clarity"
Philippe Levesque: "Great tip ! and well illustrated too. Thanks !"
Richard Mueller: "Good information to know. Needs references/links, such as a See Also."


As mentioned above, runners up and comments were removed from this post, to fit into the forum's 60,000 character limit.

You will find the complete post, comments and feedback on the main announcement post.

Please join the discussion, add a comment, or suggest future categories.

If you have not yet contributed an article for this month, and you think you can write a more useful, clever, or better produced wiki article than the winners above, here's your chance! :D

Best regards,
Pete Laker

More about the TechNet Guru Awards:


#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!

SQL 08 R2 - Creating an instance of the COM component with CLSID FAILURE

$
0
0

Since installing the client tools for SQL 08 R2 on my laptop, I am running into the following error when trying to open a step within a SQL job:

TITLE: Microsoft SQL Server Management Studio

------------------------------

 

Creating an instance of the COM component with CLSID {AA40D1D6-CAEF-4A56-B9BB-D0D3DC976BA2} from the IClassFactory failed due to the following error: c001f011. (Microsoft.SqlServer.ManagedDTS)

 

------------------------------

ADDITIONAL INFORMATION:

 

Creating an instance of the COM component with CLSID {AA40D1D6-CAEF-4A56-B9BB-D0D3DC976BA2} from the IClassFactory failed due to the following error: c001f011. (Microsoft.SqlServer.ManagedDTS)

 

Is there a patch out for this?

 

 

Page life expectancy increases dramatically from a minute to another

$
0
0
               Hello. I measure PLE on my server and insert them every minute into a table. Now, when I look into the table I just dont know how to interpret the following data. I dont understand how is that possible. It's an sql server bug? or? Can you help me tointerpret that data please? 

SQL Cluster Database Recovery pending mode while failover "VMWare RDM shared storage"

$
0
0

Hi all,

we had build SQL Cluster 2012 on VMWare with Shared storage are RDM, everything working fine, after some days we found check disk on failover cluster, and after we try to failover to second node we found databases issue [some databases get in suspect mode and some database get in recovery pending mode].

We need help to identify cause of issue and how to resolve it, I have backup from databases will restore it. but we need to resolve main issue, because this happen to or three times.

Thanks all

Deadlock cause and affect

$
0
0

Hi Experts

Would like to get consult for one of the issue that I recently encountered, i have tried to create a new index on one of my tables while the database is still in use, DBA said it was caused deadlock and the whole server i.e. other databases performance was slow down.

I have 2 questions as follows,

(1) Why deadlock caused?

(2) Why the deadlock affected other databases?


SQL server taking all the CPU and RAM

$
0
0

Dear All,

I have a SQL Server 2008 standard edition with 20 GB RAM and have allocated 17 GB of RAM memory to SQL Server and 4 CPU.
But Since last 1 week i am facing issue in SQL server, The issue is SQL Server reaches 100% CPU usage constantly , have checked there is no single query is running in sql by using below dm views

SELECT Text from sys.dm_exec_request cross apply sys.dm_exec_sql_text(sql_handle)

I have also checked in task manager but only sqlserver.exe taking 100% CPU and Physical Memory Both
Then i have restarted the sql server, during restart process, the utilization gets decreases but Once the service gets started, Again the CPU and Physical Memory reaches to 100 % and it doesn't release the memory.The Only solution which i have used is rebooted the server, but it would not be the solution because the server is in Production.

I thought there might b issue with the antivirus have disabled it but nothing happend good, also checked in counter and found the total sql server memory(KB) is taking all 20GB and all the counter thresh hold values are normal.

I don't know where is the issue, I would thankful to you guys if someone help me.  

Thank you

Linked server_ data transfer job fails due to Query timeout expired or deadlocked on lock resources

$
0
0

Hi Techies,

Please help me out to get a permanent fix for this solution,

Environment:

SQL Server 2008 R2 (sp1) x64  & OS-Windows server 2003 R2 (sp2) x64

The Linked_server datatransfer Job executes on daily basis , it fails once in 3\4 days with either any one of the following error as mentioned below,

Job succeeds run time  <20 minutes   & Job fails run time  <1minute


The OLE DB provider "SQLNCLI10" for linked server "destination_server ip,port" reported an error. Execution terminated by the provider because a resource limit was reached. [SQLSTATE 42000] (Error 7399)  The OLE DB provider "SQLNCLI10" for linked server " destination_server ip " could not INSERT INTO table "[destination_serverip,port].[database_name].[dbo].[table_name]". [SQLSTATE 42000]  (Error 7343)  OLE DB provider "SQLNCLI10" for linked server" destination_server ip,port " returned message "Query timeout expired". [SQLSTATE 01000] (Error 7412).  The step failed.

-or-

Transaction (Process ID 53) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. [SQLSTATE 40001] (Error 1205).  The step failed.

do help me to find the reason for,

this error and how to resolve the same ?

for example-

i.how to resolve the  resource limit was reached /"Query time out" error ?  -in this environment "Query time out" set to 15 minutes 

ii.how to find and resolve the deadlock part ? 

iii.Is there any best practices / prerequisites to prevent this errors ?




Restoring database

$
0
0

hi,

I am unable to restore complete database using LSN.

        

--Create Database

USE [master];
GO

CREATE DATABASE [FNDBLogTest];
GO
USE [FNDBLogTest];
GO
SET NOCOUNT ON;
GO

-- Create tables 
CREATE TABLE [ProdTable] (
    [c1] INT IDENTITY,
    [c2] DATETIME DEFAULT GETDATE (),
    [c3] CHAR (25) DEFAULT 'a');

CREATE TABLE [ProdTable2] (
    [c1] INT IDENTITY,
    [c2] DATETIME DEFAULT GETDATE (),
    [c3] CHAR (25) DEFAULT 'a');
GO


 --insert correct record in table1
INSERT INTO [ProdTable] DEFAULT VALUES;
GO 1000

-- Take full database backup
BACKUP DATABASE [FNDBLogTest] TO DISK = N'E:\Data\FNDBLogTest_Full.bak' WITH INIT;
GO

--Take initial Log backup
BACKUP LOG [FNDBLogTest] TO DISK = N'E:\Data\FNDBLogTest_Log1.trn' WITH INIT;
GO

--insert another 1000 rows correct record in second table ProdTable2
INSERT INTO [ProdTable2] DEFAULT VALUES;
GO 1000

--Drop first table ProdTable by mistake 

DROP TABLE [ProdTable];
GO

--insert another 1000 rows in second table ProdTable2

INSERT INTO [ProdTable2] DEFAULT VALUES;
GO 1000

 select COUNT(*) from ProdTable2

--Use dblog function to view the transaction log records in the active part of the transaction log file for the current database.
select * from fn_dblog(null,null)
SELECT
    [Current LSN],
    [Operation],
    [Context],
    [Transaction ID],
    [Description]
FROM
    fn_dblog (NULL, NULL),
    (SELECT
        [Transaction ID] AS [tid]
    FROM
        fn_dblog (NULL, NULL)
    WHERE
        [Transaction Name] LIKE '%DROPOBJ%') [fd]
WHERE
    [Transaction ID] = [fd].[tid];
GO

-- LSN :0000001c:000001f5:0001 

--take backup log 
BACKUP LOG [FNDBLogTest] TO DISK = N'E:\Data\FNDBLogTest_Log2.trn' WITH INIT;
GO
--Restore database 
RESTORE DATABASE [FNDBLogTest2]
    FROM DISK = N'E:\Data\FNDBLogTest_Full.bak'
WITH
    MOVE N'FNDBLogTest' TO N'E:\Data\FNDBLogTest2.mdf',
    MOVE N'FNDBLogTest_log' TO N'E:\Data\FNDBLogTest2_log.ldf',
    REPLACE, NORECOVERY;
GO

 --Restore Log 
RESTORE LOG [FNDBLogTest2]
    FROM DISK = N'E:\Data\FNDBLogTest_Log1.trn'
WITH
    NORECOVERY;
GO

 --Restore log 
 --STOPBEFOREMARK = '<mark_name>' clause is used to specify that the log record that is immediately before the mark is the recovery point.
RESTORE LOG [FNDBLogTest2]
FROM
    DISK = N'E:\Data\FNDBLogTest_Log2.trn'
WITH
    STOPATMARK = 'lsn:0x0000001c:000001f5:0001 ',
    NORECOVERY;
GO
  

 --restore database 
RESTORE DATABASE [FNDBLogTest2] WITH RECOVERY;
GO

select COUNT(*)as ProdTable from [FNDBLogTest2].[dbo].[ProdTable] 
select COUNT(*) as ProdTable2 from [FNDBLogTest2].[dbo].[ProdTable2]

------------------------------------------------------

RESULTS

ProdTable
1000

ProdTable2
1000

I am unable to recover 1000 rows inserted into ProdTable2 after the execution of drop statement.How can I roll forward and recover the records executed after DROP?

--urgent

Thanks in advance!


Reduce version ffrom 2012 to 2008r2

$
0
0

Hi -

I have backup ContentDb 2008r2 need to restore in SQL2012.

My intention is need to reduce version from 2012 to 2008 r2..please let me know how to do this?

Error When Creating Maintenance Plan

$
0
0

Hi, recently I upgraded to sql server 2008 R2 from sql 2008, everything went OK and my server is up and running since 10 days.

This evening I wanted to modify a maintenance plan that backs up all DBs which I run on command, I started to get "MSSQL server management Studion is unable to load this document: SSIS object name is invalid. More specific errors would have been raised explaining the exact naming problem".

I tried creating a new one, directly and using the wizard, I get a dialogbox error :

 

TITLE: Microsoft SQL Server Management Studio
------------------------------

Exception has been thrown by the target of an invocation. (mscorlib)

------------------------------
ADDITIONAL INFORMATION:

Creating an instance of the COM component with CLSID {AA40D1D6-CAEF-4A56-B9BB-D0D3DC976BA2} from the IClassFactory failed due to the following error: c001f011. (Microsoft.SqlServer.ManagedDTS)

------------------------------

Creating an instance of the COM component with CLSID {AA40D1D6-CAEF-4A56-B9BB-D0D3DC976BA2} from the IClassFactory failed due to the following error: c001f011. (Microsoft.SqlServer.ManagedDTS)

------------------------------
BUTTONS:

OK
------------------------------

 

RESPONSE REQUEST: SS DBE Gurus Please Connect with Internet of Thinkers (aka TNWiki)

$
0
0

May the Thoughts be with you!

Well, a small nod there to Star Wars day, and we turn our thoughts to more the serious matter of ingesting the more valuable brain telemetry from and to our very own Internet of Thinkers!

Connect to the real network, the world wide workers!

Cut through the chatter and produce some pertinent protocols!

All over the world, highly intellegent autominous entities are uploading neural nuggets of gold, words of wisdom and inspirational instructionals!

So step forward... beacons of brain power, and download your technical torrent of tips to the Head Hub - TechNet Wiki!

 

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

Feel free to ask any questions below.

More about TechNet Guru Awards

Thanks in advance!
Pete Laker


#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!

fragmentation myth

$
0
0

Hi guys,

I wanted to test a couple of things regarding frag/defrag... For that purpose I need a fragmented database... Do you know where can I get a heavily fragmented .bak?

I know I can somehow  create fragmentation on purpose, but it would be quicker to have a fragmented .bak that I can quickly restore...

Thanks in advance!

ps: basically I wanted to test http://www.brentozar.com/archive/2012/08/sql-server-index-fragmentation/ 

I do have  shared storage, and I believe I should  carefully monitor fragmentation!


Identify poor performance on production environment

$
0
0

Hi Team,

I am not able to understand the root of a performance problem before I can fully address it.

I am working on SQL SERVER 2008 R2 DB. We have transactional DB, wherein multiple user can login and perform operations concurrently.

We have used 'N' number of stored procedures and functions. As DEVELOPER, I want to identify SQL objects which are taking time on production.

I am facing problems like,

1. I don't have access to production DB.

2. On lower environment (ALPHA, BTAT, CERT), we have less data and poor performance is not observed. So I can not use my lower environment.

3. I can not use SQL SERVER trace on production, as it will put load on production DB. (lower region trace is not giving me enough information.)

Can I ask production team to install some free DB performance monitoring tools to install?

What type of information, I should ask from production DB people (as after putting request, they can provide me that details after few days, and asking same type of information again may not be feasible)?

Performance counter use?


Error Specified cast is not valid. (SqlManagerUI)

$
0
0

Hi,

I have a backup of DB with version Microsoft sql 2012 and i need restore this data base on instance Microsoft sql 2008 R2

when i try restore database on SQL server 2008 R2  i have the error:

Specified cast is not valid.(SqlManagerUI)

SQL 2014 R2 / Recursion Issue

$
0
0

We have several stored procedures that use CTE expressions and are used quite often in our applications.  These procedures have worked perfectly for over 5 years on SQL Server 2008 R2. We migrated to 2014 R2 about 5 months ago. During this time we experienced the MAXRECURSION error twice. About a couple months apart.

The errors would generate for all query results regardless of the depth of the hierarchy. We tried troubleshooting by looking at a simple example of one parent record that had one child record. There was nothing special about it and it would generate the same MAXRECURSION error as the others. We spent about 2 hours looking at data. We even edited our CTE queries, setting the OPTION (maxrecursion) value to a very high value with no luck. Then for no reason at all it started to work.  

Does SQL 2014 process CTE queries differently than SQL 2008 R2? Could it be a temp table issue? Why would these work for a few months then go down for a couple of hours only to start working again? The SQL Logs show no errors to point us in the right direction.

Any suggestions on what might be causing this would be greatly appreciated.

Thanks...

  

errorllog

$
0
0

Hi,

last target outstanding: 40, avgWriteLatency 32

average writes per second: 195.33 writes/sec 
            average throughput:  18.88 MB/sec, I/O saturation: 10959, context switches 17186

FlushCache: cleaned up 173302 bufs with 14000 writes in 71674 ms (avoided 3965 new dirty bufs) for db 34:0

we getting the above server logged in to error log. This is brand new server, act as subscriber and MI related process runs on it

sql server 2014 x64 std on windows 2012 ent

thanks


Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker

Release unused disk space

$
0
0

OS: Windows Server 2008 R2 Standard

SQL Server: 2008 SP1 Standard

Hello, 

We have a database with about 500 GB of free disk space on data file and the database is being set to read only mode for the fore-see-able future. We would like to release this unused disk space. We know that we could shrink the data file and then work on re-indexing to remove fragmentation. However, we wanted to check if some other method like backup and restore of the database could free up unused disk space in the data file. We do not have an environment to test this process out quickly and hence the question if someone was able to release unused disk space on data file by implementing a backup and restore.

-Jeelani 

Viewing all 15872 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>