Viewing 15 posts - 3,496 through 3,510 (of 6,486 total)
I would add a placeholder in the recipe table for the "cloned" ID while you're doing this (if you do this a lot - I'd actually leave it in.)
Once you...
April 29, 2008 at 8:32 am
Then either your column # 2 or column # 3 is returning something that can't be cast as a float. Meaning - it's not a number.
So take the CAST...
April 29, 2008 at 8:11 am
There's a basic flaw in your joining characteristics. You can't limit by zipcode, then JOIN by zipcode, and expect to get zipcodes other than the ones you join on....
April 29, 2008 at 8:05 am
You uncommented the "beginning" of the NULLIF, but not the end:
SELECT raw_payload,
LEFT(raw_payload+'+++', CHARINDEX('+', raw_payload+'+++', 1)-1),
...
April 29, 2008 at 7:44 am
Michael Earl (4/29/2008)
Per-processor licensing seems a lot for you....
April 29, 2008 at 7:39 am
If you want to just delete those rows - then
DELETE
FROM raw_data[raw_payload]
Where raw_payload not like '%+%+%'
April 29, 2008 at 6:24 am
torpkev (4/28/2008)
Thanks for the input Matt, I'm going to paste some more questions about your answer in bold to save retyping..
Following your lead - comments inline
Matt Miller (4/28/2008)
April 28, 2008 at 2:08 pm
n1pcman (4/25/2008)
April 28, 2008 at 12:45 pm
Warren Peace (4/28/2008)
DECLARE @DBNAME varchar(50)
DECLARE @MyCommand varchar(1000)
SET @DBNAME = '_RESTORERECOVER'
PRINT @DBNAME
SET @MyCommand = 'USE [' + @DBNAME + ']'
EXECUTE(@MyCommand)
But the DB never switched to the _RESTORERECOVER...
April 28, 2008 at 12:28 pm
Well - the quick answer to your question is - it's 31GB now because at some point in the past, it needed to be that size. From possibly...
April 28, 2008 at 12:04 pm
sholliday (4/28/2008)
The forum isn't allowing me to put in xml tagged code into the post.So I posted the tsql test-it code here:
http://www.ipass.net/sloan/code/OPENXML_vs_SQL2005Syntax_Test.txt
..
If you want to post the XML - run...
April 28, 2008 at 11:50 am
GSquared (4/28/2008)
Matt Miller (4/28/2008)
GSquared (4/28/2008)
April 28, 2008 at 11:43 am
GSquared (4/28/2008)
April 28, 2008 at 10:57 am
Mark Green (4/28/2008)
,'2006','2007').... what is that bit for?
That's the end of the replace statement. You seemed to be trying to "increment" the year in your previous attempts. If...
April 28, 2008 at 10:47 am
Hmm...I must be missing something, cause CASE should handle that... That being said - assuming you're starting out with an 8-character string, then:
select replace(left([col032],4)+'-'+substring([col032],5,2)+'-'+substring([col032],7,2)+' 00:00:00.00.000','2006','2007')
would create a CHARACTER...
April 28, 2008 at 10:38 am
Viewing 15 posts - 3,496 through 3,510 (of 6,486 total)