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

Rollback plan for SP1 on Sql Server 2014

$
0
0

Dear all,

I'm gonna to update this SP on UAT however if some issues are identified I can revert the new improvements for Cardinality Estimator reverting to 110 level with ALTER DATABASE.... but I was wondering how to rollback nowadays one SP in the latest versions of SQL. I mean, in the past I read that you need to back up non user databases (model, master) ?

To tell the truth my current idea is simple and perhaps naive: just add/remove applet in Control Panel. ?¿?

Any links related to would be greatly appreciated.


SQL Server Database migration

$
0
0

HI All,

We are planning to move few databases from one server to other server by backup and restore method.  

1) To ensure no write operation during migration activity Please let us know the options we can have.

2) if we can set the databases in read only mode and take a backup and restore on new server do we need to ensure anything else?

Regards,

Varu

Server Audit / DB specification action types

$
0
0

Hi,

I have been tasked with creating a server level audit speciation as well as individual DB level audit specifications and asked to add all available audit action types.

I was just wondering if anyone has any SQL handy for adding all available actions for a given DB / Server audit specification? This is for SQL 2012 Enterprise Edition.

Otherwise it seems to be a manual task of selecting every option from the dropdown!

Thanks in advance for any help.

Regards,

Phil

Set up of data and log file

$
0
0

Hi guys, I had to set up a huge database and I don't know if the set up is correct.

Simple recover (there are no transaction, just, let's say, a sort of DW).

File Type Rows Data

Initial Size 1000000 Limited to 1400000

Autogrowth in Megabytes 10000

Log

Initial Size 10753

AutoGrowth by 256 Limited to 2097152

This database takes data from another huge database using insert into from, etc; so produce tons of log file (bad coding but I can't do nothing about). Should I review the log set up in order to give them more performance?

Thanks

Spid question

$
0
0

Hi there,

When you kill one SPID you get another one. You see that in the same window by using 'select @@spid'. Butlogin_time starts taking the last last_batch for the killed spid.

is it possible to change that?

Thanks in advance

SQL Job kicks off upon DB unavailablity

$
0
0

Friends,

We have interesting situation, the snapshot database called_Prod_Snap gets corrupted.

When I say corrupted, you can;t expand them ... (No plus sign)

We run the job manually to recreate our snapshot.

Any automate process which can be implemented here?

Not sure below is what we can implement?

if the query get any result set -> do not do anything

if query does not respond (as DB is unavailable) -> run t-sql job.

Thank you.

Ad Hoc Distributed Queries with OPENROWSET - do I still need a linked server

$
0
0

Im in the middle of setting up the ability to use openrowset, and after adjusting sys.configurations, I ran a  test query and get an error:

Im using SSMS and am a sysadmin.  The query itself is using Trusted_Connection 

SELECT * FROM OPENROWSET('SQLNCLI','Server=TESTSQL5;Trusted_Connection=yes;Persist Security Info=False',

SELECT TOP 1000 * FROM ABC.dbo.GGHH700')AS GGHH700

I still need a linked server?

Msg 18456, Level 14, State 1, Line 1
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
OLE DB provider "SQLNCLI11" for linked server "(null)" returned message "Invalid connection string attribute".

backup/restore all dbs

$
0
0

Hi experts,

I need to migrate sql to a new server... Right now it’s running on windows 2008 r2, they are going to delete the vm and give me a new one with windows 2012.  

The sql instance is 

Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (VM) 

(I know it’s outdated but app team wants to use this same version/SP). 

I plan on backing up all databases and users to a safe folder and then restoring them, but I have a few questions. 

 

-do I need to script out sql agent jobs? Or they get backed up when I back up msdb?

-When restoring should I first restore system databases or user databases?

 

Any lesson learnt/ helpful link would also be useful, thanks!


Database access problem (2014)

$
0
0

Hi,

I have a user security problem; an application user cannot run a view which references to another database. Say we have 'DB1' and within it 'app_view'. app_view uses some tables form DB1 and one from DB2. The following error message is displayed.

Msg 916, Level 14, State 1, Line 3
The server principal "app_user" is not able to access the database "DB2" under the current security context.

I checked the following for 'app_user'.
It exists in DB2.
It has DATABASE CONNECT permission.
It has OBJECT_OR_COLUMN SELECT permission.
The user is valid, the sid of the user is the same as the login's.

I ran the view again, I received the same error message.

Then I set the TRUSTWORTHY property to True in DB1.
Then suddenly the Replication Log Reader Agent stopped. (DB1 has transactional replication)
Therefore I changed the option back to False.

I am really puzzled, so I would appreciate any idea how to resolve this.
We have Microsoft SQL Server 2014 (SP1-CU4) Enterprise.

Many thanks.

P.

"SSIS Server Maintenance job" missing

$
0
0

I am using SQL Server 2012 SP2. I have enabled SSIS catalog and deploy some SSIS packages.

I noticed that SSISDB is not purging \ cleaning old records as per retention period.

I found that SSIS Server Maintenance job is missing from server.

Can anybody help why job got missed?


Regards,
Rohit Garg
(My Blog)
This posting is provided with no warranties and confers no rights.
Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

Database configuration size

$
0
0

Hi guys,

I am struggling with one particular db, let's say L1. The developer is moving data from one db to L1. I am talking about millions rows, so I had to set up a lot of space for the database. This is the configuration:

Rows..Initial Size 1000000 Autogrowth By 10000 MB Limited to 1400000 MB

Log Not Applicable Initial size 10753 Autogrowth By 256 MB Limited to   2097152

Simple recover (it is not a production database, so no really care about the log).

Any advice?

Thanks

SQLWriter is aborting our backups

$
0
0

Dear all,

Primary platform: SQL Server 2014 SP1. We've got Always On with two listeners for Always On and another listener for the global cluster (FCI)

Does aynone has any clue about that?

Before to apply backup with our third-part tool:

Unable to release guest. Error: Error code: 0x80004005 Failed to invoke func [Unfreeze]: Unspecified error. Unfreeze error (over VIX): [Backup job failed.Cannot create a shadow copy of the volumes containing writer's data. A VSS critical writer has failed. Writer name: [SqlServerWriter].Class ID: [{a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}]. Instance ID: [{9f3fb8ae-defe-493e-aeb5-8ccf547422ec}]. Writer's state: [VSS_WS_FAILED_AT_THAW]. Error code: [0x800423f4].] Error code: 0x80004005


Log Name: Application
Source: VSS
Date: 26/05/2016 02:06:25
Event ID: 8229
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: xxxxxxxxxxx.lc.group
Description:
A VSS writer has rejected an event with error 0x800423f4, The writer experienced a non-transient error. If the backup process is retried,
the error is likely to reoccur.
. Changes that the writer made to the writer components while handling the event will not be available to the requester. Check the event log for related events from the application hosting the VSS writer.


Log Name: Application
Source: SQLWRITER
Date: 26/05/2016 02:06:25
Event ID: 24580
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: CH002SQL01P.lc.group
Description:
Sqllib error: Error thawing server xxxxxxxxxxx

debug assertion failed!

$
0
0

hi 

how to solve the issue 

debug assertion failed!

program: c:\afifarm\afimen.exe
file D:\afifarm\menprcss.ccp 

The operating system error was '32(The process cannot access the file because it is being used by another process.)

$
0
0

Dear All,

I have a database which is set t "Read-only/Standby) where I have a transactional log backup gets restored, it has been working fine until recently when it keeps thowing the following error message:

The operating system error was '32(The process cannot access the file because it is being used by another process.)

I have done the following so far but I'm not sure what else could be causing the issue.

Checked if there are other processes which are running in sql management studio

2. Checked if the is an anti-virus trying to scan the folder

There does not seem to be anyprocesses so would anyone let me know what the cause of the issue is please?

Thank you in advance!

RESTORE VERIFYONLY

$
0
0

Hi experts,

I am doing a migration… basically they are deleting my vm (sql server) and switching from vmware to hyperv

A few questions

1-   The fact of now having hyper should not affect the sql server right?

2-   I will backup all databases the day before, as we are backuping to an external drive and takes some hours… will a RESTORE VERIFYONLY FROM DISK take the same time as the backup itself? I am planning on not doing the verifyonly, is it really necessary?

3-   Is there any best practice: should I put the dbs to read only before doing that, so the users later will not complain about a lost update/insert they did…

 

Thanks!!

 


Cannot connect Amazon RDS instance to MS SQL Server Express

$
0
0

Hello,

I successfully connect Amazon RDS to MS SQL Server Express (2014) and to Visual Studio projects on my Work PC, but  at my home PC I can't connect to this instance.  MS SQL Server Management Studio persist me showing this message error:

Cannot connect to debitor... ...eu-central-1.rds.amazonaws.com,1433.

===================================

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: TCP Provider, error: 0 - The wait operation timed out.) (.Net SqlClient Data Provider)

Error Number: 258
Severity: 20
State: 0

...

===================================

The wait operation timed out

On my work PCs is installed Windows 7 and I never got any error message like this one above. At home PC I use Windows 10 ( and MS SQL Server Express 2014) and it have never been succesful to connect to Amazon RDS instance.

I have tried to extend connection time-out, disabling windows firewall, but no success.

What might be preventing me from having a succesful to this instance?

Any suggestions would be very appreciated, Thanks.


Admir

Does MSDB has duration of the restore operation?

$
0
0
Hi,
Is there a restore completion date somewhere in msdb?

In restorehistory, there is only restoredate...
when we backup, there are backup_start_date and backup_end_date in backupset
 
Just wondering if we have such information for restore

Always On backup failed replica not in primary or secondary

$
0
0

Hi there,

Nonetheless, later were done all the backups.

Date  27/05/2016 02:08:58
Log  SQL Server (Current - 26/05/2016 10:03:00)
Source  spid35s
Message
The availability group database xxxxxxxxxxx is changing roles from "RESOLVING" to "PRIMARY" because the mirroring session or availability group failed over due to role synchronization. This is an informational message only. No user action is required.

****************************

Date 27/05/2016 02:08:48
Log SQL Server (Current - 26/05/2016 10:03:00)

Source Logon

Message
Unable to access availability database xxxxxxxxxxx because the database replica is not in the PRIMARY or SECONDARY role. Connections to an availability database is permitted only when the database replica is in the PRIMARY or SECONDARY role. Try the operation again later.


Error occured while starting SQL Agent : 'Access is denied.'

$
0
0
Hi, I am trying to stop / start SQLAGENT service by using following syntax, EXEC xp_servicecontrol N'stop',N'SQLServerAGENT' But I am getting following erro StartService() returned error 5, 'Access is denied.' Please help me to resolve this error
Chetan SQL DBA

c++ debug assertions failed

$
0
0

i working on software called afifarm it's manage caw farm connect with the sql server 2005
now not working properly just appears to me

debug assertions failed !

program c:\afifarm\afimin.exe

file: d:\afifarm\source\menpress.ccp

line: 1434

there any way to find that file or solve the issue

thank u

Viewing all 15872 articles
Browse latest View live


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