How To Handle Scoring In Search Feature?

Feb 15, 2007

Good day all,
I'm looking for suggestions on how to handle the calculating of scores for search results from data.  Primarily if it would be best to calculating the score on the SQL server side or in the application's logic itself after the results have been retrieved?  I already have an idea of the calculations I want to do which will be pretty simple, just a basic point system for containing all the queried terms and additional points for the number of times those words appear on the page.
 Feedback or links to articles on this would be appreciated.  I'm leaning towards doing so on the SQL side myself but my SQL skills are not as polished as I would like for jumping into that, so examples could be good.

 

View 3 Replies


ADVERTISEMENT

Fastest Way To Handle The Search

Jul 23, 2005

Hi!We have Sql Server 2000 in our server (NT 4). Our database have now about+350.000 rows with information of images. Table have lot of columnsincluding information about image name, keywords, location, price, colormode etc. So our database don?t include the images itself, just a path tothe location of every image. Keywords -field have data for example likethis:cat,animal,pet,home,child with pet,child. Now our search use Full-TextSearch which sounded like good idea in the beginning but now it have hadproblems that really reduce our search engine?s performance. Also searchresults are not exact enough. Some of our images have also photographer?sname in keywords -column and if photographer?s name is, for example, PeterMoss, his pictures appears in web-page when customer want to search "moss"(nature-like) -pictures.Another problem is that Full-Text Search started to be very slow when queryresult contains thousands of rows. When search term gives maximum 3000rows, search is fast but larger searches take from 6 to 20 seconds tofinish which is not good. I have noticed also that first search is alwaysvery slow, but next ones are faster. It seems that engine is just"starting" when first query started to run.Is there better and faster way to handle the queries? Is it better torebuild the database somehow and use another method to search than Full-Text Search? I don?t know how to handle the database other way when everyimage have about 10 to even 50 different keywords to search.We have made web interface and search code with Coldfusion. ColdfusionServer then take care of sending all queries to Sql Server.I hope that somebody have some idea how to speed up our picture search.--Message posted via http://www.sqlmonster.com

View 2 Replies View Related

How To Handle Complex Sql Search Query

Mar 3, 2006

I am currently faced with developing a search function (ASP.NET 1.1
based user interface) to a database (SQL Server 2000 ), and I am
wondering how best to handle the logistics of it.

The search can take anywhere from one  to 9 parameters. The search would be executed against three related tables.

The main problem, as I see it at this stage, is how to handle
parameters that have not been selected, it's easy enough to do a search
with all 9 parameters, but as soon as there is an unpredictable
variable number of search criteria, I just don't know how best to
handle this in a stored procedure for example.

I would be very grateful for some guidance.

Thanks.

View 1 Replies View Related

How To Count Scoring?

Jun 23, 2008

I have a scoring query already. However, I need to count how many cases belong to each score. I was not sure how would I write a statement for that. Please see example below:

Column Name: 10 columns (Score1, Score2, Score3, Score4, Score6, Score5, Score6, Score7, Score8, Score9, Score10 and TotalScore)

Each column was range from score 10 to 100, such as:
1) Score1:
case when score1 is null then 0
when score1 >10000000 then 100
when score1 > 1000000 then 90
when score1 > 100000 then 75
when score1 > 10000 then 50
when score1 > 1000 then 25
when score1 > 0 then 10
else 0 end as Score1
Same thing for other score columns.
I already wrote case statement for 10 scored columns, and totalscore = (score1 + score2 + ...score10. But now I need to count how many cases in the below range:

1. How many cases > 199?
2. How many cases from 150 to 199
3. How many cases from 100 to 149
4. How many cases from 50 to 99
5. How many cases from 25 to 49
6. How many cases from 1 to 24
7. and how many cases <1

Can anyone help me to write this statement? Thank you very much!

View 4 Replies View Related

Error Log Peppered With --&&> 'The Conversation Handle Is Missing. Specify A Conversation Handle.'

Dec 3, 2007

Hi

I'm using service broker and keep getting errors in the log even though everythig is working as expected

SQL Server 2005
Two databases
Two end points - 1 in each database
Two stored procedures:
SP1 is activated when a message enters the sending queue. it insert a new row in a table
SP2 is activated when a response is sent from the receiving queue. it cleans up the sending queue.

I have a table with an update trigger
In that trigger, if the updted row meets a certain condition a dialogue is created and a message is sent to the sending queue.
I know that SP1 and SP2 are behaving properly because i get the expected result.
Sp1 is inserteding the expected data in the table
SP2 is cleaning up the sending queue.

In the Sql Server log however i'm getting errors on both of the stored procs.
error #1
The activated proc <SP 1 Name> running on queue Applications.dbo.ffreceiverQueue output the following: 'The conversation handle is missing. Specify a conversation handle.'

error #2
The activated proc <SP 2 Name> running on queue ADAPT_APP.dbo.ffsenderQueue output the following: 'The conversation handle is missing. Specify a conversation handle.'

I would appreceiate anybody's help into why i'm getting this. have i set up the stored procs in correctly?

i can provide code of the stored procs if that helps.

thanks.

View 10 Replies View Related

SQL 2000 MS Search: Boolean Search Doesn't Work When Search By Phrase

Aug 9, 2006

I'm just wonder if this is a bug in MS Search or am I doing something wrong.

I have a query below

declare @search_clause varchar(255)

set @Search_Clause = ' "hepatitis b" and "hepatocellular carcinoma"'

select * from results

where contains(finding,@search_clause)

I don't get the correct result at all.

If I change my search_clause to "hepatitis" and "hepatocellular carcinoma -- without the "b"

then i get the correct result.

It seems MS Search doesn't like the phrase contain one letter or some sort or is it a know bug?

Anyone know?

Thanks

View 3 Replies View Related

Conversation Handle Reuse And Conversation Handle XXX Not Found

Jan 18, 2008



We have implemented our service broker architecture using conversation handle reuse per MS/Remus's recommendations. We have all of the sudden started receiving the conversation handle not found errors in the sql log every hour or so (which makes perfect sense considering the dialog timer is set for 1 hour). My question is...is this expected behavior when you have employed conversation recycling? Should you expect to see these messages pop up every hour, but the logic in the queuing proc says to retry after deleting from your conversation handle table so the messages is enqueued as expected?

Second question...i think i know why we were not receiving these errors before and wanted to confirm this theory as well. In the queuing proc I was not initializing the variable @Counter to 0 so when it came down to the retry logic it could not add 1 to null so was never entering that part of the code...I am guessing with this set up it would actually output the error to the application calling the queueing proc and NOT into the SQL error logs...is this a correct assumption?

I have attached an example of one of the queuing procs below:




Code Block
DECLARE @conversationHandle UNIQUEIDENTIFIER,
@err int,
@counter int,
@DialogTimeOut int,
@Message nvarchar(max),
@SendType int,
@ConversationID uniqueidentifier
select @Counter = 0 -- THIS PART VERY IMPORTANT LOL :)
select @DialogTimeOut = Value
from dbo.tConfiguration with (nolock)
where keyvalue = 'ConversationEndpoints' and subvalue = 'DeleteAfterSec'
WHILE (1=1)
BEGIN
-- Lookup the current SPIDs handle
SELECT @conversationHandle = [handle] FROM tConversationSPID with (nolock)
WHERE spid = @@SPID and messagetype = 'TestQueueMsg';
IF @conversationHandle IS NULL
BEGIN
BEGIN DIALOG CONVERSATION @conversationHandle
FROM SERVICE [InitiatorQueue_SER]
TO SERVICE 'ReceiveTestQueue_SER'
ON CONTRACT [TestQueueMsg_CON]
WITH ENCRYPTION = OFF;
BEGIN CONVERSATION TIMER ( @conversationHandle )
TIMEOUT = @DialogTimeOut
-- insert the conversation in the association table
INSERT INTO tConversationSPID
([spid], MessageType,[handle])
VALUES
(@@SPID, 'TestQueueMsg', @conversationHandle);

SEND ON CONVERSATION @conversationHandle
MESSAGE TYPE [TestQueueMsg] (@Message)

END
ELSE IF @conversationHandle IS NOT NULL
BEGIN
SEND ON CONVERSATION @conversationHandle
MESSAGE TYPE [TestQueueMsg] (@Message)
END
SELECT @err = @@ERROR;
-- if succeeded, exit the loop now
IF (@err = 0)
BREAK;
SELECT @counter = @counter + 1;
IF @counter > 10
BEGIN
-- Refer to http://msdn2.microsoft.com/en-us/library/ms164086.aspx for severity levels
EXEC spLogMessageQueue 20002, 8, 'Failed to SEND on a conversation for more than 10 times. Error %i.'
BREAK;
END
-- We tried on the said conversation, but failed
-- remove the record from the association table, then
-- let the loop try again
DELETE FROM tConversationSPID
WHERE [spid] = @@SPID;
SELECT @conversationHandle = NULL;
END;

View 2 Replies View Related

Feature Or Bug?

Jul 12, 2006

Service Broker will let you create two services with the same name (one with contract and another without)

CREATE SERVICE [Order Msg Recieve] AUTHORIZATION [dbo] ON QUEUE [dbo].[Order Return Msg Queue]

CREATE SERVICE [Order Msg Receive] AUTHORIZATION [dbo] ON QUEUE [ODS].[Order Return Msg Queue] ([OrderSubmission])

When you delete the service....

drop service [Order Msg Recieve]

It will only drop the first one. In the BOL there is no syntax for telling it to delete the second one, however you can drop it from SQL Management Studio.

I stumbled over this by accident. Just FYI

Gary

View 1 Replies View Related

Where Do We Ask For A New Feature?

Jul 12, 2007

Hi. I apologize if this isn't the correct forum for this question: Where can we ask for a feature in the next version of SQL Server? Thank you.

View 1 Replies View Related

Bug Or Feature?

Jan 4, 2006

 

When upgrading a database from MSDE to Visual Studio 2005 Express, I've noticed that the system tables in the MSDB database don't get upgraded.  For example, the SYSSCHEDULES table doesn't get added.  Is this by design or a bug?

-Doug

View 6 Replies View Related

Sql Server Feature Or Bug?

Aug 8, 2007

Try this in sql server 2005:
select COALESCE(a1, char(254)) as c1 from
(select 'Z' as a1 union select 'Ya' as a1 union select 'Y' as a1 union select 'W' as a1) as b1
group by a1
with rollup order by c1
select COALESCE(a1, char(255)) as c1 from
(select 'Z' as a1 union select 'Ya' as a1 union select 'Y' as a1 union select 'W' as a1) as b1
group by a1
with rollup order by c1
 
The only difference is that the first one uses 254 and the second one uses 255. The first sorts like this:
WYYaZþ
The second one sorts like this:
WYÿYaZ 
Is this expected behavior?

View 3 Replies View Related

DTS Bug? (or Random Feature?)

Jul 16, 1999

Has anyone noticed that if you created DTS package and try to
change connection properties (i.e. change DSN or redirect
DTS to different server or Database), as soon you click OK
it does not save new password and hence does not work
anymore. In my case to move Database from Development to
Production server I would have to recreate all DTS packages.
Is there any way around it?

Any ideas greatly appreciated.

View 1 Replies View Related

Undocumented Feature

Jan 21, 2004

Dig this....



USE Northwind
GO

CREATE TABLE ItemInformation([Description] varchar(80))
GO

INSERT INTO ItemInformation([Description])
SELECT 'CHOCOLATE CHIP‚' UNION ALL
SELECT '‚COOKIES‚' UNION ALL
SELECT '‚CROISSANTS *PLAIN*‚' UNION ALL
SELECT '‚DONUTS‚' UNION ALL
SELECT '‚DONUTS *DOZEN*‚' UNION ALL
SELECT '‚MUFFINS‚' UNION ALL
SELECT '‚BAGELS‚' UNION ALL
SELECT '‚ROLLS‚' UNION ALL
SELECT '‚CUPCAKES‚' UNION ALL
SELECT '‚CRISPIES‚' UNION ALL
SELECT '‚DANISH/SWEET ROLLS‚' UNION ALL
SELECT '‚FUDGE BROWNIES‚' UNION ALL
SELECT '‚PUFF PASTRIES/ECCLES‚' UNION ALL
SELECT '‚STICKY BUNS‚' UNION ALL
SELECT '‚TURNOVERS‚' UNION ALL
SELECT '‚BLACK & WHITE COOKIES‚' UNION ALL
SELECT '‚LINZER TARTS‚' UNION ALL
SELECT '‚SCONES/BISCUITS‚' UNION ALL
SELECT '‚SCUFFINS‚' UNION ALL
SELECT '‚SINFULL BITS‚'
GO

SELECT * FROM ItemInformation
GO

UPDATE ItemInformation
SET [Description] = REPLACE([Description],',','')
GO

SELECT [Description], LEN([Description]) FROM ItemInformation
GO

SELECT REPLACE([Description],',','')
FROM ItemInformation

SELECT REPLACE([Description],'C','')
FROM ItemInformation

SELECT CHARINDEX(',',[Description])
FROM ItemInformation
GO

DECLARE @x varchar(80)
SELECT @x = '‚COOKIES‚'
SELECT @x
SELECT REPLACE(@x,',','')
GO

DELETE FROM ItemInformation
GO

INSERT INTO ItemInformation([Description])
SELECT 'CHOCOLATE, CHIP‚' UNION ALL
SELECT 'CHOCOLATE, CHIP‚' UNION ALL
SELECT ',CHOCOLATE, CHIP‚' UNION ALL
SELECT ',CHOCOLATE, CHIP‚ ' UNION ALL
SELECT ',CHOCOLATE, CHIP‚ A' UNION ALL
SELECT ',CHOCOLATE, CHIP‚ , '
GO

SELECT REPLACE([Description],',','')
FROM ItemInformation
GO

DROP TABLE ItemInformation
GO





BIZZARO WORLD

View 14 Replies View Related

My Report Feature

Jun 22, 2007

Currently - our Reporting Services site is setup so that all Domain Users can access it. We are starting to use Report Builder now. I have enabled the My Reports folder feature that that creates a user folder for anyone that logs onto the site. Is there a way to just create the user folders for certain people?



View 1 Replies View Related

Subscriptions Feature Not Available

Aug 23, 2007

I just installed SQLExpress, with reporting services on my own laptop

However, when I go to http://localhost/Reports/, I can see my reports uploaded, but the subscription links are not available. In Properties, I cannot see "Execution" either.

Can someone help me to get the Subscriptions feature enable again?

Thanks,

John W

View 1 Replies View Related

RetainSameConnection Bug Or Feature???

Aug 31, 2006

We desperately require the RetainSameConnection to be set to True on our ADO.NET - ODBC connection manager. Unfortunately RetainSameConnection always defaults back to False when you open the package.



* Is RetainSameConnection supposed to work for the ADO.NET - ODBC combination?



* Is it a bug that it defaults back to false for the ADO.NET - ODBC combination?




Quick responses much appreciated!

Kristian


Details:

SSIS with SP1

ConnectionManagerType:
ADO.NET:System.Data.Odbc.OdbcConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Provider:
.NET ProvidersODBC Data Provider

Connection String:
Driver={iSeries Access ODBC Driver};system=AS400;dbq=GAPFILES;dftpkglib=QGPL;languageid=ENU;pkg=QGPL/DEFAULT(IBM),2,0,1,0,512;

View 2 Replies View Related

Feature Pack And SP1

Apr 26, 2006

I posted this over on, I guess, the other SQL Server forum (msdn.microsoft.com/newsgroups). Sorry if it's a cross post or better answered there.

Does anyone know if the feature packs are included in SP1 or still need to be installed separately.



View 1 Replies View Related

Need Help With Report Feature

Nov 15, 2007

Hi!
I am having a terrible time with the report feature. First of all, my queries through it do not match my queries thru SQL server 2005 Express Management. When I enter my fields, through the auto query function, it moves them. When I try to put them where I think they belong (by editing the SQL code, my queries get all messed up).

Is there a way to import my SQL query and run it through the report feature?

I am using windows XP Pro
Microsoft Visual Studio 2005 version 8.0.50727.42
Microsoft SQL Server Reporting Services Designers version 9.00.2047.00

Thank You so much......









View 1 Replies View Related

A Feature Available In Oracle, Is It Available In Sql Server?

Aug 14, 2004

Theres a feature in oracle that allows you to modify tables, colums, values and the data from its enterprise console the same way that you can in sql server. In oracle however theres a button called 'show sql' that allows you to see and copy/paste the resulting sql for the changes made via the console.

I would imagine that sql server has a similar option. The reason i ask is that i would like to more fully learn how to do this through the query analyser and get more familiar with sql involved and I would be able to do this if I could see the resulting sql from enterprise manager.

Hope this makes sense.

I did find something in sql server called 'generate sql' but this doesnt update during changes you make automatically.

Thanks

View 3 Replies View Related

Full-text Feature

Feb 21, 2006

Hello,

I installed full-text feature on a previously installed SQL Server. It
seemed it installed and it did not give me error but when I run “EXEC
sp_fulltext_database 'enable'� it gives me no full-text search featured
installed message. Any idea?

View 2 Replies View Related

Optional Feature Not Implemented

Jun 9, 2000

I need some help...
I'm trying to execute a stored procedure and I'm getting this message

Run-Time Error '-2147217887 (80040e21)':

[Microsoft][ODBC SQL Server Driver]Optional feature not implemented

Here is the code:
Public Function D2L(sconnect As Variant, dDate As Variant) As Variant
Dim rsDate As ADODB.Recordset
Dim cmdDate As ADODB.Command
Dim prmDate As ADODB.Parameter

Set cmdDate = New ADODB.Command
Set ADOConn = New ADODB.Connection

ADOConn.Open sconnect

Set cmdDate.ActiveConnection = ADOConn
cmdDate.CommandText = "dbo.UP_CVRT_DATE_TO_LONG"
cmdDate.CommandType = adCmdStoredProc

Set prmDate = New ADODB.Parameter
prmDate.Type = adDate
'prmDate.Size = 32
prmDate.Direction = adParamInput
prmDate.Value = dDate
cmdDate.Parameters.Append prmDate

Set rsDate = cmdDate.Execute()

Thanks in advance for any responses...

View 1 Replies View Related

Write-Enabled Feature?

Jan 6, 2005

Hi,

While reading (I have come across what seems to be maybe a powerful and useful feature) available in MSAS and thus this related question:


Can someone briefly explain the use of this feature and how it can come in handy.

So far I have skimmed through BOL and it says that "Only parent-child dimensions support this dimension characteristic" i.e. Write-enabled feature.

Thanks.

View 2 Replies View Related

IIS Feature Requirement (Warning

Sep 18, 2007

Hello there

I installed sql server 2005 developer edition

and the only error message i got was.

- IIS Feature Requirement (Warning)
Messages
IIS Feature Requirement

Microsoft Internet Information Services (IIS) is either not installed or is disabled. IIS is required by some SQL Server features. Without IIS, some SQL Server features will not be available for installation. To install all SQL Server features, install IIS from Add or Remove Programs in Control Panel or enable the IIS service through the Control Panel if it is already installed, and then run SQL Server Setup again. For a list of features that depend on IIS, see Features Supported by Editions of SQL Server in Books Online.

how do i get hold of Internet Information Services
I installed it on vista premium.

Please help

Regards
ROB

View 3 Replies View Related

Reporting Services Feature

May 20, 2008

Hi All,

I know that reporting services is a reporting suite, but is there a way in which records/data/information can be submitted/updated from RS?

thanx

View 1 Replies View Related

Lookup Component Feature

Jul 27, 2006

Has anyone seen this strange behaviour?

I have a package which loads the fact data from Stage into Warehouse database. This packages normally handles early arriving facts. In that package I use lookup to check the dims which exists, and where they don't I populate the dimension and use the surrogate key to load the facts. This works fine.

I had a request to load 7 years worth of historical data. Instead of re-writing the package I took the package which handles early arriving facts and deleted the section which handles early arriving facts. I knew all the dimensions already exists and I don€™t want to hinder the performance when I load millions of rows. During testing I found something very interesting.

If you have configured error path in the lookup component and removed the error path later, the package will NOT fail (won't produce error) even if the lookup can't find matching values.

Correct Behaviour Example 1:
[1] Stage fact table has 2 records, with product code 1 and 2.
[2] Warehouse Product table has only product code 1.
[3] Source - Lookup - Destination in the data flow task. Error port on lookup is not configured.
[4] From source we read 2 records, and the package will fail at lookup as it can't find Product Code 2.

Correct Behaviour Example 2:
[1] Stage fact table has 2 records, with product code 1 and 2.
[2] Warehouse Product table has only product code 1.
[3] Source - Lookup - Destination in the data flow task. Error port on lookup is configured to go to RowCount.
[4] From source we read 2 records, and the package will run successfully. It will put one record into warehouse table and send the invalid record into RowCount.

Incorrect Behaviour Example 3:
[1] Stage fact table has 2 records, with product code 1 and 2.
[2] Warehouse Product table has only product code 1.
[3] Source - Lookup - Destination in the data flow task. Delete the configured error port from lookup.
[4] From source we read 2 records, and the package will run successfully. It will put one record into warehouse table and discard the other.

My understanding if the error port is NOT configured as shown in example 2, it should fail as shown in example 1.

Am I missing a point or is this suppose to be a correct behaviour or is it a bug?

Thanks

Sutha

View 1 Replies View Related

So Important Feature Has So Many Bugs!

Mar 20, 2008

I tried SQL mirroring in beta 1 , then it was gone, until SP1.

Now I can not setup mirror, it is fine if it is just hard to setup, but it seems it is full of bug! The mirroring has to be stable, since I am trying to mirror product db, what a diaster if something goes wrong.

I am trying two servers, both has 9.0.3042. First I tried to setup on my home machine, I VPN to my network, After I config security, I see two connection strings:

TCP://sql8.mydomain.netsql2005:5022
TCP://sql5.mydomain.netsql2005:5022

and I click start mirroring, then I got error - Alter failed due to invalid connection string. Hard to figure it out, right?

Then I tried the same thing on a server in the network, this time I get


TCP://sql8.mydomain.net:5022
TCP://sql5.mydomain.net:5022


and it doesn't show that error anymore, I am not sure why the connection should be like the latter format, but in anyway, how come SMO can not make it right?

then I get another error, SQL server doesn't exist or can not access, I search on the Internet, it seems that error could mean anything, include that the mirror db is not in restore mode.

But I did set the mirror db in restore mode and both sql5 and sql8 are under same domain, pysically close.

So what else I can check?

Any suggestion?
thanks

View 5 Replies View Related

How To Enable Mirroring Feature?

Mar 14, 2006

Hi

When I try to mirror a database, I get an error about disability of Mirroring . I m asked to set Trace Flag to 1400 at startup.

I dont know what r startup options and cant get help on it too.

Will someone let me know how can I enable mirroring in SQL server 2005

Regards

View 1 Replies View Related

Transactions &&amp; Checkpoints; Bug Or Feature?

Aug 23, 2007

Hi there,

I am trying here to get a situation going which includes both transactions and checkpoints to make sure that when something goes wrong I don't get a) data corruption (hence the transactions and b) I don't have to completely restart my 2hr run (hence the checkpoints). However I ran into something of which i cannot see whether it is intended behaviour or simply a bug.

Here's the deal:
I have a SSIS-package in which I enable checkpoints (CheckpointUsage: IfExists and SaveCheckpoints: True).
I have 2 Dataflows which follow eachother (the first dataflow prepares data for the second dataflow to edit).
Because I want to make sure that my data is secure I put a separate transaction on both the dataflows.

And here my problem arises. If I run my package now and the second dataflow breaks then my checkpoint sends me back to the first dataflow and my initial insert is executed again, which isn't meant to happen (I enabled checkpoints to prevent rerunning items). Somehow my checkpoint does not register the fact that the first dataflow has already been executed and it will execute that one again upon rerun.

However: if I put a random task between the 2 transacted dataflows (for example an empty script-task) it will work as intended. Just as long as this inserted item doesnt have a transaction; because if it does then the problem comes back
Now if I execute the package then my checkpoint shows that the first dataflow has already been executed and thus it will not execute this one again and it starts at the second dataflow upon re-execution.

I can work around it (with the empty script-task) but still I am wondering as to why this is happening. I am very interested to hear whether this is really a bug or if it is intended behaviour (and if it is then why is it intended?)

View 1 Replies View Related

Aggregator Transform Bug Or Feature

Jan 22, 2007

Hi,

I have two input columns (both DT_I4) in a column collection to a Aggregator transform. Now I am doing a group by to one and Count to another column.

To my surprise the output's column datatype is changed for Count Transform (DT_UI8) and I have to put extra Data Conversion Transfrom to get my DT_I4 datatype back.

Is this a bug or feature.

Dharmbir

View 1 Replies View Related

ImportExport Wizard Feature?

Jun 29, 2006

A new developer tried to import a data file using the ImportExport wizard. Unfortuantely, the file had several format errors and the process aborted after reading one bad line. (I imported it using a BIDS package with error handling. The file had 454 bad rows.)

Are there any options in the I/E Wizard to logskip errors but continue processing? After all, the I/E Wizard is designed for quick-and-dirty use and if it can't "handle" erroneous data "gracefully", it is not a very practical tool.

TIA,

Barkingdog







View 3 Replies View Related

SSIS Logging Feature

Mar 27, 2007

I am currently using the SSIS Logging feature in my SSIS package. Currently, I have defined a destination log file, and each time the package is executed the log file gets appended with that days log.



Im trying to figure out how best to keep the log file name static (it gets emailed out, and my email client looks for a particular log file name) yet include only todays log information and append the rest of the log information to a history log file or something like that.



Has anyone tried doing something similar, or have any ideas on how best this can be accomplished?

Thanks

View 23 Replies View Related

Help W/ Stored Procedure? - Full-text Search: Search Query Of Normalized Data

Mar 29, 2008

 Hi -  I'm short of SQL experience and hacking my way through creating a simple search feature for a personal project. I would be very grateful if anyone could help me out with writing a stored procedure. Problem: I have two tables with three columns indexed for full-text search. So far I have been able to successfully execute the following query returning matching row ids:  dbo.Search_Articles        @searchText varchar(150)        AS    SELECT ArticleID     FROM articles    WHERE CONTAINS(Description, @searchText) OR CONTAINS(Title, @searchText)    UNION    SELECT ArticleID     FROM article_pages    WHERE CONTAINS(Text, @searchText);        RETURN This returns the ArticleID for any articles or article_pages records where there is a text match. I ultimately need the stored procedure to return all columns from the articles table for matches and not just the StoryID. Seems like maybe I should try using some kind of JOIN on the result of the UNION above and the articles table? But I have so far been unable to figure out how to do this as I can't seem to declare a name for the result table of the UNION above. Perhaps there is another more eloquent solution? Thanks! Peter 

View 3 Replies View Related

SQL Search :: Full Text Search With Single Character Returns All Rows

Jul 21, 2015

Our clients want to be able to do full text search with a single letter. (Is the name Newton, Nathan, Nick?, Is the ID N1, N2...). Doing a single character full text search on a table work 25 out of 26 times. The letter that doesn't work is 'n'. the WHERE clause CONTAINS(full_text_field, ' "n*" ') returns all rows, even rows that have no 'n' in them anywhere. Adding a second letter after the "n" works as expected.

Here is an example

create table TestFullTextSearch (
Id int not null,
AllText nvarchar(400)
)
create unique index test_tfts on TestFullTextSearch(Id);
create fulltext catalog ftcat_tfts;

[Code] ....

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved