Viewing 15 posts - 1 through 15 (of 33 total)
Mike-I just realized the query is substring the first 7 characters of the SecondString. That string will be variable in length.
May 19, 2010 at 2:17 pm
Mike.. the parts are not fixed length.
Your first select is returning great results but the occasional '~' is on the end of some records.
B005739997706~
I added a replace on...
May 19, 2010 at 2:11 pm
I finally hit my search correctly... Jeff Moden already posted an amazingly simple solution!
http://www.sqlservercentral.com/Forums/FindPost452711.aspx
Thread closed....
May 19, 2010 at 2:06 pm
deepika.sharma-632099 (2/17/2008)
To allow the network transaction, you must enable MSDTC. To do this, follow these steps: a. Click Start, and then click Run....
September 23, 2009 at 6:51 am
Here is my final script:
UPDATE A
SET A.PropertyValue = 'False'
FROM UserPropertyData A
INNER JOIN
(
SELECT c.UserID FROM UserPropertyData C
INNER JOIN
UserList d
ON c.UserID = d.UserID
WHERE d.IsCompany = '1' and c.PropertyID = 7 and c.PropertyValue...
July 16, 2009 at 3:56 pm
haha.. it's like pulling teeth from me huh?? thank you so much for your patience Gkhadka! I greatly appreciate it.
July 16, 2009 at 3:29 pm
Gkhadka (7/16/2009)
CREATE TABLE #TEST ([UId] int, PId int, PV varchar(10) )
INSERT INTO #TEST VALUES
(33138, 9, 'True'),
(33138, 8, 'False'),
(33138, 5, 'False'),
(33138, 7, 'False'),
(33130, 9, 'True'),
(33130, 8, 'False'),
(33130, 5,...
July 16, 2009 at 3:11 pm
Well there are 166,443 rows that will need to be updated based on PropertyID equaling 7 and the PropertyValue equaling False.
July 16, 2009 at 2:32 pm
Rich96 (7/16/2009)
July 16, 2009 at 2:06 pm
Jeff & Christopher.. thanks so much for the feedback! Looks like I have some reading to do.
June 17, 2009 at 10:34 am
I'd be willing to learn anything new if you are willing to throw a script my way. There potentially could be 29 codes per record but I chose...
June 17, 2009 at 9:01 am
I've actually added more "codeN" columns (5 total).. here is my final script -
declare @t table(CIF varchar(7), ACCTNO numeric(16,0), SSNO numeric(9,0), CODE int)
insert into @t
SELECT LN.CIFNO, LN.ACCTNO, CF.CFSSNO, LNS.LNSICD
FROM DB2_ODBC.JHASVR.DATSRM.LNMAST...
June 17, 2009 at 8:44 am
-Jeff
Unfortunately I'm dealing with a 3rd party vendor that could not process the normalized table. In fact I've had to convert all my alphanumeric fields to ASCII..
June 17, 2009 at 7:04 am
Thanks so much.. that's going to do it for me!
June 16, 2009 at 2:44 pm
Viewing 15 posts - 1 through 15 (of 33 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy