Click here to Skip to main content
15,886,648 members
Home / Discussions / Database
   

Database

 
GeneralRe: Can a computer install multiple versions of SQL Server Management Studio ? Pin
jschell13-Feb-18 15:26
jschell13-Feb-18 15:26 
GeneralRe: Can a computer install multiple versions of SQL Server Management Studio ? Pin
phil.o13-Feb-18 15:39
professionalphil.o13-Feb-18 15:39 
AnswerRe: Can a computer install multiple versions of SQL Server Management Studio ? Pin
MadMyche23-Feb-18 3:37
professionalMadMyche23-Feb-18 3:37 
QuestionHow can I convert SQL Server data file version ? Pin
Member 24584678-Feb-18 14:39
Member 24584678-Feb-18 14:39 
AnswerRe: How can I convert SQL Server data file version ? Pin
Mycroft Holmes8-Feb-18 14:57
professionalMycroft Holmes8-Feb-18 14:57 
AnswerRe: How can I convert SQL Server data file version ? Pin
Chris Quinn8-Feb-18 22:56
Chris Quinn8-Feb-18 22:56 
AnswerRe: How can I convert SQL Server data file version ? Pin
jschell10-Feb-18 6:44
jschell10-Feb-18 6:44 
QuestionSql Server 2017 with Transact and synonyms Problems. Microsoft does not respond. Pin
zequion7-Feb-18 19:48
professionalzequion7-Feb-18 19:48 
I am using Sql Server 2017 with Transact and a file with synonyms in FTData. I have found several serious flaws and problems but in the Microsoft MSDN forum and in Microsoft connect no one answers me. The rest of the people say they do not know how it works.

Video: https://youtu.be/Il7-DDKfHiU

Problem 1: Freetexttable Error With More of 3 Words.
I use Freetexttable with thousands of synonyms in a simple query in two Pc. By entering up to 3 words "Microsoft Sql Management Studio" instantly returns the result and the memory remains stable in 6Gb.

If I enter 4 words he is thinking for 10 minutes and the memory consumes until 12Gb. At the start of the video you can see what it takes Sql Server to load the synonyms and every few minutes if Sql Server is not used again it loads them again.

Example:
SELECT [Table].*, FT.* FROM [Table] INNER JOIN FREETEXTTABLE([Table], [Contenido], 'Word1 Word2 Word3') FT ON [Table].Id=FT.[Key] WHERE ([Table].STATE IS NULL OR [Table].STATE = ' ') ORDER BY RANK DESC, Page

Problem 2: Transact does not return the inflections of a word if you do not accent it correctly.
When looking for the inflectional of a word, if I introduce the word with the accent the inflections appear well. The server collation is SQL_Latin1_General_CP1_CI_AI
If I introduce the word without the accent, the inflections do not appear. In Spanish café and cafés are accentuated.

Video: https://youtu.be/4DX-Y3eoDo4

SELECT display_term FROM SYS.DM_FTS_PARSER('FORMSOF(INFLECTIONAL, café)', 3082, 0, 0)
display_term returns: cafes cafe
SELECT display_term FROM SYS.DM_FTS_PARSER('FORMSOF(INFLECTIONAL, cafe)', 3082, 0, 0)
display_term returns: cafe

When doing the same with the synonyms, returns the same results with or without accent.
SELECT display_term FROM SYS.DM_FTS_PARSER('FORMSOF(THESAURUS, cafe)', 3082, 0, 0)
SELECT display_term FROM SYS.DM_FTS_PARSER('FORMSOF(THESAURUS, café)', 3082, 0, 0)
display_term returns: cafe chicoria sucedaneo mezcla chicoria. In Spanish sucedáneo are accentuated.

Note:After making the video I tried to recover the inflections of the word echaré (with and without accent) and returns the inflections well in both cases. So the problem is with some words.

I have found a very interesting example. I use the verb "echar". Among others, it has 2 inflections that are "echaré" and "echaría". If I consult "echaré" with and without an accent, it works well for me and it also returns me between its inflections.
If I consult "echaría" work well with accent and bad without accent.
Video: https://youtu.be/DmfZmzRW4w8

Problem 3: Transact load the synonyms many times.
I have added synonyms and a function that loads them when starting sql server. The problem is that when you make the first consultation you think about 1.5 minutes. Also, if I do not do searches, every so often (it can be 15 minutes) again it seems that it reloads the synonyms, perhaps from tempdb. How is it done to load them once and not delete them from tempdb?
I have this store procedure to load the synonyms at the start of sql server from file:

USE master;
GO
CREATE PROCEDURE Sinonimos
AS
SET NOCOUNT ON;
GO
EXEC sys.sp_fulltext_load_thesaurus_file 3082, @loadOnlyIfNotLoaded = 1;
GO

Activate the store procedure at startup by:
USE master
GO
EXEC sp_procoption @ProcName='Sinonimos', @OptionName = 'startup', @OptionValue = 'on';
GO

Problem 4: You can not protect the synonyms.
I have to install the sql server system on a client but I do not want to leave the .xml file from FTData there with synonyms. Is there a way for the file to load it from a remote URL or can the file be encrypted?

modified 8-Feb-18 7:32am.

Questionhow to delete specific data from multiple tables in sql database Pin
Ko Htet Kyaw7-Feb-18 5:53
Ko Htet Kyaw7-Feb-18 5:53 
AnswerRe: how to delete specific data from multiple tables in sql database Pin
ZurdoDev7-Feb-18 7:16
professionalZurdoDev7-Feb-18 7:16 
QuestionQuick Join to get the weight Pin
jkirkerx5-Feb-18 11:16
professionaljkirkerx5-Feb-18 11:16 
AnswerRe: Quick Join to get the weight Pin
Richard Deeming6-Feb-18 2:33
mveRichard Deeming6-Feb-18 2:33 
GeneralRe: Quick Join to get the weight Pin
jkirkerx7-Feb-18 6:56
professionaljkirkerx7-Feb-18 6:56 
QuestionTo update multiple dynamic field in a single query Pin
Member 136574851-Feb-18 23:01
Member 136574851-Feb-18 23:01 
AnswerRe: To update multiple dynamic field in a single query Pin
Richard Deeming2-Feb-18 1:16
mveRichard Deeming2-Feb-18 1:16 
GeneralRe: To update multiple dynamic field in a single query Pin
Member 136574854-Feb-18 22:46
Member 136574854-Feb-18 22:46 
QuestionPossible to use Linq to query a column that contains a description and remove the whitespaces? Pin
jkirkerx18-Jan-18 8:40
professionaljkirkerx18-Jan-18 8:40 
AnswerRe: Possible to use Linq to query a column that contains a description and remove the whitespaces? Pin
Jörgen Andersson18-Jan-18 9:17
professionalJörgen Andersson18-Jan-18 9:17 
AnswerRe: Possible to use Linq to query a column that contains a description and remove the whitespaces? Pin
Chris Quinn18-Jan-18 22:13
Chris Quinn18-Jan-18 22:13 
AnswerRe: Possible to use Linq to query a column that contains a description and remove the whitespaces? Pin
Eddy Vluggen19-Jan-18 4:12
professionalEddy Vluggen19-Jan-18 4:12 
AnswerTable of straight text Pin
jkirkerx19-Jan-18 7:30
professionaljkirkerx19-Jan-18 7:30 
AnswerRe: Possible to use Linq to query a column that contains a description and remove the whitespaces? Pin
jschell20-Jan-18 6:06
jschell20-Jan-18 6:06 
QuestionEntity Framework 6 - Set Connection String at Runtime Pin
Kevin Marois12-Jan-18 7:17
professionalKevin Marois12-Jan-18 7:17 
AnswerRe: Entity Framework 6 - Set Connection String at Runtime Pin
Richard Deeming12-Jan-18 8:23
mveRichard Deeming12-Jan-18 8:23 
QuestionProblem with Access Pin
JackMisani10-Jan-18 7:51
JackMisani10-Jan-18 7:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.