The parameter is incorrect. [0x80070057]
I did the change through SQL server configuration manager.
Even I changed to use "network service" account, it is same error.
Please help. thanks
I did the change through SQL server configuration manager.
Even I changed to use "network service" account, it is same error.
Please help. thanks
Best Regards Moug
I am having an issue when scheduling an SSIS package on a Production environment (via SQL Agent, utilizing a Credential/Proxy). I have worked through the steps below in a Test environment and have not had any problems. Here's what I've done in Production (on a SQL Server 2008 R2 non-clustered environment):
- Copied SSIS package to file system (NTFS permissions are set properly)
- Created a Credential and Proxy (for a Windows user)
- Created SQL Agent job to execute the SSIS package
- Executed the job and receive the following error:
"Unable to start execution of step 1 (reason: Error authenticating proxy DOMAIN/user, system error: Logon failure: unknown user name or bad password.). The step failed."
Can someone help me work through this? I have tested the process above with a blank SSIS package, so I know it has nothing to do with access to the source systems. The issue resides specifically on the SQL Server box that is running SSIS and SQL Agent.
I have done some reading and found the following:
- Delegate permissions to SQL Agent account...
- Provide "Log on as a batch job" permissions to AD user
- Install a KB to fix...
Not sure what to puruse at this point. Also, the Job will run just fine using the SQL Agent service account; however, I need to run this user as a different account.
Please advise.
Hi,
I have executed the query as following.
select USER_NAME(),CURRENT_USER,SYSTEM_USER,SUSER_NAME(),SUSER_SNAME()
But I am getting the same result. Can any one explain what is the exact difference between these functions which are used to get session user information.
Thanks in advance!!!!!
Regards,
Rajesh Ch
Hi All,
we have table that contains large number of records and this table growing very rapidly. To avoid performance issues in future we are planning to do table partitioning for large count tables (creating secondary files and distributing data on ndf file, creating partition function and schema, etc.....).
Please review below scenario and share your advise on this.
1. Table contains 18 columns and We have selected two columns fortable partitioning that is PRODID (Uniqueidentifier datatype, primary key column with clustered index) & another column CreatedOn (datetime datatype).
2. we are rarely using CreatedOn column in our sql scripts/or stored procedure.
Can you please tell me which column is best for table partitioning that is PRODID or CreatedOn.
Please advise.
Hi all,
I know that profiler trace are "old style" and sooner or later they will become deprecated, the new way is extended events so, we have to use them.
I have a simple server side trace running on my server, this is the definition:
-- Create a Queue
declare @rc int
declare @TraceID int
declare @maxfilesize bigint
set @maxfilesize = 1024
exec @rc = sp_trace_create @TraceID output, 0, N'c:\fsroot\cpu', @maxfilesize, NULL
if (@rc != 0) goto error
declare @on bit
set @on = 1
exec sp_trace_setevent @TraceID, 10, 3, @on
exec sp_trace_setevent @TraceID, 10, 12, @on
exec sp_trace_setevent @TraceID, 10, 16, @on
exec sp_trace_setevent @TraceID, 10, 17, @on
exec sp_trace_setevent @TraceID, 10, 18, @on
exec sp_trace_setevent @TraceID, 12, 3, @on
exec sp_trace_setevent @TraceID, 12, 12, @on
exec sp_trace_setevent @TraceID, 12, 16, @on
exec sp_trace_setevent @TraceID, 12, 17, @on
exec sp_trace_setevent @TraceID, 12, 18, @on
-- Set the Filters
declare @intfilter int
declare @bigintfilter bigint
-- Set the trace status to start
exec sp_trace_setstatus @TraceID, 1
-- display trace id for future references
select TraceID=@TraceID
goto finish
error:
select ErrorCode=@rc
finish:
go
The server side trace caputeres databaseid, CPU time, pages red and pages written for every single statement executed against the database engine, my goal is to have the exact cpu consumption (and page I/O) grouped by database, I need this information to apply a chargeback policy.
I have tried to replicate the same with exetnded evets:
CREATE EVENT SESSION [CPU] ON SERVER
ADD EVENT sqlserver.rpc_completed(SET collect_statement=(1)),
ADD EVENT sqlserver.sql_batch_completed
GO
but in the output .xel file the databaseid is always null...
Hi all of you,
In Sql Server 2008 you can define for every logical processor both Processor Affinity and I/O affinity features.
From 2012 on, you only can choose one at the same time per logical processor or it so seems, don't know from SSMS T-SQL the same restriction.
All of this is bringing me to think over about these features. What's the difference between one or another? From where on you need to worry about? In our live and "preproduction" servers such configuration remain untouched since the beginning.
We have got 8 CPUs as a maximum.
But imagine that tomorrow instead of 8 I'd have 32 and one of this machines would run my DWH. Which would be the properly feature for my DW? I/O? less updates and inserts, more reads,?¿
Apart of that, in my virtualized servers (2014 and 2016) I can only as a maximum the same number or virtual processors than physical ones.
Thanks a lot for your comments!
We have CDC & Replication on same Database. When there are huge DML i.e. 30-40 million updates within 60 minutes the CDC is behind for 3+ hours. We wanted to tweak @maxtrans & @maxscans options as per the below article to improve performance however we cannot use sys.sp_cdc_change_job to make the change as CDC is handled through replication. What are the alternate options available to make the change?
https://technet.microsoft.com/en-us/library/dd266396(v=sql.100).aspx
Thanks, Kranthi
Hi,
Does anyone know how to access the CMS from within SQL 2008R2? I know which server\instance it is stored in from the
properties and also because I added it, I've read they can be accessed via this system table in msdb, however this returns no rows when I run it.
SELECT [name] , server_name , [description] FROM [msdb].[dbo].[sysmanagement_shared_registered_servers_internal] ORDER BY server_name; GO
Tried this one too
sysmanagement_shared_registered_servers
Hi,
I have a sql server WMI alert for when CPU usage >90 it'll send trigger a job and send mail to us. But now the problem my cpu uage is only 50% but it send alerts as it's >90%. So I thinks it works only in SQL server Level, I want to trigger the alert
when my whole CPU uage is >90%.
Here is WMI query.
SELECT * from __InstanceModificationEvent WITHIN 2 WHERE TargetInstance ISA 'Win32_Processor' and TargetInstance.LoadPercentage > 90
Hi all of you,
Why does sqlserver.exe so expensive? A picture worths a thousand words:
https://gyazo.com/bbeb4bb9e29307838c47835c53648993
I’ve started my laptop OS Win 7 Ultimate 4 Logical CORE where I have installed a couple of Sql12k instances and after idle for 20 minutes (no scheduled Agent jobs (it would use SQLAGENT.EXE as well), no SSMS opened, no backups, nothing at all, jeez) I've seen these values in taskmgr, ain’t not very high? I mean, apart of the services nothing else is running in my Sql Server.
One of my colleagues always complain that I am a pretty neurotic individual, maybe he’s right but, you know, what the heck is Sql using so many memory?? It does make any sense or at least without any reasonable explanation.
Thanks for your comments, always are veryappreciated!
A wonderful week of news and new technology advances from Build this week have filled our minds with new possiblilities!
So much to play with!
Can you help us document some of the new features coming out over the next year?
Do you have a good grasp on how we should now be doing that thing that we do?
Did you find a knowledge gap in the web for the new features now available?
This is a great chance to jump into the TechNet Guru competition and stamp your authority on your favoutrite subject.
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.
Below are February's mighty winners and contenders. We should have March's winners by about mid month.
![]() | BizTalk Technical Guru - February 2016 |
Steef-Jan Wiggers | BizTalk Server Convoy | Sandro Pereira: "Explaining what it is and its concepts, it as well, so important as explain how it's done. Very good choice of topic, really well explained and in clearly way. Great job Steef-Jan. For me the best of the
month. " Ed Price: "The diagrams really bring this alive!" LG: "It is really full description of one of the complex idea in BizTalk." | |
Eldert Grootenboer | Deploying web services with BizTalk Deployment Framework | Ed Price: "Thank you! This is a much-needed scenario that's very well written!" Sandro Pereira: "Again well explain and in clearly way, an excellent article for BTDF lovers :). Great job." | |
lanax | Continuous deployment - BizTalk Applications built using BTDF and Octopus deploy | Sandro Pereira: "Good article, nice to see people right about new tools and how that they can add value." Ed Price: "Great scenario on continuous deployment! The code could use a breakdown to explain the parts, but the introduction is very thorough!" |
![]() | Forefront Identity Manager Technical Guru - February 2016 |
Jeff Ingalls | MIM 2016: Privileged Access Management (PAM) - FAQ | Ed Price: "Great resource to come back to!" Søren Granfeldt: "Good start" | |
Wim Beck | FIM2010: Selective Import Attribute Flow | Søren Granfeldt: "Nice ideas...." Ed Price: "Great scenario and thorough Intro and Possible Solutions sections! Could benefit from a breakdown of the code or a conclusion. Great formatting!" |
![]() | Microsoft Azure Technical Guru - February 2016 |
Steef-Jan Wiggers | Access Azure Redis Cache with an API App | JH: "Nice article about combining Redis and API Apps, especially the integration of Swagger is great." | |
XAML Guy | IoT Suite Under The Hood - Predictive Maintenance | JH: "Have played with the template myself. Great to see an article about it. Would love to see an article on how to customize the template in more detail." | |
Samir Farhat | How to access an ARM Azure virtual machine from Internet | JH: "Had the problem myself in the beginning. Found a way through the portal. Good to see PowerShell scripts to do it in a repeatable fashion." |
![]() | Miscellaneous Technical Guru - February 2016 |
Geetanjali Arora | An Introduction to Microsoft Graph API | Richard Mueller: "Very well explained with good detailed steps. I like the references." Peter Laker: "Top marks Geentanjali, nice article" | |
Gaurav Kumar Arora | Cruds in NancyFx using ASP.Net and FluentNHibernate Using Repository Pattern | Richard Mueller: "Lots of good code and images. Grammar needs work." Peter Laker: "Very interesting, thanks Gaurav" | |
SYEDSHANU | ASP.NET MVC User Role Base Menu Management Using WEB API And AngularJS | Peter Laker: "Wow great article!" |
![]() | SharePoint 2010 / 2013 Technical Guru - February 2016 |
Nathanaël Stassart | OneDrive : Next Generation Sync Client Deployment guide | Ed Price: "Wow this is thorough! Great formatting, color-coding the tables, including images, code formatting, and a general breakdown of each step, in depth!" Richard Mueller: "Good use of Wiki guidelines and great links. The "See Also" should be Wiki articles, this is really "Other Resources"." | |
Rakhi Jain | SharePoint 2013 : Customize Document Library TreeView Navigation Bar | Richard Mueller: "Great use of Wiki guidelines." Ed Price: "Short and sweet. Great scenario and good use of an image and code formatting! Very clear steps." | |
TenPart | SharePoint 2010: Updating TermStore using PowerShell | Ed Price: "Good details and formatting. Could benefit from a TOC, breakdown of the code, and a See Also section at the end for Wiki links. Thank you!" Richard Mueller: "Good code. We could use some references." |
![]() | Small Basic Technical Guru - February 2016 |
Ed Price - MSFT | Small Basic 1.2: Installation Guide | Richard Mueller: "Good use of Wiki guidelines. Great images that detail the steps." | |
Nonki Takahashi | Small Basic: Desktop | Michiel Van Hoorn: "Realy cool to interact with Windows components." Richard Mueller: "Excellent use of Wiki guidelines" | |
Ed Price - MSFT | Small Basic: How to Publish Your Program | Richard Mueller: "Good images and useful information." Michiel Van Hoorn: "Sharing is caring. How much fun is it to share your code with friends and family" |
![]() | SQL BI and Power BI Technical Guru - February 2016 |
Benchmark your SQL Server instance | SSIS - Transfer data from Multiple tables using a single DFT | PT: "Vinay, this is a very creative and useful solution to a difficult problem. I've seen multiple ETL frameworks for SSIS over the years and I think your approach is quite sound. Congratulations on winning the Guru award
this month!" RB: "Nice walkthrough and solution to a common scenario" | |
Visakh16 | SSRS Tips : Implementing OR Based Logic for Dataset Filters | PT: "Visakh, thanks for posting this useful information about report filters. This is a powerful feature that takes a bit of effort to use effectively." | |
Greg Deckler | Dates Prior to 1900 in DAX | PT: "Greg, thanks for this insightful contribution. The date range limit is something I run into all the time and is a tough problem to solve. This is a good work-around technique." RB: "Interesting workaround" |
![]() | SQL Server General and Database Engine Technical Guru - February 2016 |
FLauffer | Workaround for Delay in Transaction Log Truncation: Snapshot Replication | UR: "good and short explanation of a common problem with transaction logs." DRC: "The article talks about executing sp_repldone as workaround which can be used only as a last resort. " |
![]() | System Center Technical Guru - February 2016 |
Darren Joyce | SCOM Reset Health on Alert Close | Alan Carlos: "Thanks for article!" Ed Price: "Great depth and details in this article! " |
![]() | Transact-SQL Technical Guru - February 2016 |
Olaf Helper | SQL Server: Implementation of N-Gram Search Index | Richard Mueller: "Very interesting ideas for search. Good use of Wiki guidelines" Ed Price: "I love how you break down the code and explain it so thoroughly!" | |
Natig Gurbanov | SQL SERVER:Using Datalength() function | Richard Mueller: "Interesting. This could use some references." Ed Price: "Great topic. It could benefit from more explanation of the code." |
![]() | Universal Windows Apps Technical Guru - February 2016 |
George Chondrompilas | Real-time chat UWP application using Azure Mobile App and SignalR | JH: "Nice and simple example. Would love to see more examples using SignalR." Ed Price: "The breakdown of the code and the images add great value." | |
Magnus (MM8) | UWP: Disabling Selection Of Items In a ListView | JH: "Nice workaround for disabling items." Ed Price: "Fantastic formatting and great explanations!" |
![]() | Visual Basic Technical Guru - February 2016 |
.paul. | calc2 - A VB.Net OOP Calculator | MR: "Nice example!" Richard Mueller: "Interesting ideas. Lots of well documented code. Good use of Wiki guidelines." | |
SYEDSHANU | Control Chart Using VB.Net | MR: "Nice and easy to use chart!" Richard Mueller: "Nice GUI. Lots of code." |
![]() | Visual C# Technical Guru - February 2016 |
SYEDSHANU | ASP.NET 5 CRUD using Scaffolding and Entity Framework | Carmelo La Monica: "Very interesting article, very detailed and good images and video." Jaliya Udagedara: "Good article with a detail explanation. And the sample code is available in MSDN Code Gallery. Hint: you can use EF itself to generate the database and seeding the data rather than running the scripts." | |
Emiliano Musso | Binary Clock in C# and WPF | Jaliya Udagedara: "This is interesting. Great explanation using code snippets, images and a video. And the sample code is available in MSDN Code gallery. Just great!" Carmelo La Monica: "Congratulation, very impressive imeges, good video dimostration and lot of funny :)" | |
Brian Seekford | How to access legacy forms checkboxes and ActiveX checkboxes in Word using C#! by Brian Seekford | Jaliya Udagedara: "Would love to have a better formatting in the article and of course a sample to download and try it out." Carmelo La Monica: "Good article. it can benefit format C# code and table of contents." |
![]() | Wiki and Portals Technical Guru - February 2016 |
Ed Price - MSFT | Wiki: Dynamics CRM Portal | Richard Mueller: "A great portal with great links." |
![]() | Windows PowerShell Technical Guru - February 2016 |
Pierre-Alexandre Braeken MCSE | RSA with PowerShell - PowerRSA | Ed Price: "Great depth! This article will be a good resource to return to!" | |
Richard Mueller | PowerShell AD Module Cmdlets Cannot Clear, Add, Remove or Replace Back Link Attributes | Ed Price: "Beautiful formatting, and great use of the different sections!" |
![]() | Windows Presentation Foundation (WPF) Technical Guru - February 2016 |
Andy ONeill | Combobox Matching Complex Type | Peter Laker: "Nice work Andy. Well presented and useful, just like you!" Ed Price: "I love how Andy's articles break down each snippet like this!" | |
Brian Seekford | How to display a different value in a WPF combobox based on selection i..e None instead of blank by Brian Seekford | Peter Laker: "Thank you Brian, good contribution" Ed Price: "Good scenario. Could benefit from See Also links and code explanations. Good article!" |
![]() | Windows Server Technical Guru - February 2016 |
Kia Zhi Tang (Ryen Tang) | Nano Server: Deploying an Internet Information Services (IIS) Web Server | Alan Carlos: "Great article! Congratulations!!! Nano Server is amazing!" JM: "This is an excellent article on Nano server, thanks for your contribution" Richard Mueller: "Good references and step by step instructions." Mark Parris: "Good insight into the one of Nano server's capabilities." | |
Mahdi Tehrani | Load balancers and Active Directory | Mark Parris: "Critical information that people need to be aware of." JM: "This is a good article that could use an edit pass for clarity" Richard Mueller: "I share your concern for the need of a load balancer. Any AD integrated app should use AD group memberships." |
#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!
I need to identify and be notified when records in my SQL Server 2012 R2 database table meet a specific condition. For example, when a record in the trans_record table has any entries in the “status” column of “error”.
The query is simple enough and I have setup an SSIS package to query the table with the appropriate “where” clause. I followed this with a SQL Agent job to run the SSIS package daily at 7:00am and export the offending records to a flat text file.
What I need to understand is how I can be emailed only when a record is found with the query performed by the SSIS package. It appears that the SSIS package will always create a file regardless if any records are found.
I see that SQL Server supports Alerts and defined Operators to be notified, but I don’t understand how to be notified only if my query returns a valid record.
How can I set this up in SQL Server?
Thanks
I have a couple questions about this. I am using SQL Server 2014. The database that has problems is less the 100 MB. I will get how busy the server is later.
Background. I am helping someone identify the source of intermittent timeouts. My understanding is that their .Net applications are running fine most of the time. But then the application begins timing out. I haven't established yet whether this is a connection time out or whether the query times out (that will come later). I am toying with the following approach.
I create an alert on Lock:Lock Timeouts (timeout > 0)/sect on instance _total, if counter > 0.
The response is to run a job that runs a script that will dump the current connections, their waiting status, whether they are head blocker, etc (I can build this) into a table.
Next for Options, I want to set the Delay between responses to 4 minutes.
Questions:
1) What performance issues can I anticipate? Is there no risk, moderate risk or high risk of this alert causing performance problems in a scenario of moderate work load, high work load (100 transactions per second, a number I pulled out of my hat).
2) My second question I think that I can test. But off the top of your head, does an ADO.Net command cause a timeout that this alert can listen to.
Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com
Hi, I created a SQL database on Azure. I am able to connect from SQL Server management studio from my local machine as well from the SQL database portal online.
However, when my web site (web application) tries to start up and connect to the database, Azure throws an error that login by user failed. I've added the IP address of the azure web application to the firewall as well, and configured access by Azure services to True. In my web.config, I'm using the same connection string that Azure provided me (with my password included of course)
What else should I be doing? Any help will be appreciated.
Hi All,
Can you please suggest how to reduce the clustered index cost and operation from scan to seek.
SystemUserID column is primary column in table with unique identifier data type.
Hi,
I am looking for best practices and suggestions for the 24x7 live application Database Maintenance.
Have one application database on SQL 2012 which 24x7 live application. I am running rebuild job when i get maintenance window. But the problem i am facing is when I run this job its get locked with users transaction and run for infinite time until i manually kill the maintenance job. Steps i am running is
1) Kill Database connections
2) Run Index rebuild job.
Even though killing all connection at first step rebuild job get locks up with users connection. So while I am running Index Rebuild job manually I have to kill all users connections manually. Index Rebuild job is set through maintenance plan and HAve added first step to kill database connections.
Any best suggestion , workaround or best practices will help to solve this .
Thank you.
Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach