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

SQL Semantic Search (Full-Text) not finding keywords

$
0
0
I have a scenario of where the standard Full-Text search identifies keywords but Semantic Search does not recognize them as keywords.  I'm hoping to understand why Semantic Search might not recognize them.  The context this is being used in medical terminology and the specific key words I noticed missing right off the bat were medications. 

For instance, if I put the following string into a FT indexed table
'J9355 - Trastuzumab (Herceptin)'
AND
'J9355 - Trastuzumab emtansine'
The Semantic Search recognized 'Herceptin' and 'Emtansine' but not 'Trastuzumab'

Nor in
'J8999 - Everolimus (Afinitor)'
It did not recognize 'Afinitor' as a keyword.

In all cases the Base of Full-Text did find those keywords and were identifiable using the dmv
sys.dm_fts_index_keywords_by_document.

It does show the index as having completed.

Any thoughts on why certain words might not be picked up while others would be?  Could it be a language/dictionary issue?  I am using English and accent insensitive settings.

Thanks
Brad

Enterprise Applications Specialist


Error when u^grading from SQL Server 2005 to SQL Server 2014

$
0
0

Hello everyone,

Could you help me, i have an error when i try to upgrade my SQL Server 2005 Enterprise Edition to SQL Server 2014 Enterprise Edition,

All of prerequisits are available and i dont have a problem,

before the end of migration process, i have this error: The group name could not be found (0x84BB0001)

  • File log:

Feature:                       Database Engine Services
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred during the setup process of the feature.
  Next Step:                     The upgrade process for SQL Server failed. To continue the upgrade process, use the following information to resolve the error. Next, uninstall SQL Server by using this command line: setup /q /action=uninstall /instanceid=MSSQLSERVER /features=SQLENGINE,FULLTEXT,REPLICATION. Then, run SQL Server Setup again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          0x84BB0001
  Error description:             The group name could not be found.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x0AD059E6%400x3FAAA006&EvtType=0x0AD059E6%400x3FAAA006

  Feature:                       Full-Text and Semantic Extractions for Search
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     The upgrade process for SQL Server failed. To continue the upgrade process, use the following information to resolve the error. Next, uninstall SQL Server by using this command line: setup /q /action=uninstall /instanceid=MSSQLSERVER /features=SQLENGINE,FULLTEXT,REPLICATION. Then, run SQL Server Setup again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          0x84BB0001
  Error description:             The group name could not be found.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x0AD059E6%400x3FAAA006&EvtType=0x0AD059E6%400x3FAAA006

  Feature:                       SQL Server Replication
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     The upgrade process for SQL Server failed. To continue the upgrade process, use the following information to resolve the error. Next, uninstall SQL Server by using this command line: setup /q /action=uninstall /instanceid=MSSQLSERVER /features=SQLENGINE,FULLTEXT,REPLICATION. Then, run SQL Server Setup again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          0x84BB0001
  Error description:             The group name could not be found.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0x0AD059E6%400x3FAAA006&EvtType=0x0AD059E6%400x3FAAA006

Best regards,

Guiga Hafedh

Split over 2TB?

$
0
0

Our database structure is so that 95% of the storage is used by 1 table. This table Is partitioned and indexed. This is working fine and we can handle big volumes with datbases over 5-6 TB.

Now one of our customers is worried that MDF-files over 2TB will be unstable and cause performance degradation in SQL Server. We claim the opposite - that one file is better - but since we don´t have benchmarking based on multiple files, we´re not getting ahead in the discussion.

Grateful for all hard facts and studies I can point towards.

/Johan

how to add database to catalog in linked server ?

$
0
0
How to add database to catalog in linked server?

Active directory

$
0
0

Hi Everyone,

How the data in active directory gets stored?

Are the data getting stored in SQL Server?

I have googled is, but didnt found any articels.

 

Thanks,

Karthi K

Database Shrink Error: 8985

$
0
0

Hi All,

Version: Microsoft SQL Server 2008 (SP3) - Enterprise Edition.

While performing the DB Shrink, I get the following error on both the editionsEnterprise and Developer. Recently I have upgraded the Service pack from SP2 to SP3. From then this issue has started.

I have verified the log logical name and physical path which is available and its correct.

The Command that I use to Shrink is below:

USE XXX
GO
DBCC SHRINKFILE (XXX_Log, 0);
GO

Error Message: Could not locate file 'XXX_Log' for database 'XXX' in sys.database_files. The file either does not exist, or was dropped. [SQLSTATE 42000] (Error 8985).  The step failed.

Please suggest or help me to sort out this issue.

issue regarding schema and SP

$
0
0

Hello All,

One of our client have issue related to schema and Stored procedure.

on a database, when we check the stored procedure by using (select * from sys.procedures where name='logout') it gives 2 rows with 2 different schema id , 1 and 36.

But when we run (select * from sys.schemas where schema_id = 36),  it given no result.

also when we tried to expand the stored procedure tab under programmability it gives below error.

A severe error occurred on the current command. The results, if any, should be discarded.
A severe error occurred on the current command. The results, if any, should be discarded. (Microsoft SQL Server, Error: 0)

We have SQL server 2008R2 with SP3.

We have run the integrity check but no error also restarted the server but the problem still persist.

Can someone please assist me on this.

Microsoft SQL server error:233

$
0
0

I am getting this error when connecting to sql. I cant get into my databases now- its pretty ugly.

 

"A connection was succesfulyl established with the server, but then an error occured during the login process.

(provider: Shared Memeory Provoder, error: 0 - No Process is on the other end of the pipe.)Microsoft SQL server error:233

 

Anyone who knows what is going on soem help would be much appreciated.

Mat


Sql Server 2012 error log message information

$
0
0

Hi Team,

i am installed  sql server 2012 two months back, to day i check the sql server error log it showing below error message.

Note : I my SQL server there is no SSIDB.

error log message:

2014-12-02 06:05:49.830 spid54     Using 'xpsqlbot.dll' version '2011.110.2100' to execute extended stored procedure 'xp_qv'. This is a

2014-12-02 06:05:49.830 spid54     Attempting to load library 'xpsqlbot.dll' into memory. This is an informational message only. No use

2014-12-02 06:05:48.770 spid4s     Recovery is complete. This is an informational message only. No user action is required.           

2014-12-02 06:05:48.770 spid4s     SQL Server is now ready for client connections. This is an informational message; no user action is

2014-12-02 06:05:48.760 spid4s     ------------------------------------------------------                                             

2014-12-02 06:05:48.760 spid4s     Execution of SSIS_HOTFIX_INSTALL.SQL completed                                                     

2014-12-02 06:05:48.760 spid4s     ------------------------------------------------------                                             

2014-12-02 06:05:48.760 spid4s     Database SSISDB was not patched.                                                                   

2014-12-02 06:05:48.760 spid4s     Database SSISDB does not exist in current SQL Server instance                                       

2014-12-02 06:05:48.760 spid4s     ------------------------------------------------------                                             

2014-12-02 06:05:48.760 spid4s     Starting execution of SSIS_HOTFIX_INSTALL.SQL                                                       

2014-12-02 06:05:48.760 spid4s     ------------------------------------------------------                                             

2014-12-02 06:05:48.740 spid4s     Database 'master' is upgrading script 'SSIS_hotfix_install.sql' from level 184552376 to level 184552

2014-12-02 06:05:48.660 spid4s     ------------------------------------------------------                                             

2014-12-02 06:05:48.660 spid4s     Execution of SSIS_DISCOVERY.SQL completed                                                          

2014-12-02 06:05:48.660 spid4s     ------------------------------------------------------                                             

2014-12-02 06:05:48.660 spid4s     Database SSISDB could not be upgraded successfully.                                                

2014-12-02 06:05:48.660 spid4s     User 'sa' is changing database script level entry 17 to a value of 500.                            

2014-12-02 06:05:48.660 spid4s     Database SSISDB does not exist in current SQL Server instance                                      

2014-12-02 06:05:48.630 spid4s     ------------------------------------------------------                                             

2014-12-02 06:05:48.630 spid4s     Starting execution of SSIS_DISCOVERY.SQL                                                           

2014-12-02 06:05:48.630 spid4s     ------------------------------------------------------                                             

2014-12-02 06:05:48.630 spid4s     Database 'master' is upgrading script 'ssis_discovery' from level 184552376 to level 184552715.    

2014-12-02 06:05:48.590 Logon      Login failed for user 'test'. Reason: Server is in script upgrade mode. Only administrator can

what are the reason we getting those type of messages.

 

COLUMNPROPERTY on a vew does not show ID column as identity

$
0
0

Hi everyone,

I am trying to figure out why COLUMNPROPERTY'IsIdentity' for a view is not equal to 1 when for the underlying tables it is returned correctly =1.

SELECT COLUMNPROPERTY( OBJECT_ID('TestDB.TestView'),'ID', 'IsIdentity') AS 'Is Identity'; --this returns 0
SELECT COLUMNPROPERTY( OBJECT_ID('TestDB.TestTable'),'ID', 'IsIdentity') AS 'Is Identity'; --this returns 1

I need a workaround on this - to get SQL server to interpret this column as Identity.This is because MS Access needs an Identity column to be able to work with SQL views.

Thank you in advance

How to konw the reason why sql server resarted.

$
0
0
Sql service is restarted.At logs we didn't get any information.There is no no os reboot.How to know the reason for sql restart.

optimize for ad hoc workloads

$
0
0

Good morning,

I'm trying to determine if the symptoms I'm seeing with one of our database instances would appropriate the application of the "optimize for ad hoc workloads" configuration option.

5 or 6 times a day, we are seeing the number of compiles/recompiles per sec shoot up to around 1500-2000 (with the batch requests being around 200-300).

I'm wondering firstly if this is something to worry about, or should i just acknowledge that its a trait of this particular server.  (Spotilght raises it as a big red alert, but since it only happens a few times per day, and there are no complaints from users, should we REALLY be worried)... secondly, since there is nothing we can do programatically to resolve this, should we even bother (the server this is running on hosts the databases for third party apps such as antivirus and monitoring apps)... and lastly, if enabling "optimize for ad hoc workloads" would assist this or not.  

My personal thoughts were that it might be worthwhile trying this advanced config option, but then I saw that somebody has had issues with the server hanging when enabling it, which made me think twice.

Regards,

Andy

Msg 3013, Level 16, State 1, Line 3 BACKUP DATABASE is terminating abnormally

$
0
0

Hi All,

This is on sql server 12.0.2254. I started getting error messages when our maintenance plan for backups ran. Digging through the backup plan log file yielded the following info:

Failed:(-1073548784) Executing the query "BACKUP DATABASE [master] TO  DISK = N'E:\\sql_backu..." failed with the following error: "BACKUP DATABASE is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

I then tried to create a backup using t-sql:

USE [ReportServer];
GO
BACKUP DATABASE [ReportServer]
TO DISK = 'c:\reportserver.Bak'

This resulted in the following error message:

Msg 3013, Level 16, State 1, Line 3
BACKUP DATABASE is terminating abnormally.

I did notice that when the maintenance plan was run a sqldump.mdmp, sqldump.log and sqldump.txt files were created. This is a portion from the sqldump.txt file:

***Stack Dump being sent to D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\LOG\SQLDump0016.tx
t                                                                                                               
SqlDumpExceptionHandler: Process 2828 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server i
s terminating this process.                                                                                     
* *******************************************************************************                                
*                                                                                                               
* BEGIN STACK DUMP:                                                                                             
*   12/02/14 14:03:36 spid 2828                                                                                 
* Private server build.                                                                                         
*                                                                                                               
*                                                                                                               
*   Exception Address = 000007FEF23FB6B7 Module(sqlmin+0000000002C8B6B7)                                         
*   Exception Code    = c0000005 EXCEPTION_ACCESS_VIOLATION                                                     
*   Access Violation occurred reading address 00000000403AEB09                                                   
* Input Buffer 510 bytes -                                                                                      
*             BACKUP DATABASE [ReportServer_MKTG_INTELTempDB] TO  DISK = N'                                      
*  E:\sql_backups\ReportServer_MKTG_INTELTempDB\ReportServer_MKTG_INTELTemp                                      
*  DB_backup_2014_12_02_140323_2336797.bak' WITH NOFORMAT, NOINIT,  NAME =                                       
*  N'ReportServer_MKTG_INTELTempDB_backup_2014_12_02_140323_2336797', SKIP,                                      
*   REWIND, NOUNLOAD, COMPRESSION,  STATS = 10 

Any help/guidance would be greatly appreciated.



Finding the owner of server and database objects created by the actual user when user is member of Windows group login

$
0
0

Hello,

So, we've got users who don't have SQL logins or database users that map to their actual Windows account.  Instead, we've got a number of Windows groups with SQL logins created that are mapped and provided access accordingly.  There recently came to be an issue where a member of one of these groups who recently left the company owned a SQL job.  Because the job was configured by default to run under his account which had since been disabled the job failed, which created it's own controversy.

I was able to identify the individual Windows accounts who were members of these groups and created jobs by using thesysjobs_view system view in msdb.  However, I'm not sure how else I'd identify objects owned by actual users and not the Windows groups of which they're a member.  So, my question is:

How do you the actual Windows account used to create a server/database objects when that user is a member of a Windows group login?

Error 18456 Severity 14 State 38

$
0
0

Hi,

I am using SQL Server 2012. I find below messages popping up in my error log after every minute.

Login Failed for user "domain\abc": Reason failed to open the explicitly specified database AAZ [Client XXXXXX].

Error 18456 Severity 14 State 38.

But this database AAZ does not exist. Even I start SQL Profiler, but could not get any sufficient information on it.

Pleas suggest.

Regards





Delete All Data Collector objects in Database

$
0
0

Hi

     i need to desactivate and delete all objects (Jobs, procedures,...) on a database that were created when is activated the data collector.

   can someone describe all the things that i have to do in order to put the database in it´s original state before the data collector was activated.

regards, Javier

Problem with sp_describe_undeclared_parameters, ADODB and ADO.NET after installation of SP2 on MSSQL 2012

$
0
0

Hello,
After installation of SP2 on MSSQL 2012 stored procedure sp_describe_undeclared_parameters does not work right.
The statement [sp_describe_undeclared_parameters @tsql= N' SELECT * from [dbo].[RepoTable] where Id = @p1 AND 1 = 2'] works fine before SP2 installation, after SP2 installation does this error:  The type for parameter'@p1' cannot be deduced in this context.

With this problem MDAC\ADODB doesn't work because it automatically asks parameters and schema information.
If you use ADODB with SQLNCLI11 as provider you have this problem.
As workaround you can use SQLOLEDB provider but it is slower than SQLNCLI11 and our products today are using SQLNCLI11.

At this link ( http://1drv.ms/1zYW7vQ ) there is a program that reproduce problem using ADO.NET and ADODB.
Its create a new table on eSYS database (you have to change this) of (.) server.
This program on MSSQL 2012 without SP2 has no error and has some error with SP2.

Thanks

Andrea



Log Shipping Vs Mirroring

$
0
0

Define Log shipping and mirroring ?

What are the main differences between Log shipping and Database Mirroring?


bhagee

Cannot release the unallocated space in database file

$
0
0
Database Details

DatabaseDatabase SizeUnallocated Space
My_Database292250.00 MB35906.95

ReservedDataIndex_SizeUnused
262392888 KB232028144 KB30308840 KB55904 KB

NameFileIDFileNameFileGroupSizeMaxSizeGrowthUsage
My_Database1My_Database_FileSystem_PathPrimary299161600 KBUnlimited51200 KBData Only
My_Database_Log2My_Database_Log_FileSystem_PathNULL102400 KB2147483648 KB10%Log Only

I cannot release the unallocated space in my database, i have tried executing the following t-sql commands but still the unallocated space is still the same

DBCC SHRINKFILE ('My_Database', TRUNCATEONLY)

DBCC SHRINKDATABASE ('My_Database', TRUNCATEONLY)

is it still possible to shrink my Database File even though the filesize is now 232 GB?

I need to over write the job outcome

$
0
0

Hi,

I am calling a job 'x' from job step of another job 'Y'. As the the purpose of the job step is to call another job, I included the below

code in the job step to wait until the job completes.

EXEC msdb.dbo.sp_start_job @job_name ='X' 

WHILE( 
SELECT count(1) 
FROM msdb.dbo.sysjobactivity aj 
JOIN msdb.dbo.sysjobs sj on sj.job_id = aj.job_id 
WHERE aj.stop_execution_date IS NULL -- job hasn''t stopped running 
AND aj.start_execution_date IS NOT NULL -- job is currently running 
AND name='X'
AND NOT EXISTS( -- make sure this is the most recent run 
SELECT 1 
from msdb.dbo.sysjobactivity new 
WHERE new.job_id = aj.job_id 
AND new.start_execution_date > aj.start_execution_date))>0 
WAITFOR DELAY '00:00:30'

The step waits until the job complete but, i want my job 'Y' to report failure when job X failed. I mean, Please share the script that resolves my problem.

An one more question is, can we over write the outcome of the job?

Thanks

Lakshman

Viewing all 15872 articles
Browse latest View live


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