Viewing 12 posts - 16 through 27 (of 27 total)
Thanks but the bi-directional merge is no longer a business requirement.
Have eventually discovered that by clicking "default article properties", the option "keep the existing table unchanged" is the option I...
May 19, 2010 at 1:39 am
Thanks Steve,
Do you think I would be better with standard auditing?
P
December 1, 2008 at 11:24 am
Do you need to record changes, i.e. store old and new customer address?
Think about what type of reports stakeholders will require, this can aid in the design of the...
March 15, 2007 at 8:38 am
Instr is not a function in SQL, you need to use Padindex.
March 2, 2007 at 5:26 am
Try this in your test database first
UPDATE
[table1]
SET
[field1] =
CASE
WHEN PATINDEX ('%.%', [field1]) > 1 THEN SUBSTRING ([field1], PATINDEX ('%.%', [field1]) - len([field1]), len([field1]))
ELSE [field1]
END
March 2, 2007 at 2:51 am
All my "string" fields are VARCHAR so I'll remove that charindex. Performance has been bearable 15,000 scanned in 10 seconds.
December 21, 2006 at 7:32 am
Hi John,
Noticed you'vre removed the "Like" and replaced with "Charindex" is this for performance?
Thanks
David
PS - might even make the undesired character a parameter, in case something else like this occurs...
December 21, 2006 at 7:10 am
Hi John,
Cool thanks for that. Like your way because I want to remove the offending character, so I could change that easily to an update.
I found the data by
1. Scripting the table...
December 21, 2006 at 5:19 am
Have seen this myself when the user's default database has been deleted/renamed. Change the default to Master - give it another go.
Cheers
November 28, 2006 at 7:21 am
Not the cleanest but it works...
__________________________
CREATE PROCEDURE [usp_ExportXML] AS
DECLARE @TableName varchar(50)
DECLARE @BCPSTRING varchar (255)
DECLARE tableList CURSOR FOR
select TableName from TableUpdateLog where Updated = 1
OPEN tableList
FETCH NEXT FROM tableList
INTO @TableName
WHILE @@FETCH_STATUS...
November 22, 2006 at 5:33 am
Lookup REPLACE in BOL, essentially it's
SELECT
[field 1],
REPLACE ([yourfield here], '.', '')
FROM
table
November 20, 2006 at 2:23 am
Does the 2nd point mean you can't ever connect? Have you tried adding a new server registration, if this fails then you're not going to be able to replicate when...
August 22, 2006 at 5:17 am
Viewing 12 posts - 16 through 27 (of 27 total)