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

Restore a SSISDB to another server

$
0
0
I am try to figure out how to recover a SSISDB catalog and database to another new server.I created the key for encryption when I initially create the SSISDB catalog.When I start the step following this Microsoft article:https://msdn.microsoft.com/en-us/library/hh213291%28v=sql.120%29.aspxThe first step is to backup the key using below backup master key to file = 'c:\SSISDBKEY' encryption by password = 'Mypassword'But it failed with Cannot find the symmetric key 'master key', because it does not exist or you do not have permission.I am sysadmin, so I have all permissions, but why it gives this error?Thanks

SSISDB Catalog to new server

$
0
0
I am new to project deploy mode for SQL server SSIS DB catalog.My question as DBA is when we need to move databases to a new server, with a high version of SQL server, what are the steps?I saw there is a microsoft article about backup, restore, move SSISDB catalog.One thing I tried after restore the SSISDB to new server, I don't see the packages in SSISDB catalog.Does that mean the developer has to redeploy the project again from Visual studio to the server?If the developer is not available, what is the option for DBA to move everything that in the SSISDB catalog (not the SSISDB database since it is already restored) to the new server?Thanks

can we restore master db of 2016 in sqlserver 2014

$
0
0
hi everyoneis it possible to restore master database of 2016 on 2014 sevrver.

Quickest way to move jobs

$
0
0
Hi Guys,I need to move all the jobs from one of my live servers to a DR server.I want to restore the msdb backup instead of scripting them out and recreating them.Is there something that I can miss when just restoring msdb that would cause jobs to fail or is it that straight forward?

Granting access to ligin with expiration time

$
0
0
Hi,I'm googling but i can't find any answer for my question.Is it possible to create a login (or permissions for a login) with an expiration date and time? for example someone comes to me asking for read only access to certain table and i want to give him access that access but only for 2 days, then i have another user asking for access to a different table for a week.I know certificates have expiration day on them and they can be used to sign procedures etc but is there a way i could use this or similar functionality to solve my problem? Or do i have to create my own solution to manage that?

How to run sql 2014 upgrade advisor on passive node when service is not running?

$
0
0
I have a 2 node cluster and were supposed to run the upgrade advisor against passive node first, but how can you when the passive node sql service is not running? When I run the upgrade advisor I get the below error. Appreciate the help.Unable to connect to server. Reason: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Errors when attempting to install SQL 2014 SP1

$
0
0
I am trying to install SP1 for SQL 2014 and getting the following error:Error installing SQL Server Database Engine Services Instance FeaturesThe User Data directory in the registry is not valid. Verify DefaultData key under the instance hive points to a valid directory.Error code: 0x851A0043I tried searching for this error and didn't find anything useful. Most results were for SQL 2012 and didn't apply.Any information would be greatly appreciated.

same spid, different login times

$
0
0
hi,I am using SQL Diagnostic Manager to review the activity from earlier in the day.I see a number of sessions from SAP BusinessObjects Enterprise, one session in particular has the same SPID, user, host, and NetAddress, but for every change in the command running there is a different login time. Is this still from the same report? Does BizObject reconnect to sql server for the same report, or am i looking at a different report altogether? (I don't have any details right now as to how the reports are set up or working.)thank you

Query Suddenly Performing Badly

$
0
0
We have spotted a query that has suddenly gone rogue. Over the last 5 days it went from running in under 2 seconds to taking over 12 seconds. I can see from SolarWinds Database Performance Analyzer that that this started suddenly on 8/1. The number of rows processed daily jumped from around 75,000 to now over 125,000 yesterday. Number of executions has stayed steady at around 4600 per day. Physical reads have gradually plummeted from around 500,000 per day to just under 65,000 yesterday while logical reads has skyrocketed from just under 500,000 to 1.5 million yesterday. There were no index changes on 7/31 or early on 8/1. The procedure itself was not changed. I did think about whether there were simply suddenly more rows to process so I looked at the tables involved. I am not daily tracking table growth so I had to compare row counts from about two months ago when I restored a backup of prod to Dev. There are some tables that have grown by a few million rows. I looked at stats on those tables. Some stats have not updated in 2-3 months. I have trace flag 2371 enabled to address the issue of auto update stats not updating soon enough for large tables. I manually updated the stats for a particular one that was old but it made no different in the query plan and the estimated and actual rows information did not change.I am not particularly adept at Profiler or XEvents, but I used the Query Wait Statistic template to make an XEvents session to filter on one of the sessions running the rogue query. Any ideas would be great.

Always On Setup - Log Chain

$
0
0
Hi,I've got a situation where I need to re-set up Always On for a database. I just want to check my chain of thought due to the database being 100GB in size and being in use on the primary.The Primary does a full backup at 00:00 each day and then hourly log backups. So what I was thinking was;1. Take the full backup from Day 1 and restore it on to the secondary. I seem to remember due to copying between data centres this may take about 36 hours.2. Meanwhile the primary will continue to take log backups every hour.3. Once the secondary full restore has finished I can start to apply the logs from the primary to catch up, once caught up I can then set up the Always On for the database.My questions are this;1. Does the above make sense?2. Whilst the secondary does the full backup restore (36 hours worth) the primary will want to do another full backup, am I best disabling this so I just have the logs to restore or will I (I think I will be able to) just skip it in the restore). so on the secondary I'd restore as follows;1. Restore the full backup from Day 1.2. Then restore all the log backups from Day 1 in order.3. Skip over the full backup from Day 2 in order.4. Restore all the log backups from Day 2.I hope I've explained myself, feel free to ask if you need more info,Thanks,Nic

Performance Tuning with SQL Server 2014 Standard

$
0
0
Hi,I'm sure this is probably trivial for many of you as seasoned DBAs but as a database developer, I have a system performance situation that I'm hoping you can help guide me on. The issue is that I have an application with a fairly transactional database, and I have a reporting tool used by many people that executes views created in the main application's database (for real-time reporting). The problem is that each application is impacting the performance of the other because CPU sits at 100% while the certain views run.I'm sure there are some low-hanging fruit here, but just so you have the whole picture, here's some information about the setup.-SQL Server 20014 Standard - Max server memory is set to 20GB, MAXDOP is set to 4, Cost Threshold for parallelism is at the default of 5-Windows Server 2012 R2-VM with 32GB memory, 1 socket and 8 virtual processorsThe application with the fairly transactional database generally uses only about 10-15% of CPU, and it's only when reports get run (and therefore the views get run) that the CPU really takes a hit. Ideally, I would prevent any views or queries like that from interfering with any of the 10-15% of CPU that the application needs. I've been doing some research and here are some of my thoughts to address this. I would be very interested to hear how you might approach correcting this issue or if some of these options would be completely useless.- Rebuild indexes - I know the database is highly fragmented right now- Rewrite views - although I know that some are as optimized as I can make them- Increase max server memory of SQL Server / the VM itself- Update the values of sockets, virtual processors, and MAXDOP to a more optimized combination- Use affinity mask to make SQL think there are fewer CPUsIn your experience, have any of these proved to be consistently effective in reducing CPU utilization? Is there another option that I'm forgetting?Again, my primary goal is to prevent users from executing reports multiple times from the reporting tool and those queries interfering with the main application's performance, even if it takes the reports longer to return results.Thanks,Mike

to fly because of

$
0
0
[url=https://www.reddit.com/r/RioOlympicsgames2016/]Rio Olympics 2016 Live Stream[/url]

Clustering Key

$
0
0
Have a table with below structureColumn_name Type LengthAGENT_ID float 8AGENT_CODE nvarchar 510ENG nvarchar 510we have a procedure which is the one that will be accessing this table by the column AGENT_CODE, the table is having a clustered index on column AGENT_CODE is that correct or its better to have a clustered index on AGENT_ID and a Non-Clustered Index on AGENT_CODE? AGENT_ID is having duplicate values.

Query Execution Time

$
0
0
Hi Experts,When I check the Statistics IO & Statistics Time for a procedure I get below results. How can I get the total time taken for the procedure to execute, Is it the total of all elapsed time or only the last shown?SQL Server parse and compile time: CPU time = 0 ms, elapsed time = 0 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.SQL Server parse and compile time: CPU time = 0 ms, elapsed time = 0 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.SQL Server parse and compile time: CPU time = 0 ms, elapsed time = 0 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.SQL Server parse and compile time: CPU time = 0 ms, elapsed time = 0 ms.SQL Server parse and compile time: CPU time = 0 ms, elapsed time = 0 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.Table 'User'. Scan count 1, logical reads 9, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.Table 'Company'. Scan count 1, logical reads 903, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. SQL Server Execution Times: CPU time = 15 ms, elapsed time = 12 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.Table 'CPC'. Scan count 1, logical reads 168, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 26 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.Table 'Delivery'. Scan count 2, logical reads 221, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 19 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.Table 'AllData'. Scan count 1, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 17 ms. SQL Server Execution Times: CPU time = 15 ms, elapsed time = 76 ms.SQL Server parse and compile time: CPU time = 0 ms, elapsed time = 0 ms. SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.

The database principal has granted or denied permissions to catalog objects in the database and cannot be dropped

$
0
0
Dear all,I get the following error message when trying to remove a login on SSISDB even though it has no longer any permissions on the database:"The database principal has granted or denied permissions to catalog objects in the database and cannot be dropped"Would you please let me know what I should be doing?Thank you in advance!You cannot vote on your own post 0 Dear all,I get the following error message when trying to remove a login on SSISDB even though it has no longer any permissions on the database:"The database principal has granted or denied permissions to catalog objects in the database and cannot be dropped"Would you please let me know what I should be doing?Thank you in advance!

I would take the opportunity

$
0
0
[url=https://transitionnetwork.org/projects/nbc-rio-olympics-2016-live-s-tream-8-august-2016-gametime]Rio Olympics 2016 Live Streaming[/url]

the ease muscle pain

$
0
0
[url=https://www.linkedin.com/pulse/quantum-code-review-why-system-software-scams-legit-binary-options]Quantum Code Review[/url]

adventure.' over 10 million

$
0
0
[url=https://www.linkedin.com/pulse/100-free-quantum-code-review-scam-legit-how-trade-using-thomas-miller]Quantum Code Review[/url]

Backup Set will expire - Backups

$
0
0
Hi All,Hope all are doing well!I got a question regarding Backupset will expire: Example my Backup was taken on 05-Aug-2016 and Expire date is given on 08-Aug2016 i.e. backup set expired,01. After Backup Set expires can we use backup to restore a database if backup is not purged/deleted?02. If Backup Set Expired and we want to store that backup file in another drive for next one year will it be possible/guarantee that we can restore and get data after one year?03. Backupset overwrites the backups if we use the option overwrite, if i put append and if i had given an expiration date what will happen?04. Overwrite means it will overwrite the metadata or file?I have a bit confusion, i have a maintenance plan which take regular full backup and set expiration to 14 days, now i want archive some data and keep the backup which was taken from maintenance plan where i am not allowed to take copy_only backup, so can i use the backup and store it one year if expiration is declared for a backup.

Inserting to Right Partition Question

$
0
0
guys-Im inserting 1 billion rows into a partitioned table, I notice that while the insert is taking place, the partition scheme is not being implemented, meaning all the data is loaded into the primary partition. Is this normal behavior for 2014 and or SQL or is my scheme perhaps not correct?Im guessing that SQl performs the scheme after the insert transaction is done, but not sure how it designates the scheme before, during or after the inserts.
Viewing all 6525 articles
Browse latest View live