Quantcast
Channel: SQL Server Database Engine forum
Viewing all 15911 articles
Browse latest View live

find where this Mail configured from ?

$
0
0

hi all,

we are getting a mail regularly from some server.  need to identify where it is from,  ( means ( SSRS, SQL or any other )

how to find this ? 

for SSRS   i  use below script to find:


 DECLARE 
@email VARCHAR(250) = 'jessiec@ongfs.com'
 
SELECT 
cat.[Path],
cat.[Name],
CASE WHEN sub.Description LIKE '%@%' THEN 0 ELSE 1 END AS DDS,
CASE WHEN sub.Description LIKE '%@%' THEN '' ELSE sub.Description END AS DDSDescription,
sub.SubscriptionID,
sub.ExtensionSettings
FROM [dbo].[Catalog] AS cat
INNER JOIN [dbo].[Subscriptions] AS sub ON cat.ItemID = sub.Report_OID
WHERE sub.extensionSettings LIKE '%' + @Email + '%'
ORDER BY cat.[Path], cat.[Name]

for SQL: (mail)



--find string (keyword in objects)
SELECT DISTINCT o.name AS Object_Name,o.type_desc


FROM sys.sql_modules m 


INNER JOIN sys.objects o 


ON m.object_id=o.object_id


WHERE m.definition Like '%Late unshipped%'


What parameters should be changed after migrating SQL Server 2012 Ent Edition to SQL Server 2016 Ent Edition

$
0
0

Hi All,

We have migrated the SQL Server 2012 Enterprise Edition to SQL Server 2016 Enterprise Edition.

I want to know which parameters should I change and which parameter should I configure to get maximum from SQL Server 2016.

One paramater I checked that compatibility level was 110 which needs to change to 130

Kindly help me in this regard.

Regards,

Yashwant

A 'Python' script error occurred during execution of 'sp_execute_external_script' with HRESULT 0x80004004.

$
0
0

I am using an in-database SQL Server 2017 with python services to run a Machine Learning model.

I get this error:

A 'Python' script error occurred during execution of 'sp_execute_external_script' with HRESULT 0x80004004. 

when I run the model. 

What could be the possible problem?

My code is as below:

DECLARE @myscript NVARCHAR(MAX) = N' import sys sys.path += ["D:\\sql_queries"] import ml_models as ms mydf = ms.fill_na(mydf) mydf = ms.backup_columns(mydf) mydf = ms.shaping_df(mydf) mydf = ms.normalising_numerical_mydf(mydf) mydf = ms.date_to_datetime(mydf) mydf = ms.split_years_months(mydf) mydf = ms.replacing_strings_with_integers(mydf) mydf = ms.type_casting(mydf) mydf = ms.label_encoder(mydf) mydf = ms.drop_unnecessary_features(mydf) x_train, x_valid, x_test, y_train, y_valid = ms.seperate_train_test_validation(mydf) y_pred_rf = ms.random_forest_model(x_train, y_train, x_valid, y_valid, x_test) y_pred_ada = ms.adboost_model(x_train, y_train, x_valid, y_valid, x_test) y_pred_xgb = ms.xgb_model(x_train, y_train, x_valid, y_valid, x_test) y_pred_lgb = ms.light_gradient_boost_model(x_train, y_train, x_valid, y_valid, x_test) predictions = y_pred_rf*0.3 + y_pred_ada*0.2 + y_pred_xgb*0.2 + y_pred_xgb*0.3 '; DECLARE @myquery NVARCHAR(MAX) = N' select * from banktest.dbo.train UNION ALL select *, 6 as loan_default from banktest.dbo.test;' ; DECLARE @predictions float; EXEC sp_execute_external_script @language = N'Python' , @script = @myscript , @input_data_1 = @myquery , @input_data_1_name = N'mydf' , @output_data_1_name = N'predictions' , @parallel = 1 , @params = N'@predictions float out' , @predictions = @predictions OUT WITH RESULT SETS ((predicted_value nvarchar(MAX)));

sql query result with count istruction

$
0
0

I can't understand because this SQL query doesn't work:

SELECT COUNT Department,
IF(Department = 'toys', COUNT(), 0) AS numberOfToys,
IF(Department = 'health', COUNT(
), 0) AS numberOfHealth
FROM TABLE;


TABLE

Department - Value
toys - A
toys - B
toys - C
health - K
health - F
toys - G
toys - R
toys - W
toys - Q

I'd like to count number of occurrences about both toys record and health ones into 2 columns.

department numberOfToys numberOfHealth

toys 7 0
health 0 2

WHY ?!

thanks


rc

Error attaching local mdf file to SSMS

$
0
0

Hi Folks,

I'm told by my website host support that in order to upload the database portion of my ASP.NET website created with Visual Studio 2017 I need to make a script of the local mdf database in SSMS, then restore it to a new database that I have added to the remote server. My problem is that I am having difficulty attaching the local mdf database to SSMS. I was able to find and connect to my local sqlexpress server, but when attempting to "attach" the database in Object Explorer was unable to "see" my local user directory that contained the mdf database. I then used sql server configuration manager to change the sqlexpress build in account login to "local system", as described in:

https://stackoverflow.com/questions/19297097/attach-open-mdf-file-database-with-sql-server-management-studio

I was then able to find and select the local mdf database. However, when I try to "attach", I get the error:"An error occurred when attaching the database(s). Click the hyperlink in the message for details". But there is no hyperlink. 

Any help would be greatly appreciated!

Rob

Error Inside SQL Server Agent Job View History

$
0
0

Hello,

I have a script which basically reports some info about sql servers daily via email. The Database Mail is correctly setup. SQL2k16 enterprise edition. When I run the script inside Query window (interactive), it works fine and do I do get the email. However, when I run the script inside a SQL server agent job, I see following error in the sql server agent job history:

Executed as user: mydomain\ADsqlserverserviceaccount. Failed to initialize sqlcmd library with error number -2147467259. [SQLSTATE 42000] (Error 22050).  The step failed. 

Will really appreciate your help on fixing this.

Thanks.

Victor


Victor

Extended events not capturing Linked serers as well as cross database qeuries

$
0
0
I'm unable to capture Linked servers as well as cross database queries using extended events.  I tried different events but no success. My goal is to capture all activities for a specific database. SQL version is 2014 and higher. Please help. Thank you

SQL Server 2019 on Ubuntu 18.04 - Error - "Unable to open physical file" on d:\ drive

$
0
0

After installing mssql-server on ubuntu 18.04, I startup the instance with command "systemctl start mssql-server.service".  The instance starts and after one minute or so, the server crashes.  I've included the messages found in /var/opt/mssql/log/errorlog:

2019-05-24 19:08:35.64 Server      Microsoft SQL Server 2019 (CTP3.0) - 15.0.1600.8 (X64) 
May 17 2019 00:56:19 
Copyright (C) 2019 Microsoft Corporation
Express Edition (64-bit) on Linux (Ubuntu 18.04.2 LTS) <X64>
2019-05-24 19:08:35.65 Server      UTC adjustment: -4:00
2019-05-24 19:08:35.65 Server      (c) Microsoft Corporation.
2019-05-24 19:08:35.65 Server      All rights reserved.
2019-05-24 19:08:35.65 Server      Server process ID is 28.
2019-05-24 19:08:35.65 Server      Logging SQL Server messages in file '/var/opt/mssql/log/errorlog'.
2019-05-24 19:08:35.66 Server      Registry startup parameters: 
-d /var/opt/mssql/data/master.mdf
-l /var/opt/mssql/data/mastlog.ldf
-e /var/opt/mssql/log/errorlog
2019-05-24 19:08:35.66 Server      SQL Server detected 1 sockets with 1 cores per socket and 1 logical processors per socket, 1 total logical processors; using 1 logical processors based on SQL Server licensing. This is an informational message; no user action is required.
2019-05-24 19:08:35.67 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2019-05-24 19:08:35.67 Server      Detected 1595 MB of RAM. This is an informational message; no user action is required.
2019-05-24 19:08:35.67 Server      Using conventional memory in the memory manager.
2019-05-24 19:08:35.70 Server      Buffer pool extension is not supported on Linux platform.
2019-05-24 19:08:35.70 Server      Buffer Pool: Allocating 131072 bytes for 113648 hashPages.
2019-05-24 19:08:35.86 Server      Buffer pool extension is already disabled. No action is necessary.
2019-05-24 19:08:36.11 Server      Successfully initialized the TLS configuration. Allowed TLS protocol versions are ['1.0 1.1 1.2']. Allowed TLS ciphers are ['ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:!DHE-RSA-AES256-GCM-SHA384:!DHE-RSA-AES128-GCM-SHA256:!DHE-RSA-AES256-SHA:!DHE-RSA-AES128-SHA'].
2019-05-24 19:08:36.13 Server      Query Store settings initialized with enabled = 1, 
2019-05-24 19:08:36.15 Server      The maximum number of dedicated administrator connections for this instance is '1'
2019-05-24 19:08:36.15 Server      Node configuration: node 0: CPU mask: 0x0000000000000001:0 Active CPU mask: 0x0000000000000001:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2019-05-24 19:08:36.16 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
2019-05-24 19:08:36.18 Server      In-Memory OLTP initialized on lowend machine.
2019-05-24 19:08:36.35 Server      CLR version v4.0.30319 loaded.
2019-05-24 19:08:36.39 Server      [INFO] Created Extended Events session 'hkenginexesession'

2019-05-24 19:08:36.39 Server      Database Instant File Initialization: enabled. For security and performance considerations see the topic 'Database Instant File Initialization' in SQL Server Books Online. This is an informational message only. No user action is required.
2019-05-24 19:08:36.40 Server      Total Log Writer threads: 1. This is an informational message; no user action is required.
2019-05-24 19:08:36.41 Server      clflushopt is selected for pmem flush operation.
2019-05-24 19:08:36.41 Server      Software Usage Metrics is disabled.
2019-05-24 19:08:36.43 spid8s      [1]. Feature Status: PVS: 0. CTR: 0. ConcurrentPFSUpdate: 1.
2019-05-24 19:08:36.43 spid8s      Starting up database 'master'.
2019-05-24 19:08:36.92 spid8s      24 transactions rolled forward in database 'master' (1:0). This is an informational message only. No user action is required.
2019-05-24 19:08:36.93 spid8s      0 transactions rolled back in database 'master' (1:0). This is an informational message only. No user action is required.
2019-05-24 19:08:37.26 spid8s      SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2019-05-24 19:08:37.27 spid8s      SQL Server Audit has started the audits. This is an informational message. No user action is required.
2019-05-24 19:08:37.54 spid8s      SQL Trace ID 1 was started by login "sa".
2019-05-24 19:08:37.61 spid8s      Server name is 'oliviapc'. This is an informational message only. No user action is required.
2019-05-24 19:08:37.63 spid8s      [4]. Feature Status: PVS: 0. CTR: 0. ConcurrentPFSUpdate: 1.
2019-05-24 19:08:37.64 spid10s     [32767]. Feature Status: PVS: 0. CTR: 0. ConcurrentPFSUpdate: 1.
2019-05-24 19:08:37.64 spid24s     Always On: The availability replica manager is starting. This is an informational message only. No user action is required.
2019-05-24 19:08:37.64 spid24s     Always On: The availability replica manager is waiting for the instance of SQL Server to allow client connections. This is an informational message only. No user action is required.
2019-05-24 19:08:37.65 spid10s     Starting up database 'mssqlsystemresource'.
2019-05-24 19:08:37.65 spid8s      Starting up database 'msdb'.
2019-05-24 19:08:37.67 spid10s     The resource database build version is 15.00.1600. This is an informational message only. No user action is required.
2019-05-24 19:08:37.72 spid8s      Failed to get the volume information, -1073741772
2019-05-24 19:08:37.73 spid8s      Error: 17204, Severity: 16, State: 1.
2019-05-24 19:08:37.73 spid8s      FCB::Open failed: Could not open file d:\dbs\sh\sprc\1205_155146\cmd\41\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf for file number 1.  OS error: 2(The system cannot find the file specified.).
2019-05-24 19:08:37.75 spid8s      Error: 5120, Severity: 16, State: 101.
2019-05-24 19:08:37.75 spid8s      Unable to open the physical file "d:\dbs\sh\sprc\1205_155146\cmd\41\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf". Operating system error 2: "2(The system cannot find the file specified.)".
2019-05-24 19:08:37.77 spid10s     [3]. Feature Status: PVS: 0. CTR: 0. ConcurrentPFSUpdate: 1.
2019-05-24 19:08:37.78 spid10s     Starting up database 'model'.
2019-05-24 19:08:37.84 spid8s      Failed to get the volume information, -1073741772
2019-05-24 19:08:37.85 spid8s      Error: 17207, Severity: 16, State: 1.
2019-05-24 19:08:37.85 spid8s      FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'd:\dbs\sh\sprc\1205_155146\cmd\41\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\MSDBLog.ldf'. Diagnose and correct the operating system error, and retry the operation.
2019-05-24 19:08:37.87 spid8s      File activation failure. The physical file name "d:\dbs\sh\sprc\1205_155146\cmd\41\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\MSDBLog.ldf" may be incorrect.
2019-05-24 19:08:37.87 spid10s     Failed to get the volume information, -1073741772
2019-05-24 19:08:37.88 spid10s     Error: 17204, Severity: 16, State: 1.
2019-05-24 19:08:37.88 spid10s     FCB::Open failed: Could not open file d:\dbs\sh\sprc\1205_155146\cmd\41\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\model.mdf for file number 1.  OS error: 2(The system cannot find the file specified.).
2019-05-24 19:08:37.89 spid10s     Error: 5120, Severity: 16, State: 101.
2019-05-24 19:08:37.89 spid10s     Unable to open the physical file "d:\dbs\sh\sprc\1205_155146\cmd\41\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\model.mdf". Operating system error 2: "2(The system cannot find the file specified.)".
2019-05-24 19:08:37.96 spid10s     Failed to get the volume information, -1073741772
2019-05-24 19:08:37.96 spid10s     Error: 17207, Severity: 16, State: 1.
2019-05-24 19:08:37.96 spid10s     FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'd:\dbs\sh\sprc\1205_155146\cmd\41\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\modellog.ldf'. Diagnose and correct the operating system error, and retry the operation.
2019-05-24 19:08:37.98 spid10s     File activation failure. The physical file name "d:\dbs\sh\sprc\1205_155146\cmd\41\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\modellog.ldf" may be incorrect.
2019-05-24 19:08:37.99 spid10s     Error: 945, Severity: 14, State: 2.
2019-05-24 19:08:37.99 spid10s     Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.
2019-05-24 19:08:38.00 spid10s     SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.

Can anyone tell me why this error is occurring? and, why is SQL Server looking for a "D:\" drive on Ubuntu?

2019-05-24 19:08:37.73 spid8s      FCB::Open failed: Could not open file d:\dbs\sh\sprc\1205_155146\cmd\41\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf for file number 1.  OS error: 2(The system cannot find the file specified.).

Thanks very much.



Index Optimize SQL Scheduled Job failing every week

$
0
0

Hi,

Does anybody knows how to dig into deeper to troubleshoot below issue? We have a scheduled weekly Index Job maintenance is there and past 5 weeks this job keep on failing due to below reason. Kindly suggest your valuable information to fix this issue.

Recovery model: SIMPLE
Msg 1222, Level 16, State 51, Server Azure\SQL1, Line 1
Lock request time out period exceeded.
Msg 50000, Level 16, State 1, Server Server Azure\SQL1, Procedure IndexOptimize, Line 631
The system tables are locked in the database [JSP].

Regards,

DBA


DBA

SQL Server 2014 and 2016 Optimization

$
0
0

Hi all,

yestarday we have a performance problem after migrate a db for a new application on a new db server on azure. The problem was max degree of parallelism set to 0, now we put 8. Can you help me to calculate best setting for this parameters? Here our vm's on azure:

- 2 node alwayson with sql server 2016, vm's size are 32core(1 socket) and 128gb ram. To remediate problem we put 8 on both as max degree of parallelism and the situation came back normally.

- 2 node alwayson with sql server 2016, vm's size 8core(1 socket) 28gb ram. Now max degree of parallelism is set to 0

- 2 node alwayson with sql server 2014, vm's size 4 core (1 socket) 14gb ram. Now max degree of parallelism is set to 0

- 2 node alwayson with sql server 2016, vm's size 4 core (1 socket) 14gb ram. Now max degree of parallelism is set to 0

i founded on google that is better to increse also Cost Threshold For Parallelism. Now on our dbs servers is 5.

I red also for temp db. What are the best practice? Now we have only 2 tempdb on our db server's.

Thanks for your help

Collation change in MS SQL DB

$
0
0
Hello All,

I have to change DB collation to Latin1_General_CI_AS (from Latin1_General_CI_AI). My DB having 700+ tables and each table is having 40+ columns with different data types. My DB size is 150 GB.

I have tried to change using Database--> properties, but i got lot of errors like below.

Msg 5075, Level 16, State 2, Line 3
The statistics 'customergroupBase.ndx_Sync' is dependent on database collation. The database collation cannot be changed if a schema-bound object depends on it. Remove the dependencies on the database collation and then retry the operation.

So, I have plan to change collation of columns in table with below steps.

1. Drop all indexes

2. Change collation using below alter command

ALTER TABLE TableName ALTER COLUMN [Name] nvarchar(160) COLLATE Latin1_General_CI_AS NULL

  3. Recreate all indexes.

My Question is,

1. it is a collation change, do i need to change all fields(columns) in table? or only need to change the fields(columns) that uses character types and text types?

2. After changing collation, when I create new table or columns in DB, will DB automatically apply new collation Latin1_General_CI_AS or will DB use old collation - Latin1_General_CI_AI?

Kerberos / double hop / linked servers in SQL AG

$
0
0

Hi guys, I have some challenges with my SQL 2016 AO AG cluster:

Two nodes, 3 instances on each, one AG per instance.
Node1
Inst 1 - AG 1
Inst 2 - AG 2
Inst 3 - AG 3

Node2
Inst 1 - AG 1
Inst 2 - AG 2
Inst 3 - AG 3

On each instance there is linked servers to all other AGs, we need to use this due to distributed transactions and some agent jobs.

When running all AG's on either node1 or node2, all linked servers works fine, but when running for example AG2 on node2,
then linked server from node 1 gives error message "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.".

I know this is due to double hop/kerberros issues, so does it exist some guideline for how this kind of scenario should be set up?

i have created some SPNs, but really not sure if it is the correct way. For example, should I create SPN for both nodes, with the port numbers, and should I create SPN for the AG names as well, using what port nr?

The two nodes use separate service accounts.

Sql server Debugger fails to start after changing port

$
0
0

Hi Team,

I had changed sql server default port from 1433 after that debugger stopped working if I change port back to 1433 debugger works fine.

Can we run Debugger after changing sql server ports

Please help

Thanks & Regards

Prasad Ghumre

rowguid column in AdventureWorks2016

$
0
0

I have downloaded AdventureWorks2016, to refer it as an example table for naming convension.

I have noticied that although the table has a primary key, you have added rowguidmandatory column with default value.

There isn't unique constraint on column rowguid .

I would like to understand the root cause.

Why have you added rowguid  column ?

In addition all columns names starts with upper case, except rowguid. Why?

Is there any performance issue while declaring variables with varchar(max) or nvarchar(max) data type in SQL server procedure....

$
0
0

Hi Experts,

i have procedure in which variables data type declaration and length  should be inherited from the particular physical table columns properties.

for example 

Declare @variable1 varchar(n);

here n should be the length of the particular column in physical table.if the particular column length changes in physical table , then n value also should be change .same thing applies for datatype also.that is if column data type changes ,then variable datatype should change.

How can we achieve this in dynamic way  in procedure?

currently ,in this case i am going to create those variables with length max.(for varchar data types) 

is it good approach to declare the variables with length of max? is there any performance issue ,if i am creating the variables with varchar(max).

Please provide possible solutions.

Thanks in Advance,

Venkat Ram.



RING_BUFFER_SCHEDULER_MONITOR reporting over 100% ProcessUtilization

$
0
0

I am using RING_BUFFER_SCHEDULER_MONITOR to get cpu history for the server. For some reason on our new intel box (system info below) we are experiencing above 100% (in the xml below it shows 129) ProcessUtilization. Is there any correction I need to be applying to this value or why would it be above 100 ever?

Thank you

<Record id="2835" type="RING_BUFFER_SCHEDULER_MONITOR" time="6535178385"><SchedulerMonitorEvent><SystemHealth><ProcessUtilization>129</ProcessUtilization><SystemIdle>32</SystemIdle><UserModeTime>30068412745</UserModeTime><KernelModeTime>988422336</KernelModeTime><PageFaults>604</PageFaults><WorkingSetDelta>1974272</WorkingSetDelta><MemoryUtilization>100</MemoryUtilization></SystemHealth></SchedulerMonitorEvent></Record>

SELECT  CAST(record AS XML), *
FROM    sys.dm_os_ring_buffers (NOLOCK)
WHERE   ring_buffer_type = N'RING_BUFFER_SCHEDULER_MONITOR'
        AND record LIKE N'%<SystemHealth>%'
AND record LIKE '%>129<%'
ORDER BY [timestamp] DESC
CounterNameCounterValue
InstanceUpTime1 days 22:47:31
ServerUpTime75 days 16:12:10
IsClusteredClustered
ClusterNodeCnt2
AuthenticationMode Mixed
Port1433
SystemManufacturer System Manufacturer: 'Dell Inc.', System Model: 'PowerEdge R910'.
ProcessorInfoIntel(R) Xeon(R) CPU E7- 4850  @ 2.00GHz
CpuCount80
HyperthreadRatio 20
TotalPhysicalMemoryMB 1,048,562.82
AvailablePhysicalMemoryMB28,388.65
MemInUseMB1,002,576.75
MemUtil%100
SystemMemoryState Available physical memory is high
MaxDegreeOfParallelism 4
ClrEnabled1
RemoteAdminConnections 1
OptimizeForAdHocWorkloads1
xp_cmdshell1
DefaultTraceEnabled 1
ProcessId35132
IsSingleUser0
ProductVersion11.0.2100.60
VersionMicrosoft SQL Server 2012 - 11.0.2100.60 (X64)  |  Feb 10 2012 19:39:15  |  Copyright (c) Microsoft Corporation |  Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) | 
ProductLevelRTM
ResourceLastUpdateDateTimeFeb 10 2012  9:09PM
ResourceVersion11.00.2100
IsIntegratedSecurityOnlyNot Integrated security
EngineEditionEnterprise Edition
LicenseTypeDISABLED
NumLicensesNULL
BuildClrVersionv4.0.30319
CollationSQL_Latin1_General_CP1_CI_AS
CollationID872468488
ComparisonStyle196609
ProductEditionNULL
IsFullTextInstalled Full-text is installed
SqlCharSet1
SqlCharSetNameiso_1
SqlSortOrderID52
SqlSortOrderName nocase_iso


Gokhan Varol

Unable to shrink log file

$
0
0

Hi Msdn, Iam getting below error while shrinking log file(which became full). There is an index maintainance job running at that time. Assuming that could be the reason,  I stopped the job and tried to shrink. Getting same error as below once it is done. Any help could be greatly appreciated.

For your info, there are no backup jobs running at that moment.

Remote sql server connectivity issue

$
0
0
Hi,

I am trying to connect the defferent ip from SQL 2014 management studio. Its throwing the below error.

a network related or instance specific error occurred while establishing a connection to sql server was not found or not accisiblle.verify that the instance name is correct and that SQL Server is coinfigured to allow remote connections.(provider:Named pipes provider,error:40-could not open a connection SQL Server) Microsoft SQL Server ,error:1326)

I tried all resolutions like below:
1. in sql configuration manager the network Protocol: TCP/IP is enabled.
2. windows fiewall enabled.
3.created new inboundrule added 1433 port
4.restarted all the services

I tried ping the ip. its connecting
i tried telnet ipaddress 1433.. It is connecting.

when tenet is working and connecting to ip address. then why i am not able to connect through management studio?

Please help me to resolve this. Anything else i need to do?

Thanks,
Jo
 

pols

Database is in recovery mode due to log file full issue

$
0
0

Hi Folks,

There is one testing server on which one of database is in recovery mode from past 30-40 minutes, I checked it was due to log file full issue. Now on the log drive there is no space so that log file for that database can grow. Kindly suggest how to make database online asap.

I checked on other drive sufficient space but I cannot add new log file on other drive because database is still in-recovery.

Below is the SQL Server version:

sqlversion_nameeditionsql_versionservicepack
Microsoft SQL Server 2016 (SP2) (KB4052908)Enterprise Edition (64-bit)13.0.5026.0SP2

log shipping trn files are not deleting

$
0
0
Hi,

We configured logshipping for some databases. Everything is working fine. backup,copy and restore jobs are working fine, But trn files are not deleting automatically. Till last week it worked fine. but unexpectedly from 1 week the delete files automatically not happening.
I checked the permission on the network folder. everything looks fine. the sq server agent account having ful control. But why not deleting the old files?

Please suggest me what needs to check? i am not having nay clue. 
backup,copy,restoration doing properly. but not deleting the backup,copy files. 


Thanks,

pols

Viewing all 15911 articles
Browse latest View live


Latest Images

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