Quantcast
Channel: SQL Server Manageability forum
Viewing all 1563 articles
Browse latest View live

Error on CMDEXEC job step even User having Sysadmin permissions

$
0
0

Hi,

I am struggling while running the CMDEXEC job step.

Non-SysAdmins have been denied permission to run CmdExec job steps without a proxy account.  The step failed.

 But this job owner having sysadmin permissions. Earlier i am able to run this job step with the same account. nothing change in user permissions.

Please somebody help me on this issue.

   


BCP error SQLState = S1000, NativeError = 0, Error = [Microsoft][SQL Server Native Client 10.0]Unable to open BCP host data-file".

$
0
0

Hi,

We get the error when trying to run a SQL agent job 

Execsp_configure'show advanced options', 1

Go

Reconfigure

Go

Execsp_configure'xp_cmdshell', 1

Go

Reconfigure

Go

master..xp_cmdshell'cd.. &&  "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\bcp" "Select * From  dbtest.dbo.alhagypt " queryout "\\servername.FQDM\MIData\Extracts\AgencyOutputs\filename.csv" -t , -c  -T -S "servername\instance"'

Execsp_configure'xp_cmdshell', 0

Go

Reconfigure

Go

Execsp_configure'show advanced options', 0

Go

Reconfigure

Go

I'm logged on to the SQL box as the service account that runs SQL agent, it has NTFS & Share permissions to \\servername.FQDM\MIData\Extracts\AgencyOutputs\filename.csv

if i run "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\bcp" "Select * From  dbtest.dbo.alhagypt " queryout "\\servername.FQDM\MIData\Extracts\AgencyOutputs\filename.csv" -t , -c  -T -S "servername\instance" 

from the command line

i get 

Starting copy...

1 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total     : 1

Kind regards

DTAEngine.exe, Exception code: 0xc0000374, dll, version: 6.2.9200.16912

$
0
0

Hi,

I encounter an exception below during tuning, Is there tool to fix this?

Faulting application name: DTAEngine.exe, version: 2011.110.2100.60, time stamp: 0x4f35e343

Faulting module name: ntdll.dll, version: 6.2.9200.16912, time stamp: 0x53645e25

Exception code: 0xc0000374
Fault offset: 0x000daacc
Faulting process id: 0x26c4
Faulting application start time: 0x01cfa1dae9b2491c
Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\DTAEngine.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 27c60d6d-0dce-11e4-93f9-000c292177e4
Faulting package full name: 
Faulting package-relative application ID: 
Log Name:      Application
Source:        Application Error
Date:          7/17/2014 9:19:41 AM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      WIN-O85VOVR17NV
Description:
Faulting application name: DTAEngine.exe, version: 2011.110.2100.60, time stamp: 0x4f35e343
Faulting module name: ntdll.dll, version: 6.2.9200.16912, time stamp: 0x53645e25
Exception code: 0xc0000374
Fault offset: 0x000daacc
Faulting process id: 0x26c4
Faulting application start time: 0x01cfa1dae9b2491c
Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\DTAEngine.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 27c60d6d-0dce-11e4-93f9-000c292177e4
Faulting package full name: 
Faulting package-relative application ID: 
Event Xml:
<Event xmlns="xx">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-07-17T16:19:41.000000000Z" />
    <EventRecordID>15608</EventRecordID>
    <Channel>Application</Channel>
    <Computer>WIN-O85VOVR17NV</Computer>
    <Security />
  </System>
  <EventData>
    <Data>DTAEngine.exe</Data>
    <Data>2011.110.2100.60</Data>
    <Data>4f35e343</Data>
    <Data>ntdll.dll</Data>
    <Data>6.2.9200.16912</Data>
    <Data>53645e25</Data>
    <Data>c0000374</Data>
    <Data>000daacc</Data>
    <Data>26c4</Data>
    <Data>01cfa1dae9b2491c</Data>
    <Data>C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\DTAEngine.exe</Data>
    <Data>C:\Windows\SYSTEM32\ntdll.dll</Data>
    <Data>27c60d6d-0dce-11e4-93f9-000c292177e4</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

HOW TO ACTIVATE MICROSOFT SQL SERVER 2014

$
0
0
Already, We have installed SQL Server 2014 on my server windows 2012 and how to activate SQL Server 2014 or how to know my license.

Connectivity Error in SQL Server

$
0
0

Dear Experts,
I'm having below errors on intermittent basis and trying to determine route of the issue. To me it seems that AD domain controllers are not responding correctly or has corrupt token. 

Thanks in advance and I'll wait valuable input from community.

Below is the error that I'm seeing in my error log on SQL Server. Version of SQL server is 2008 R2 (SP2, CU13) standard edition. 

Error: 17806, Severity: 20, State: 14.

SSPI handshake failed with error code 0x80090310, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The Windows error code indicates the cause of failure.  [CLIENT: 10.*.*.181].

Error: 18452, Severity: 14, State: 1.

Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. [CLIENT: 10.*.*.181]

Regards,
Ashish.



----------------------------------------------------- Please Mark This As Answer if it solved your issue Please Mark This As Helpful if it helps to solve your issue Thanks! Ashish Upadhyay

Rebuild System Database are failing

$
0
0

Hello, 

I am trying to rebuild system database after a DR Scenario by running the below. 

C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release>SETUP /QUIET /
ACTION=REBUILDDATABASE /INSTANCENAME=CORPPLN /SQLSYSADMINACCOUNTS=xxxxxx /SAPWD
=xxxxxx

It takes me to back to the command prompt as if it was successful.

However event log says:

Error 2(The system cannot find the file specified.) occurred while opening file 'C:\Program Files\Microsoft SQL Server\MSSQL11.CORPPLN\MSSQL\DATA\master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the error. Verify your startup options, and correct or remove them if necessary.

and the log file summary says:

Overall summary:
  Final result:                  Failed: see details below
  Exit code (Decimal):           -2068643839
  Exit facility code:            1203
  Exit error code:               1
  Exit message:                  Failed: see details below
  Start time:                    2014-11-18 12:18:14
  End time:                      2014-11-18 12:18:20
  Requested action:              ComponentUpdate
  Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_121750\WatsonX64_Cpu64_1_ComponentUpdate.log
  Exception help link:           http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.2531.0

Machine Properties:
  Machine name:                  CORPPLN-SQL
  Machine processor count:       2
  OS version:                    Windows Server 2008
  OS service pack:               Service Pack 1
  OS region:                     United States
  OS language:                   English (United States)
  OS architecture:               x64
  Process architecture:          64 Bit
  OS clustered:                  No

Package properties:
  Description:                   SQL Server Database Services 2008
  SQLProductFamilyCode:          {628F8F38-600E-493D-9946-F4178F20A8A9}
  ProductName:                   SQL2008
  Type:                          RTM
  Version:                       10
  SPLevel:                       0
  Installation edition:          EVAL

User Input Settings:
  ACTION:                        ComponentUpdate
  CONFIGURATIONFILE:             
  HELP:                          False
  INDICATEPROGRESS:              False
  PID:                           *****
  QUIET:                         True
  QUIETSIMPLE:                   False
  X86:                           False

  Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_121750\ConfigurationFile.ini

Detailed results:

Rules with failures:

Global rules:

There are no scenario-specific rules.

Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141118_121750\SystemConfigurationCheck_Report.htm

So following Microsoft recommendation, I've uninstalled the SQL Native Client it still failing with exactly same message. 

COuld anyone kindly advise as I've ran out of ideas?

Best regards, 

Mohan

How to overwrite SQL Backup by Schedule

$
0
0

Hi There,

Currently we are using SQL Server 2012 for our Navision Database.            

I have some questions to ask:

1. We are often configured either the differential or full backup to our sql database. if the database is small, then I ll prefer to use full backup as it is easier to restore. if the db is big size, then differential will be the best options. May I know how we actually configure the schedule whereby the previous backup being overwritten? My plan is to keep the db backup at least one or two months and the whole backup will be overwritten again. if not my hdd won't be enough in space.

2. When we perform backup daily, will there any log files created? I am also worry that the log files that being accumulated day to day will occupy the hdd space.

Appreciate your advises on this.

thanks so much.

Regards,

H

SQL Logshipping

$
0
0

Hi,

I configured log shipping without having a monitor server, now I'm facing some difficult to monitor log shipping status.

Does it possible to configure monitor server after configuring logshipping, also suggest what are the ways to monitor logshipping in SQL server.

Thank you


Triggers and Stored Procedures not Showing when Click on Expand

$
0
0
When I click on the plus sign for stored procedures or triggers they are not showing. I even created a new trigger and it's not showing after I refreshed and even closed and re-opened SQL Server. Any idea on what can be causing this? A change was made where I was given database email and job agent permissions, other than that everything else is the same.

Import-Module 'sqlps' -DisableNameChecking is returning a bunch of warnings I do not want to see in output. How do I supress them?

$
0
0

Hi All,

I find that with SQL 2012 and SQL 2014 I get the following types of WARNING: messages displayed when I import the sqlps module.

WARNING: The local computer does not have an active instance of Analysis Services.
WARNING: Could not obtain SQL Server Service information. An attempt to connect to WMI on 'Microsoft.WindowsAzure.Commands.SqlDatabase.Types.ps1xml' failed with the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

I've tried adding -WarningAction SilentlyContinue and I've tried piping the output to null by adding | Out-Null but I still get this garbage that I don't care about on the servers I'm running these scripts on.  Do any of you know how to suppress these warnings?

Joe


Joe Moyle

How to connect to readonly replica

$
0
0

I have 2 server (A, B), where A is primary and B is secondary.  I want my developer to connect to Server B using Sql Analyzer .. so I configure follwoing 

ALTER AVAILABILITY GROUP ag MODIFY REPLICA ON N'A' WITH (SECONDARY_ROLE (READ_ONLY_ROUTING_URL = N'TCP://A:1433'));

GO

ALTER AVAILABILITY GROUP ag MODIFY REPLICA ON N'B' WITH (SECONDARY_ROLE (READ_ONLY_ROUTING_URL = N'TCP://B:1433'));

go 

ALTER AVAILABILITY GROUP ag MODIFY REPLICA ON N'A' WITH (PRIMARY_ROLE (READ_ONLY_ROUTING_LIST=('B')));

GO

ALTER AVAILABILITY GROUP ag MODIFY REPLICA ON N'B' WITH (PRIMARY_ROLE (READ_ONLY_ROUTING_LIST=('A')));

GO 

Now he can connect to host .. no issue , problem is 

when he issue following command

 use testDB

go 

The server principal "user1" is not able to access the database "testDB" under the current security context.

he is db_datareader at node "A".   I can not assingn db_datareader role in Node "B" becuase testDB is in read-only mode.

any idea ??


MaintenancePLan

$
0
0

Hello

I am running MS SQL 2008R2 SP3 and I am trying to run MaintenancePLan.

Current jobs are:

1) Check Database Integrity (scheduled to run every Sunday at 2am)

2) Reorganize Index (scheduled to run every Monday to Friday at 5am)

3) Rebuild Index (scheduled to run every Saturday at 12am)

Check database Intergrity and Reorganize Index jobs both have failed.

This is the error I got from Reorganize Index job:

Executed as user: SERVERNAME\SYSTEM. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.6000.34 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  1:56:58 p.m.  Progress: 2014-11-25 13:57:32.01     Source: {CAD214DB-74A5-4052-B78F-15BFA064D762}      Executing query "DECLARE @Guid UNIQUEIDENTIFIER      EXECUTE msdb..sp...".: 100% complete  End Progress  Error: 2014-11-25 13:58:55.78     Code: 0xC0024104     Source: Reorganize Index      Description: The Execute method on the task returned error code 0x80131904 (Transaction (Process ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.). The Execute method must succeed, and indicate the result using an "out" parameter.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  1:56:58 p.m.  Finished: 1:58:56 p.m.  Elapsed:  117.688 seconds.  The package execution failed.  The step failed.

I did run this job manually at 2pm in afternoon while users were accessing the database.

Thanks


Lock table in db; need restart server

$
0
0
How could thoroughly investigate and manage settings for lock on the tables in the database?

Often happens to me that the server that has two bases, the first 150 GB, 180 GB of second, happens to one request lock entire database.
After that, a simple query can not be released, and the server must be restarted.
After that, the processing can be executed.
I guess that happens lock over the tables.

I wonder how I could explore and configure the base?
How to Prevent it?

I'm working on SQL Server 2012, with Windows Server 2012.

Thank you

Data from a certain date disapeared from mssql database tables

$
0
0

halo,

I have found that data from a 14th april 2014 disappeared from all tables in my mssql server database today,

is there a way to recover the data?

and what causes this?

thank you.

sql server data base retored to an earlier date (lost data)

$
0
0

halo,

I have found that someone or something restored my mssql database to an earlier date and lost a lot of data as a result

I have no back up for the lost data.

is there a way to roll back database server so I can recover the lost data?

I will be grateful for any suggestion you give me

thank you...


Upgrade to 2008R2 Web from 2008 Stnd

$
0
0

We have sql 2008 stnd installed on domain controller. Now i want to upgrade it to 2008r2 web but when i tried to upgrade the sql server it gives me below error.

TITLE: Microsoft SQL Server 2008 R2 Setup

he following error has occurred:

Access to the path 'C:\Program Files\Microsoft SQL Server\100\License Terms\SQLServer2008R2_License_WEB_1033.rtf' is denied.

Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.50.1600.1&EvtType=0x60797DC7%25400xBB814387

I have read many links which is telling give full control to user on C drive i have did the same. but still nothing happening. it keeps giving me above error.


Akshay Pate

SQL Server Password Expired Automatially

$
0
0

Hi All,

I had install Sql Server 2012 in my system.sql server password for user id sa changed automatically,

first time it will take 3 days,after that it changed with in 3 hours .how to solve this problem

i had install antivirus K7 in my machine .it will cause this issue ,pleas confirm


Happy Coding, RDRaja

complete instruction on how to automatically restore database

$
0
0
Can anyone tell where can i have a complete instruction on how to set automatic restoration of database? Thanks in advance!

Running a python script as a step in a job

$
0
0

I am setting up a job which runs some SQL and a python script.

The 'type' for this step is Operating system (CmdExec).

C:\Windows\System32\cmd.exe /C \\WDC1GISSHP1\E\Python26\ArcGIS10.0\python "Z:\python\FeatureIDPopulator.py "GISEDITDB" "edgis" "username" "password" "LandBase_Structures" "LST""

The items in " " are parameters passed to the script.

It errors out with '...The system cannot find the file specified'

I just added the cmd.exe, and only that executes now, not the rest of the line.

How can I run this script ?  Can I run this as a step using a command line format as i am trying or should it be in a batch file ?

Thanks.

Could not connect to SQL Server

$
0
0

A Network Related or instance specific error occurred while establishing a connection to SQL server.(MS SQL Server, Error:53)

I cannot find SQL server tool in my host computer it could be in remote server.

Viewing all 1563 articles
Browse latest View live


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