Quantcast
Channel: SQL Server Database Engine forum
Viewing all 12963 articles
Browse latest View live

September 2014 TechNet Guru SS DBE Winners announced!

$
0
0

The September Guru results are posted!

http://blogs.technet.com/b/wikininjas/archive/2014/10/16/the-microsoft-technet-guru-awards-september-2014.aspx

Below are the highlights, just the medal winners. Please see the blog above for more entrants and comments, which had to be trimmed to fit into this 60,000 character forum limit. 

Guru Award BizTalk Technical Guru - September 2014  

Gold Award Winner

Johns-305 [boatseller]BizTalk: Working with Preserve Interchange EDI Xml – Part 1Mandi Ohlinger: "This is a great How To article with the steps and terms clearly defined. If you want to preserve interchanges, you need to read this."
TGN: "EDI is a big part of BizTalk, great wrap up, both articles."

Silver Award Winner

Verma.SumitBizTalk Server - Default PipelinesTGN: "Very nice article explaining the default pipelines "in-depth"."
Mandi Ohlinger: "Great detailed information on the XML pipelines. Very informative read. " 

Bronze Award Winner

Rahul_MadaanBizTalk Server - Debatching multiple message types using Envelope SchemaMandi Ohlinger: "A common task explained simply. Very effective."
TGN: "Very nice tutorial. I would love to see some better images though, and a little better elaboration on the different steps, but overall a very good article." 

  

Guru Award Exchange Server Technical Guru - September 2014  

Gold Award Winner

Rafael MantovaniExchange: Unable to Verify Information About Users AvailabilityEd Price: "This is a good article with some good images. This article was originally in English, but because it was posted on the Portuguese Wiki, it got translated into Portuguese! The English version should be pasted into a new article on the English Wiki. Here is the English version: http://social.technet.microsoft.com/wiki/pt-br/contents/articles/26759.nao-e-possivel-verificar-informacoes-de-disponibilidade-dos-usuarios/revision/7.aspx "

Guru Award Forefront Identity Manager Technical Guru - September 2014  

Gold Award Winner

Eihab Isaac (MVP)FIM 2010 R2: Coexistence Exchange Provisioning Scenario using PowerShell Management AgentAM: "Eihab, thank you for continuing to make excellent contributions to the community. This is a useful reference for anyone needing to meet similar requirements without the service and portal."
PG: "Nice article. Well designed!"
Søren Granfeldt: "Great overview on real world challenges with managing diffrent Exchange versions using FIM. Second part wil really complement this article."

Guru Award Microsoft Azure Technical Guru - September 2014  

Gold Award Winner

ChervinePredictive Analytics with Microsoft Azure Machine Learning

JH: "Love it! One of my favorite articles on the wiki from last month."

Ed Price: "Fantastic article! Incredibly well written with good details and helpful images. This Machine Learning topic is very important and timely right now!"

Silver Award Winner

Alex MangWhat Are Scoring Profiles In Azure Search?

JH: "Alex has done a tremendous job with his library. Love it that he shares update on the library on the wiki."

Ed Price: "Wow, I love all the explanations and detail. And this topic is incredibly valuable. Amazing job!"

Bronze Award Winner

saramgsilvaMicrosoft’s Windows App Studio Beta : Connecting a Menu App to Azure Mobile Service

JH: "Great article with a lot of pictures. A good one!"

Ed Price: "Great topic, Sara! Very thorough and well written!"


 

Guru Award Miscellaneous Technical Guru - September 2014  

Gold Award Winner

Brian NadjiwonHow to Create and Use Enums in PowershellEd Price: "Wow, what a detailed article! Great depth and use of images! I think it's time for a PowerShell category!"
TGN: "I LOVE ENUMS! Great explaining and a great article. Well done, Brian!"
PG: "Nice, practical solution, clear explanation."

Silver Award Winner

Adnan UmerUnderstanding GPU Usage tool in Visual Studio 2013 Update 4Ed Price: " A fantastic Visual Studio article with great details and vivid images!"
TGN: "Very valuable and a great toturiol on how to use the "GPU Usage tool"" 

Bronze Award Winner

Britt AdamsUnexplained High CPU Usage on Intel E5 ProcessorsEd Price: "Very thorough explanation! Great job! "
TGN: "Wow, computer science is fun. Nice wrap-up and how-to. I loved it!" 

  

Guru Award SharePoint 2010 / 2013 Technical Guru - September 2014  

Gold Award Winner

Vivek JaggaSharePoint, Office 365 or a Hybrid Deployment?Jinchun Chen: "Excellent!"
Margriet Bruggeman: "Nice, I can see this one coming in real handy in comparison studies"

Silver Award Winner

Inderjeet SinghCommon issue when using SharePoint 2013 Multi Tenant environment (Apps and User Profile Synchronization)Jinchun Chen: "Nice article."
Margriet Bruggeman: "Useful and not too much is written about this topics, which adds some bonus points"

Bronze Award Winner

Dan ChristianTips and Tricks to Resolve Poject 2010 Server Migration IssuesMargriet Bruggeman: "Extensive KB-type article in case you need it"

 

Guru Award Small Basic Technical Guru - September 2014  

Gold Award Winner

Philip MuntsSmall Basic: For Windows 8.1 Tablet

Michiel Van Hoorn: "Great article for those (1) want to make apps for tablet form factors and (2) are looking to package a SB app into a package."

Ed Price: "I love it! What an important topic!"

Silver Award Winner

Nonki TakahashiSmall Basic: Emoji

Michiel Van Hoorn: "Another entry from Nonki which opens up new possibilities. This time Emoji and the font editing."

Ed Price: "This is incredibly interesting!"

Bronze Award Winner

Nonki TakahashiSmall Basic: Dictionary

Michiel Van Hoorn: "Simple entry on a powerful feature"

Ed Price: "Great overview of the Dictionary Object! Good job integrating the Known Issues and the See Also section!"


 

Guru Award SQL BI and Power BI Technical Guru - September 2014  

Gold Award Winner

visakh16Finding SSIS Packages having References to a Table or ColumnRB: "Interesting subject, with a lot of practical usage"
Jinchun Chen: "Really helpful."
PT: "Good article that addresses a specific problem and offers a solution. Thank you"

Silver Award Winner

Ch. Rajen SinghSSIS: Export Multiple File With Fixed SizePT: "This is a good article, well-written and solves a real problem."
Jinchun Chen: "Nice article."
RB: "Interesting workaround for the fixed file size problem"

Bronze Award Winner

Ed Price - MSFTPower BI Community CouncilPT: "Great information about the purpose and composition of the Power BI Community Council to inform and raise awareness."


 

Guru Award SQL Server General and Database Engine Technical Guru - September 2014  

Gold Award Winner

ShankyAn Examination of Logging in Truncate Table Statement and Its Comparison With Delete Statement

Jinchun Chen: "Excellent" 
AM: "The best!"

Ed Price: "Wow, Shanky! What an amazingly thorough and detailed article!"

Silver Award Winner

Tulio RosaSQL Server Load Balancing

AM: "Also very good!"
Jinchun Chen: "Excellent"    

Ed Price: "Fantastic topic, good job on the diagram, and great use of TechNet Gallery! Plus a Portuguese translation!"

Bronze Award Winner

Ashwin MenonGet Notified when a database status changes

AM: "This is well explained"

Ed Price: "Very thorough article! Good References section!"

   

Guru Award System Center Technical Guru - September 2014  

Gold Award Winner

Mr XHow to upload new Drivers in SCCM 2012 R2 

Peter Laker: "Very nice, thanks Mr X"

Ed Price: "Wow. Great use of images to walk the reader through the process! Could benefit from a See Also and Additional Resources type of sections. Very thorough!"

Silver Award Winner

Mr XHow to create a new Boot Image using SCCM 2012 R2 

Peter Laker: "Another good article!"

Ed Price: "Short and sweet How To article! It's great to cover all these scenarios. Excellent addition to our System Center library of content!"

Guru Award Transact-SQL Technical Guru - September 2014  

Gold Award Winner

visakh16Full Outer Join - The Most Generic Join Statement

JS: "A good summary, though a bit generic and already available mutliple times on the internet. The sample (with data) could be a bit more crisp though."
Jinchun Chen: "Very helpful."

Ed Price: "I love the explanations at the top in the Context and Reasoning sections! And then the solution has a fantastic mix between explanations, illustrations, and the code snippets. And the links at the bottom help JOIN together the Join resources! Great job!"

Silver Award Winner

Praveen Rayan D'saDynamic pivot with column alias

Jinchun Chen: "Good."
JS: "Make sure no to use a parameter declaration without a size of the variable type, like in VARCHAR, better use Varchar(YourSizeHere)."

Ed Price: "Fantastic solution. Good job getting the references in there at the bottom!"

Bronze Award Winner

Saeid HasaniCalling Stored Procedures Using Transact-SQL

JS: "A good write up for getting the feet wet with procedure, though missing some depth." 

Ed Price: "Wow! I love your break out each section, explain it, and give the code snippet. It makes it very easy to read, understand, and get to the right section! To JS's point, it's probably better for beginners than advanced T-SQL gurus, but this content is still very valuable. Great example of the community giving advice and helping out with the content. Incredible article!"

 

Guru Award Visual C# Technical Guru - September 2014  

Gold Award Winner

João SousaASP.NET WebAPI - Basic RedisPeter Laker: "Nice WebAPI basics Joao!"
JM: "This is best"

Silver Award Winner

Jaliya UdagedaraPublishing and Subscribing using NServiceBusJM: "Close second IMO"
Peter Laker: "Great intro to NServiceBus! Thanks Jaliya!"

Bronze Award Winner

Adnan UmerCalculating Percentage Similarity of two Strings in C#JM: "I like this!"
Peter Laker: "Awesome snippet and explanation, thanks Adnan!"


 

Guru Award Windows Phone and Windows Store Apps Technical Guru - September 2014  

Gold Award Winner

Adnan UmerIntroducing ObjectGraphLibrary to visualize Stack and HeapJH: "Good article about stack and heap visualization."
TGN: "Hardcore stuff, but very valuable. Great article buddy!"

Silver Award Winner

saramgsilvaMicrosoft’s Windows App Studio Beta: Creating a BackOffice App for Menu AppJH: "Another great article by Sara! A lot of code snippets, pictures and explanations."
TGN: "Great tutorial, well explained. And a bunch of screenshots. I loved it!"

Bronze Award Winner

Muiz KhanUsing Speech Recognition without InternetTGN: "Nice one. I love articles that explain something in an easy understanding way. Great work Muiz!"
JH: "Good explanation of offline capabilities of speech recognition."

Guru Award Windows Presentation Foundation (WPF) Technical Guru - September 2014  

Gold Award Winner

Andy ONeillWPF: CollectionView TipsKJ: "wow cery thorough!"
Peter Laker: "Blindingly good article Andy!"

Silver Award Winner

Magnus (MM8)WPF/MVVM: Binding the DatePickerTextBox in WPFKJ: "useful tip - could see needing to do this and searching for this article and finding it"
Peter Laker: "Excellent work as always Magnus!"

Guru Award Wiki and Portals Technical Guru - September 2014  

Gold Award Winner

Durval RamosVisio Portal

Peter Laker: "Awe inspiring portal from a Wiki legend!"

Ed Price: "Great introduction, a lot of links, divided by sections, and it even has References and Return to Top links! Amazing article!"

  

Guru Award Windows Server Technical Guru - September 2014  

Gold Award Winner

Mr XGetting Started with KMS (Key Management Service)JM: "Another excellent article, great work."
Philippe Levesque: "Really good documentation."
Richard Mueller: "Good topic with good images to explain."
Mark Parris: "Good insights, would be good to higlight also the improvements in 2012 and 2012 R2."

Silver Award Winner

Kelly BushAuthentication Policies and Authentication Silos – Restricting Domain Controller AccessMark Parris: "Nice article, providing further insight into some of 2012 R2's capabilities."
Richard Mueller: "Great article with lots of detail. Could use TOC and See Also section."
JM: "An excellent article, thanks for the contribution!"
Philippe Levesque: "Good article, it explain some security that we don't see much."

Bronze Award Winner

FZBWindows Server: DNS Service - Negative CachingMark Parris: "useful tidbit, i have often seen shortttl zones for such records."
JM: "A good article, however it needs a rewrite for clarity."
Philippe Levesque: "Andy information to have, thanks for sharing !"
Richard Mueller: "Needs more explanation."


Congratulations to everyone who won a medal and thank you to everyone who entered! Your success will be entered into folklore and sung about for generations to come!

If you can do better, or simply wish to join our community and make a name for yourself, please enter this month's competition:

http://social.technet.microsoft.com/wiki/contents/articles/26994.technet-guru-contributions-october-2014.aspx

 

Regards,
Pete



#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 to the one and onlyTechNet Wiki, for future generations to benefit from! You'll never get archived again!

If you are a member of any user groups, please make sure you list them in the Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.


string count

$
0
0

Hi all,

I have data of following 

microsoft office 2007
microsoft office Excel 2007
microsoft office powerpoint 2007
microsoft office word 2007
microsoft office2010
microsoft office Excel 2010
microsoft office powerpoint 2010
microsoft office word 2010
7-bit
7-bit assd

.....

From above data I want to get total count of occurrence of Microsoft office, 7-bit likewise for all other sample.

I thank you in advance for, I hope, what quick answers there will be.

Thanks,

Vivek Singh


Connection from Powershell to SQL using encryted connection string

$
0
0

I am writing script to connect from powershell to SQL to get data.

and I want to encryt the connection string to connect to sql server.. how can I do that ?

Create Database name based policy using SQL Server 2008 R2

$
0
0

I am trying to create a policy on database creation to restrict it with specific format. 

ONChange_Prevent is not available on Database or Trigger Facet. I know I can do this using DDL Trigger but Is there a way to do this work using Policy based management

I have SQL Server 2008 R2, SP1 Enterprise.


Shamas Saeed (if Post helpful please mark as Answer) http://shamas-saeed.blogspot.com

How to go about capacity planning for storage ?

$
0
0
Hi Experts,

How to go about Capacity Planning? For  instance if clients wants to upgrade to new server and new storage and asks us how much additional storage do you need for next 5 years, how can calculate the amount of storage.
I don't have any baseline info about the server of past years. Where can I start and any scripts you guys use for doing capacity planning?

Appreciate your help.

Thank you.
Sam

Max Memory Settings Not Working (SQL Server 2008 R2)

$
0
0

I have 12 GB ram in sql server 2008 R2 of 64 bit server (Windows 2008 R2).

I have set the Max memory setting to 12288 MB Memory setting.

Still the usage of sql server process is around 14  GB.

Is Max memory setting not working?

I have also enabled AWE after all it is 64 bit.

Thanks

Record output sort difference between SQL Server 2008 / 2012

$
0
0
Apologies in advance if there is a better forum for this question.

We have recently upgraded to the latest release of a mainstream ERP application, currently running on a new install of SQL Server 2012.  The earlier ERP package was running on SQL Server 2008.

As these things go, there are very few meaningful differences between the previous and current releases of the ERP application.  The databases are virtually identical, functionality and UI are also very much the same.

Several of my users are complaining about a quirk introduced by the new software: a label printing module which used to always print labels in transaction-number (PK of the primary table involved) sequence is now printing in seemingly random order.  I know, random order is impossible.  In fact, if I order the same batch of labels (starting transaction id xxx, ending transaction id yyy), they always print in the same sequence, even though the actual output is somewhat random - 6, 3, 4, 5, 2, 7, 8, 9, 1 for example.

I have had extensive conversations with the ERP vendor's support group and they insist that according to the development team the SQL queries do not now and never have included any form of Order By statement.  They insist that the label printing module is working exactly as it always did and any difference in output must be related to my SQL server.

Can anyone offer any suggestions?

By the way, despite the developers assertions, I do find one notable difference in the old vs. new databases, but I have no idea as to possible impact: primary keys in the old database all include "FILLFACTOR = 90" whereas the PKs in the new database do not.

Script to migrate database level security in sql server.

$
0
0

Hi,

I am pretty new to sql platform as DBA. I have to restore one of the prod database to Dev however I need to keep all the login and security as it is as earlier in the DEV. For this I need to script login along with all permission of Dev database before I restore Prod one and later need to run the script to get all login back along with the same  permission. I am not being able to get proper  script to be run in the DEV to get all login scripted. Please any one help me. 


Check database integrity - Maintence plan failure

$
0
0

Hi,

I have SQL SERVER 2008(64bit- standard edition) running in my machine. I have created the maintence plan (3task) Check database integrity-> Rebuild index -> Maintence cleanup task on every sunday. It was working fine till last sunday. This sunday maintence plan failed i checked the history 2task completed successfully only check integrity task failed with error mess ### Alter failed for Server 'servername\instance name' ### Could any one suggest me on this?

Very high ASYNC_NETWORK_IO

$
0
0

Hi There; I’m an ‘Accidental DBA’ with a problem (is there any other kind?).

We seem to be getting very high ASYNC_NETWORK_IO; with a WaitCount of around 20 million hits per 24 hour period (total wait time around 9 hours in that same period).

I’ve spent a lot of time researching this wait and as I understand it ASYNC_NETWORK_IO is most often caused by the application not consuming data fast enough; so we had a programmer work through the code and resolve all locations where we are using a IQueryable in a for next loop and converting them immediately into arrays (Linq To SQL).

This seems to have made no difference.

I would like to set up an extended event trace to find which queries are generating this particular wait, but at an average of over 200 hits per second I’m concerned about performance impact such a trace might have.

 

I’m looking for suggestions as to how to move forward in resolving this issue.

 

My first question is, am I correct in thinking that the number of these waits that we are getting is excessively high?

Assuming that is the case how can I go about tracing the offending queries without hammering the system?

If (as I suspect) it is not individual queries that are causing the issue, what else should I be looking for?

 

Thanks in advance

Paul.

Database performance is very poor after a month of use

$
0
0

Hi!

I am quite new to SQL server and have a question regarding database speed. The database (about 50 MB big) was very fast in the beginning. Now, a month later, the speed is a lot worse. I run a script every hour that updates specific fields in some tables (about 500 rows) and in the beginning the script took about 2 minutes and now it neary takes 28 minutes. I have restored an early copy of the database and when I run the script against the copy the performance is back with a runtime of 2 minutes so nothing is wrong with the server (sql server 2014). I have tried to run 'exec sp_updtestats' with no difference in performance and also tried to rebuild and reorganize the indexes with no luck... Someone friendly :) here that can help me with this big problem and how I can find what is wrong with the production database? it seems thatthe scriptgraduallycaused thedecreasedperformance... :(

Best Regards Markus

Issues while migrating data from a disk based table to a memory optimized table

$
0
0

Hi All,

I have a Disk based table with 400000000 rows in it, We are trying to convert it into a memory optimized table.

We have  already created a memory optimized table with similar structure and trying to import data into this mem optimized table using 'insert into' from the disk table.

I am trying to Migrate around 10000000 rows at a time,  but I am getting an error 'There is insufficient system memory in resource pool 'default' to run this query.' Altough we have 128 GB RAM on the server and SS is utilizing more than 120 GB RAM. Altough the query has been cancelled.

Wanted to Know how could we migrate the table with the available RAM or do we have increase our RAM?


aa


SQL Agent jobs status for multiple servers using Powershell.

$
0
0

Hi All,

I am following website link: http://www.toadworld.com/platforms/sql-server/b/weblog/archive/2013/09/17/powershell-script-to-monitor-a-service-on-a-group-of-servers-html-formatted-email-output.aspx

I require to gather status details about all the SQL Agent jobs in the environment on multiple SQL Servers.

I tried to edit the script using:

[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO")
$sqlServerName = 'localhost\developer'
 
$sqlServer = New-Object Microsoft.SqlServer.Management.Smo.Server($sqlServerName)
 
foreach($job in $sqlServer.JobServer.Jobs)
{
    $job | select Name, OwnerLoginName, IsEnabled, LastRunDate, LastRunOutcome, DateCReated, DateLastModified
}

but SQL Agent jobs are not reflecting in the mail output...

requesting help...!!

Thanks in Advance.

Hunt

Log backup jobs with long wait type 'PREEMPTIVE_OS_GETFILEATTRIBUTES' (SQL Server 2008)

$
0
0

Hello,

we have a log backup jobs setup every 15 minutes (Log Shipping) and once in a while these jobs are waiting for a at wait_type 'PREEMPTIVE_OS_GETFILEATTRIBUTES' and never completes. 

Observations:
1) When this happens the server level workload increase by 40% to 50% eventhough very minor SQL activity happens,

2) We are unable to access backup share location when this happens. It seems like the OS is locking the backup share. (All other shares at this locations are completely accessible)

3) As a resolution we have to forcefully stop the backup jobs and have to restart them manually which resolves the issue. If we don't restart the backup never completes and waits there forever.

Could someone please assist me possible fix for this issue... Thanks.

SQL Server Details:

   Version - Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (X64)  Enterprise Edition (64-bit)

Host Details: (CISCO Manufacturer)

   O.S. -  Microsoftr Windows Serverr 2008 Enterprise without Hyper-V

   RAM - 256 GB

   Processors - 4 Physical, 64 logical CPUs

 

Thank you.


Restore Database From Overwritten Old Backups

$
0
0

Hi Every one..

 Like to take advise on this.

Have one backup file which overwritting everyday full backup on that file Suppose ADW.Bak overwritting Full Backup every day .I want to restore Database with 5 day old backup file how i can do that?

When i am trying to restore it showing me most current backup file only?


Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah


How to determine who is loging into an instance of SQL Server Developer from a Remote Machine?

$
0
0

I found some SPs, under System Stored Procedures, whihc seem somewhat useful, but I'm not sure this is giving me the full picture of things.  I'm trying to figure out how to capture all users, who login to one SQL Server Developer Edition, over the course of a week.  I'd like to send a report to myself (email) at the end of the week, maybe Saturday, with all the activity for the week.  I'm not sure if it's bets to use the Audit Login Tool, or a Trigger, or a simple Stored Procedure.  I've done some research using Google.  I'm not sure I found a best practice for this, but I did find a lot of information...maybe too much actually.

Can someone here please share a good script, or post a link that describes A-Z how to do this?

Thanks.

PS, I'm not really sure where to post this, so I tried a couple forums.


Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.


Migrate (SYNC) database security(Login roles and permissions) after restoration of database to the new server within the same domain

$
0
0

Friends,

I am not getting proper way to migrate the security of a database. Normally I backup database and restore the same to another server. But to sync the security I manually check the rights and give those rights to the user accordingly as I couldn't find any scripts or way to migrate it. I found Sp_Revlogin store procedure but it looks like whole server level security I just want database level security so I thought its not best option for me. Please help me. 


Any script to get the health of SQL server and the windows hosting it

$
0
0

Hi,

I would like to write a script in VB/powershell etc to extract the health of SQL server and windows CPU/memory etc which needs to be used in oracle OEM to get detailed report and send to a ticketing tool.

Hypothetical Indexes

$
0
0

Hi All,

1.What is Hypothetical indexes

2.How to find Hypothetical indexes in sqlserver2000

3.Is there any performance issue with these indexes.

4.is there any problem while deleting these indexes.

Thanks in advance....

Problem with the job

$
0
0
Hi,
where to check history log, due to this error


encountered within Sql server 2005?

Many Thanks & Best Regards, Hua Min

Viewing all 12963 articles
Browse latest View live


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