Viewing 15 posts - 1 through 15 (of 53 total)
Hi,
As these are non - critical tables I can afford to delete the table and re-script it and then run my DTS packages to populate the table.
My concern was why...
February 4, 2009 at 2:25 am
Unfortunately the table has now been dropped!! So unable to test, hopefully this will work ok tomorrow!! If not, will indeed try this.
Table now re-created, just importing the data via...
February 3, 2009 at 5:25 am
Hi all,
OK, sorted it out!
You can do the following for INSERT / UPDATE & DELETE triggers to maintain identical data between two tables!
*** INSERT TRIGGER ***
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER...
July 25, 2008 at 7:34 am
If I do the following it works perfect on an INSERT.
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[TR_Insert_tblSymbolTrackingOld] ON [dbo].[tblSymbolTrackingOld]
FOR INSERT
AS
BEGIN
SET NOCOUNT ON;
SET IDENTITY_INSERT [dbname].[dbo].[tblSymbolTracking] ON;
DECLARE @symbol_id int;
DECLARE @company nvarchar(10);
DECLARE...
July 25, 2008 at 7:03 am
If I remove this portion:
SET IDENTITY_INSERT ON [dbo].[tblSymbolTracking] ON;
GO
I get a warning:
A explicit value for the identity column in table ... can only be specified whena column is used...
July 25, 2008 at 6:04 am
It worked perfect thank you all!
Great stuff...
Mike
🙂
April 10, 2008 at 7:46 am
I got you now, LOL!!
I have now modified my tblPage to include a keyword field ntext(), added the words in here also as well as maintaining a unique list of...
July 17, 2007 at 9:52 am
Hi Terry,
I have these triggers on by customer table based upon what people type uin to correctly format the data, it may help you!
INSERT
CREATE TRIGGER TR_Insert_tblAddress ON dbo.tblAddress
FOR INSERT
...
July 17, 2007 at 3:11 am
Hi Christoper,
No problem what so ever, I probably explained myself badly!
I have read Anders reply many times and still trying to get a picture of how it will work!!
Scenario
If...
July 17, 2007 at 3:03 am
In this example I have 1 x url http://www.anywebsite.com and on that page it has two words, 'hello' and 'goodbye'
If I do a SQL query for both words i.e....
July 16, 2007 at 7:06 am
Thanks tried that, still looks like a logical OR!
Beginning to think I'm going about this the wrong way!
Word table is approx 6000, occurrence is approx 35,000
July 16, 2007 at 6:23 am
Hi again,
I managed to get it to work and execute fine now, however, don't you just hate it when somebody says that!
exec usp_SimpleSearchEngine @xmlKeywords
July 16, 2007 at 5:29 am
May of sorted it !!!!
I changed to group by p.url order by occurrances DESC
will test
July 16, 2007 at 5:07 am
I had changed the alias name to p.url, except I get the following error, so I poped it back !
Msg 8120, Level 16, State 1, Procedure usp_SimpleSearchEngine, Line 21
Column...
July 16, 2007 at 4:41 am
Hi Christopher,
When I added your stored procedure, I get the following error:
Msg 4104, Level 16, State 1, Procedure usp_SimpleSearchEngine, Line 19
The multi-part identifier "tblPage.url" could not be bound.
July 16, 2007 at 4:31 am
Viewing 15 posts - 1 through 15 (of 53 total)