Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all 6525 articles
Browse latest View live

SQL Agent Jobs & AlwaysOn

$
0
0
This is probably really obvious and I might just need a fresh pair of eyes to check it, but I have this SQL Agent job that I need to run only against the Primary replica in an AlwaysOn AG setup. It works perfectly when I run the script in Management Studio, but I get different results when I execute it as a job. [code="sql"]use MyDBgoif (select ars.role_desc from sys.dm_hadr_availability_replica_states ars inner join sys.availability_groups ag on ars.group_id = ag.group_id where ag.name = 'OBFUSCATED_AG' and ars.is_local = 1) = 'PRIMARY'begin EXECUTE my_stored_procedureendelseprint 'This is not the primary replica.'[/code]When I run that as a script on the primary replica, it succeeds:[code="sql"]Command(s) completed successfully.[/code]When I run it as a script on the secondary replica, it succeeds:[code="sql"]This is not the primary replica.[/code]But when I put that script into a SQL Agent job step and execute it on the primary replica, the job reports success and outputs[code="sql"]Executed as user: [Obfuscated\User]. This is not the primary replica[/code]But it is the primary replica. What am I missing? I've checked all the brackets :-D. There are no other job steps.Thanks

Unregistered Component Error in SSIS

$
0
0
I can't create any Data Flow Task. Once I create (tested and working) Connection (it doesn't matter if it is Excel, Flat File or other) and try to use it with a Source Assistant, I get the following messages:===================================The component could not be added to the Data Flow task.Could not initialize the component. There is a potential problem in the ProvideComponentProperties method. (Microsoft Visual Studio)===================================Error at Data Flow Task [SSIS.Pipeline]: Component ", clsid {C4D48377-EFD6-4C95-9A0B-049219453431}" could not be created and returned error code 0x80070005 "Access is denied.". Make sure that the component is registered correctly.Error at Data Flow Task [ [1]]: The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "".===================================Exception from HRESULT: 0xC0048021 (Microsoft.SqlServer.DTSPipelineWrap)------------------------------Program Location: at Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass.ProvideComponentProperties() at Microsoft.DataTransformationServices.Design.PipelineTaskDesigner.AddNewComponent(String clsid, Boolean throwOnError, Boolean select)===================================The component could not be added to the Data Flow task.Could not initialize the component. There is a potential problem in the ProvideComponentProperties method. (Microsoft Visual Studio)The component could not be added to the Data Flow task.Could not initialize the component. There is a potential problem in the ProvideComponentProperties method. (Microsoft Visual Studio)===================================Error at Data Flow Task [SSIS.Pipeline]: Component ", clsid {C4D48377-EFD6-4C95-9A0B-049219453431}" could not be created and returned error code 0x80070005 "Access is denied.". Make sure that the component is registered correctly.Error at Data Flow Task [ [1]]: The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "".Error at Data Flow Task [SSIS.Pipeline]: Component ", clsid {C4D48377-EFD6-4C95-9A0B-049219453431}" could not be created and returned error code 0x80070005 "Access is denied.". Make sure that the component is registered correctly.Error at Data Flow Task [ [1]]: The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "".===================================Exception from HRESULT: 0xC0048021 (Microsoft.SqlServer.DTSPipelineWrap)------------------------------Program Location: at Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass.ProvideComponentProperties() at Microsoft.DataTransformationServices.Design.PipelineTaskDesigner.AddNewComponent(String clsid, Boolean throwOnError, Boolean select)Exception from HRESULT: 0xC0048021 (Microsoft.SqlServer.DTSPipelineWrap) at Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass.ProvideComponentProperties() at Microsoft.DataTransformationServices.Design.PipelineTaskDesigner.AddNewComponent(String clsid, Boolean throwOnError, Boolean select)Any ideas?Thank you

AlwaysOn HA - secondary node failed and restored from VM image - can't get databases back in sync

$
0
0
SQL 2014 AlwaysOn availability group (this is for a DR test, haven't rolled to prod yet)We have two nodes, Red and Blue.Red was primary, died (and we then failed over to Blue making it primary).We restored the VM image of Red from about 12 hours earlier.Now we tried to resume data sync with Blue and Red.However, even though they all "see" each other, Red who we just VM restored stays in the not synchronizing state and when we tried a resume we get:----------[b]AlwaysOn Availability Groups data movement for database 'MyExampleDatabase' has been suspended for the following reason: "system" (Source ID 7; Source string: 'SUSPEND_FROM_REVALIDATION'). To resume data movement on the database, you will need to resume the database manually. For information about how to resume an availability database, see SQL Server Books Online.[/b]---------I think that in this case, we have to delete the databases off Red (who was the VM restored one that died) and restore them back to current and then resync and rejoin them to the AG?Is there anyway to join them back to the AG WITHOUT having to do a full restore plus logs up to current and then re-joining and synching to the AG?I can't find much info on that error but it seems to be saying that the logs that were on the AG are now so out of date they no longer have all the needed info in the current log chain (backups were taken and log checkpointed and truncated) and we have to restore from backups to bring all the logs back and up to chain?Trying to fully understand what is going on here.Thanks!

AG readonly database after failover

$
0
0
Hello, I have a two node cluster with a availability group that contains one database for initial set up. I have the replica set for "all connections" and both databases are showing synchronized on the ssms display. When I fail over to the secondary replica and launch the app that sits on top I get errors that the database is read only and the app cant continue because of this. When I look at the database on the secondary it is in read/write mode and I can make changes through sql code. I do have a local sql user account that the app connects with and I wonder if this is what is causeing the issues as the sid's may be different from the old primary to the secondary? New to AG groups so any help would be appreciated. Thanks.

Firstly, traffic exchanges today are etiolated

$
0
0
Firstly, traffic exchanges today are etiolated by many people to increase website traffic to their websites. While odd is not wrong, you must know the type of website excess you are getting and how to use it. The website traffic jam that you are getting on occasion such methods are website owners and if you promote a tool that they can use to increase their own website profusion or promote a website surplus generation newsletter to them, you can increase your own website traffic substantially when you send a newsletter telling them occur the latest overcrowding generation tool you got. Therefore to make money occasionally traffic jam exchanges you need to use it smitten a landing page leading to a newsletter signup otherwise you are wasting hush surfing time. http://brainammoadvice.com/virtnext-scam-or-fake/

SQL Performance measuring tools

$
0
0
Dear All,Do we have any to tool to measure SQL Server (2012 or 2014) Performance and/or Database Performance with respect to the I/O Resource usage, Memory consumption, T-SQL execution performance etc.Thanks in AdvanceKishore M. K.

SQL Cluster Questions

$
0
0
active node is failed while running transaction, would the transaction continued on new active node or transaction will fail in this scenario ?

http://optimalstackproduct.com/mzt-48/

$
0
0
First Glenn Beck, of all is commenting on others' morals as a signal of not really a coherent individual? The person who ostensibly feels that President Obama is in fact, the Adolf Hitler that is reborn? This man who feels that the guidelines of Obama are as bad to be burned alive with gasoline? This guy dares session everyone on Mental Health? Today, Bush was not responsible for 9/11, he was not that capable. I actually donot concur with the Communist Manifesto but that does not required create a person who likes it, significantly less than coherent. You can find less coherent textbooks, and lots of of them are ones are which are acknowledged by politicians everyday within this nation.

Data File group is filled

$
0
0
We have 2 TB Production Database, in which already created one file group for indexes only, which contains 10 files each size 130 GB as Initial size. initial size is already filled-up for all files but auto growth has set to unlimited so as of now no issue.is it recommended all files set to unlimited data growth ?or do we need to put the limit the growth and create same 10 new files with same size ?which one is best practice ?

tempdb error

$
0
0
I have a monster box has one OLAP instance and one SQL Instance(houses source data for OLAP). WHen processing one of the cubes i get OLE DB error: OLE DB or ODBC error: The operating system returned error 23(Data error (cyclic redundancy check).) to SQL Server during a read at offset 0x000005709a0000 in file 'T:\tempdb\tempdb.mdf'This is a 32 core Numa monster (new dell server) with SSD for the drives. I have 8 tempdb files (had 4 got same error). The tempdb disk is buried at 100%. This error show for data shows a corruption, ( i have 200 gig for tempdb) This is all SAN attached. ANy ideas?

Software Assurance Question

$
0
0
Hi,Is SA an annual fee? Is it worth it?It's free upgrades, MS support, and online training, correct?Thank you.

SQL Server 2014 AlwaysOn between DC (3 Node) and DR(2 Node) setup

$
0
0
Hi,We have 3 Node cluster (Active-Active-Active) at DC and 2 node cluster (Active-Active) at DR. We want to setup SQL Server 2014 AlwaysOn between DC and DR in a such a way that if all 3-Node at DC goes down then then failover should happen at DR serverPlease let me know if this is possible. Need some suggestions on thisRegards,Nikhil P Desai

sql server 2014 upgrade advisor (upgrading from 2008r2)

$
0
0
we are in the process of upgrading from 2008r2 to 2014I have run the 2014 upgrade advisor, but something came up that was not noted in the advisor reports, specifically, FASTFIRSTROW being removed in sql 2012Is that because I would only see that if I were to run the 2012 upgrade advisor, in addition to the 2014 upgrade advisor? Or does neither version of the advisor pick up this kind of thing (i.e. would I have to rely solely on books online [Database Engine Backward Compatibility] to get this information)?

Clear your skin layer over a standard schedule

$
0
0
This will be manufactured to sit on skin for [b][url=http://leorskincareblog.com/wrinkle-clearer/]Wrinkle Clearer[/url][/b] at the least fifteen minutes. Following this you pat dry your skin and should wash the stick off. This normal treatment could make your-face light immediately.Determine your Skin Care Review kind to ensure that the products you utilize are beneficial to your skin layer. You're able to avoid unnecessarily utilising the improper solutions, by targeting products that influence the skin kind. Plan an appointment with an expert for them to help you, if you are uncertain.Begin from developing in the place, preventing dry skin. Consume lots of water, at the least 8 glasses a day, to safeguard and moisturize your skin from your hard elements. Add olive oil to your bathwater. Prevent bathtub or shower water that is not also cold, as this can dry skin. Prevent excessive coffee and smoking or alcohol.Read more =====>>>>>>>>>>>> [b][url=http://leorskincareblog.com/wrinkle-clearer/]http://leorskincareblog.com/wrinkle-clearer/[/url][/b]

db suspect & error

$
0
0
We have SQL 2014 cluster in vmware. Suddenly the user db is in suspect mode.From the event viewer the sequences of events1) Backup database successfully processed (around 11 pm). Scheduled full backup job ran that time2) The desktop window manager has exited with (around 7 am)3) SQLServerLogMgr::LogWriter: Operating system error 170(The requested resource is in use) (around 2pm)4) The log for database "testdb" is not available. Check the event log for related error messages. Resolve any errors and restart the database (around 2 pm)5) Database "testdb" was shutdown due to error 9001 in routine 'XdesRMFull::CommitInternal'. Restart for non-snapshot databases will be attempted after all connections to the database are aborted (Around 2pm)6)fcb:close-flush Operating system error (null) encountered (around 2 om)7) fcb:close-flush Operating system error (null) encountered (around 2 pm)8) Starting up database "testdb" (around 2 pm)From step 3 - step 8 has same timestamp9) 55 transactions rolled forward in database "testdb". This is info msg only. No user action required10)FCB::ZeroFile(), GetOverLappedResult(): Operating system error 170(The requested resource is in use) (Time stamp 4 sec after step8)11) An error occured during recovery, preventing db "Testdb" from restarting. Diagnose the recovery errors and fix them or restore from a known good backup. If errors not corrected or expected, contact technical support12) Login failed for the user "TestUser". Reason: Failed to open the explicitly specified database13) Continuous login failures for 1 hr14) SQLServerLogMgr::LogWriter: Operating system error 170(The requested resource is in use) (around 3pm)15) The log for database [b]"tempdb"[/b] is not available. Check the event log for related error messages. Resolve any errors and restart the database (around 3 pm)Continuously seen these msg.So restarted the active node. It makes the SQL failover. After that able to see the DBs normally.No clue what happened?

Teaching the methods of utilization of Google

$
0
0
Teaching the methods of utilization of Google mail and Google calendar and method of working with Google docs sets their training apart. Creation of Google sites for business partners is also a unique feature. It helps to conserve a healthy business relationship. Applications like Google Calendar, Google Mail, Google Docs, Google Apps Control Panel, Google Talk, Google Video and Google Sites can be used easily if one undergoes the training. http://nitroshredadvice.com/zulander-hack-scam-app/

Massive Performance Problems when using Snapshots

$
0
0
Hi Folks,we are doing a database Migration that involves a conversion of non-Unicode data to Unicode. The process involves the conversion of every non-Unicode table in the database totalling around 2TB of data.The first stage of the Migration was to restore the database to a new Server which went without a hitch. Because the restore took around 4 hours I decided to take a snapshot of the database to err on the side of caution. What happened next surprised me: The conversion, which had been tested several times over although without the snapshots was running between 10-15 times slower than the practice runs on the same Server.When I looked a Little deeper I discovered in the error logs that there was massive contention in the TEMPDB, something we hadn't seen during practice. Furthermore, the database has 10 files and trace flag 1118 is also turned on. The question at this Point was "why was only one tempdb being used and not all 10"? When I used the Task Manager to see what activity was occuring, there was around 4x as much activity as in the source database! I can't understand why....When I removed the snapshot the database went back to its normal very fast state with no further interaction needed from me....Can anyone please explain this phenomenon and why a snapshot can so adversely affect database Performance?Many thanks in advance...Regards,Kev

AlwaysOn and DB Mirroring

$
0
0
All,We have 2 node cluster in data center A where we configured AlwaysOn. In data center B we have SQL Instance which will be DR for databases of data center A. We are planning to Sync data between these 2 data centers using database mirroring (only ports can be opened in both Data centers, they are running on different domains which cannot run or come under same domain). Will there be any issue in configuring the Database Mirroring which is already configured as Availability Database? Is there any other better option to sync data between these two data centers? As we can have multiple replicas, I am sure database Mirroring works but I want to double sure. Your inputs are highly appreciated.Regards,

Debug sql server queries without any windows user

$
0
0
I need your help for debugging.I Want to allow my SQL Server logins to debug while windows login is disable or haven't SysAdmin Role.When I disable Windows Login, I get this error: http://i.stack.imgur.com/XY1FZ.pngWhen I revoke sysAdmin role form it, I get this error:http://i.stack.imgur.com/EpLsJ.pngWhat special solution do you have for allow some logins to have debug permission????

trying to link server to oracle...

$
0
0
Hi,I have been trying to create a link server connection from management studio to mysql and it is proving to be a nightmare :w00t::w00t::w00t:I have tried downloading the ODAC 12c (which i really dont have a clue what it is) and every other connector I found on the internet.I also tried to install the connector manually as I still do see it on the registry. And that doesnt work either, it tells that i have the wrong version (I tried both) or that I am missing something else.I also tried to make a ssis connection and also have no luck.can someone please help me to get connected to myslq using a linked server connection.pretty please :blush:thanksastrid
Viewing all 6525 articles
Browse latest View live