Feb 06 2017

Configure Default full-text language Parameter Server Configuration in SQL Server 2016

Category: AdministrationFatih Acar @ 15:33

You can change default full-text language server configuration option in SQL Server 2016 by using SQL Server Management Studio or Transact-SQL. default full-text language option specifies a default language value for full-text indexes. Linguistic analysis is performed on all data that is full-text indexed and is dependent on the language of the data. The default value of this option is the language of the server. For a localized version of SQL Server, SQL Server Setup sets the default full-text language option to the language of the server if an appropriate match exists. For a non-localized version of SQL Server, the default full-text language option is English.

Change Parameter With SQL Server Management Studio

  1. Open Object Explorer, right-click a server and select Properties.
  2. Click Advanced Step.
  3. Under Miscellaneous, use Default Full Text Language to specify a default language value for full-text indexed columns.

Change Parameter With Transact-SQL

I will change option to 1055 that is Turkish language code. You can see LCID codes of language with below query. You can change with below queries.

select * from sys.fulltext_languages;

USE ;
GO
EXEC sp_configure ‘show advanced options’, 1 ;
GO
RECONFIGURE
GO
EXEC sp_configure ‘default full-text language’, 1055 ;
GO
RECONFIGURE
GO

6,850 total views, no views today

Tags: MsSQL Server, SQL Server Administration


Jan 10 2017

How to Create Linked Server From SQL Server To SQL Server Database

Category: AdministrationFatih Acar @ 15:58

You can connect another SQL Server database or different type database from SQL Server database with Linked Server feature. You can use below operations to create new linked server for SQL Server database to SQL Server database.

Create Linked Server Steps

  1. Create a user on remote database to use connection and give permission on which database using.
  2. SQL Server Management Studio with sysadmin privilege.
  3. Open SQL Server Management Studio with sysadmin privilege.
  4. Click New Linked Server below Server Objects > Linked Servers
  5. General Section > Select SQL Server as Server type.
  6. Write remote Instance Name to Linked Server text box.
  7. Security Section > Add > write Local and Remote User information for connection, and OK.
  8. You can see added new Linked Server below Linked Server section

4,360 total views, 5 views today

Tags: Database Administration, MsSQL Server, SQL Server Administration


Oct 21 2016

MsSQL Server 2012 Availability Groups (AG) Manual Failover

Category: AdministrationFatih Acar @ 09:57

If primary side of Availability Groups (AG) is down and can not be online, you can perform failover operation. When primary side is down, probably, you can see state of Availability Groups at the secondary side like below.

sqlserverfailoversteps1

Failover Steps

sqlserverfailoversteps2

sqlserverfailoversteps3

If you get an error after click Failover button, probably your AG has a problem. You can use force manual failover steps. Steps is here : https://www.fatihacar.com/blog/mssql-server-2012-availability-groups-ag-force-manual-failover/

sqlserverfailoversteps4
Continue reading “MsSQL Server 2012 Availability Groups (AG) Manual Failover”

3,692 total views, 2 views today

Tags: MsSQL Server, SQL Server Administration, SQL Server Availability Group


Oct 20 2016

MsSQL Server 2012 Availability Groups (AG) Force Manual Failover

Category: AdministrationFatih Acar @ 08:15

When you can not access primary side of AG and you can not run failover on second side (disaster side), you can perform force manual failover operation on second side. You have to know that force manual failover operation can cause loss data which is able to last some database operation.

Failover State

When primary side is down, you can see your Availability Groups and database on SQL Server Management Studio at the secondary (disaster side) like below.

sqlserverforcemanualfailover1

Failover Cluster Manager is down. Probably, you can not see any failover cluster on Failover Cluster Manager.

sqlserverforcemanualfailover2

Force Manual Failover

You can use the forced quorum procedure on a WSFC cluster node to override the safety controls that took the cluster offline. This effectively tells the cluster to suspend the quorum voting checks, and lets you bring the WSFC cluster resources and SQL Server back online on any of the nodes in the cluster.

You have to restart your WSFC (Quorum) with below commands.

Open a command prompt and execute below commands.

net.exe stop clussvc
net.exe start clussvc /forcequorum

Continue reading “MsSQL Server 2012 Availability Groups (AG) Force Manual Failover”

4,578 total views, no views today

Tags: MsSQL Server, SQL Server Administration, SQL Server Availability Group


Oct 11 2016

SQL Server 2012 AlwaysOn Availability Groups Insallation and Configuration

Category: AdministrationFatih Acar @ 09:00

Always On Availability Group is a new feature in SQL Server Database with 2012 release. Before this feature, we was using database mirroring feature in SQL Server 2005. But, mirroring has some limitations and weaknesses. and mirroring feature will be disabled near future.

AlwaysOn Availability Groups Features

  • Multi or Single Database Failovers
  • Multiple Secondaries
  • Active (Readably) Secondaries
  • Integrated HA Management

sqlserveravailabilitygroup

System Information

OS: Windows 2012 Server
DB: SQL Server 2012
Side 1: TESTDB1
Side 2: TESTDB2
Failover Cluster Name: TESTDB
Availability Group Name: TESTDB_AG
Listener Name: TESTDBVIP
Listener Port: 1433

AlwaysOn Availability Groups Installation Steps
Continue reading “SQL Server 2012 AlwaysOn Availability Groups Insallation and Configuration”

5,011 total views, no views today

Tags: Database Administration, MsSQL Server, SQL Server Administration, SQL Server Availability Group


May 26 2015

SQL Server Reporting Service Start Error 1053 The Service Did Not Respond

Category: Errors and SolutionsFatih Acar @ 13:50

Error

Reporting Server Error 1053: The service did not respond to the start or control request in a timely fashion.

error_1053

Solution
Continue reading “SQL Server Reporting Service Start Error 1053 The Service Did Not Respond”

7,285 total views, no views today

Tags: MsSQL Server, MsSQL Server Error and Solutions, SQL Server Administration


Jun 05 2014

How to Enable Agent XPs in MsSQL Server 2008 (Agent Xps Disabled)

Category: Administration,Errors and SolutionsFatih Acar @ 09:28

I upgraded MsSQL database version from MsSQL Server 2008 Express Edition to MsSQL Server 2008 Enterprise Edition. After upgrade operation, Agent XPs was disabled and MsSQL Server Agent servis could not start. I reconfigured Agent XPs configuration. The problem resolved.

Management Studio Object Explorer does not display the contents of the SQL Server Agent node unless these extended stored procedures are enabled regardless of the SQL Server Agent service state.

Agent XPs Possible Values

0, indicating that SQL Server Agent extended stored procedures are not available (the default).
1, indicating that SQL Server Agent extended stored procedures are available.

Show Current Value

EXEC SP_CONFIGURE ‘Agent XPs’

Reconfigure Agent XPs

EXEC SP_CONFIGURE ‘show advanced options’, 1;
GO
RECONFIGURE;
GO
SP_CONFIGURE ‘Agent XPs’, 1;
GO
RECONFIGURE
GO

After these parameter change operations you can restart agent service or sql server service to show Agent XPs enabled.

After all operations, If agent service does not start, you can try that Agent service on services.msc user change to local. That can resolve problem.

Continue reading “How to Enable Agent XPs in MsSQL Server 2008 (Agent Xps Disabled)”

194,618 total views, 10 views today

Tags: Agent XPs Disabled, Database Administration, MsSQL Server, SQL Server Administration


Feb 25 2014

Error : Cannot Open User Default Database in MsSQL Server

Category: Administration,Errors and SolutionsFatih Acar @ 17:21

If you delete default database of user, users of default database can not connect to database. You have to connect with sqlcmd on master database. After you have to change default database of user.

Error

Cannot open user default database. Login failed.

Solution

Open CMD prompt
C:\>sqlcmd -E -d master
1> alter login [domain\LoginUser] with default_database = master
2> go
3> quit

19,345 total views, 5 views today

Tags: Database Administration, MsSQL Server, SQL Server Administration


Oct 01 2013

Create Linked Server for Oracle in SQL Server 2008 R2

Category: Administration,AdministrationFatih Acar @ 15:19

If you want to fetch data from Oracle to SQL Server, you can use Linked Servers features in SQL Server Database. Linked Server is like a database link (Dblink).

Installation steps

  • Install Oracle Client on SQL Server database server
  • Restart SQL Server database service
  • Configure OraOLEDB.Oracle provider in SQL Server database
  • Create user for remote connection in Oracle database
  • Create new linked server in SQL Server database
  • Add remote login for connect Oracle database in SQL Server
  • Query Example

Install Oracle Client on SQL Server database server

You can find Oracle client application on Oracle.com. You can install Oracle client application after download. I will not tell how to install.

Restart SQL Server database service

You can restart SQL Server database service on services.msc

Configure OraOLEDB.Oracle provider in SQL Server database

After Oracle client install, you have to find Oracle provider in SQL Server database Linked Servers as OraOLEDB.Oracle

SQL Server Database

OraOLEDB.Oracle properties configure like below;

SQL Server Database

Create user for remote connection in Oracle database

SQL> create user oraconnuser identified by oraconnuser;
SQL> grant create session to oraconnuser;
SQL> grant select on table1 to oraconnuser;

Create new linked server in SQL Server database

exec sp_addlinkedserver @LinkName, @SrvProduct, @Provider, @ConnectionString

exec sp_addlinkedserver ‘ORALINK’, ‘Oracle’, ‘OraOLEDB.Oracle’, ‘OraIP:1521\DBNAME’

Add remote login for connect Oracle database in SQL Server

exec sp_addlinkedsrvlogin @LinkName, @useself, @LocalLogin, @OraUser, @OraPassword

exec sp_addlinkedsrvlogin ‘ORALINK’, ‘FALSE’, NULL, ‘oraconnuser’, ‘oraconnuser’

Query Example

select * from openquery(ORALINK,’select * from table1′)
where table1column = ‘example’

69,475 total views, 2 views today

Tags: Database Administration, MsSQL Server, Oracle, Oracle Administration, SQL Server Administration, SQL Server to Oracle DbLink