Viewing 15 posts - 21,001 through 21,015 (of 22,184 total)
I'm not sure, but it sounds like you might be talking about execution plans? These show what the optimizer and query engine will do with the code that you wrote....
February 20, 2008 at 5:43 am
Yeah, it only takes one row.
Using my code sample
UPDATE [ATI].[dbo].[IV00101]
SET ITEMDESC = x.ITEMDESC
,ITMSHNAM = x.ITMSHNAM....
FROM [AMCHR].[dbo].[IV00101] AS x
WHERE x.[ITEMNMBR]=[ATI].[dbo].[IV00101].[ITEMNMBR]
AND x.ITEMDESC IS NOT NULL
February 19, 2008 at 1:26 pm
fred (2/19/2008)
Msg 515, Level 16, State 2, Line 1
Cannot insert the value NULL into column...
February 19, 2008 at 1:14 pm
I would not have more than one project for a given database. You should be able to manage a single database all the way from Dev through to Production from...
February 19, 2008 at 12:33 pm
Yeah, I wouldn't create two data structures for the same data. I'd store the "messy" data right along side the "approved" data but then simply have a clean-up process that...
February 19, 2008 at 8:14 am
I've got a core, basic, set of counters that I suggest using here. They barely scratch the surface, but they ought to get you started.
February 19, 2008 at 5:47 am
If you do create a common set of code that you want to access from other databases, I wouldn't put it in master or msdb. You never know when a...
February 19, 2008 at 5:44 am
Also, not related to the issue you're describing, but worth mentioning, you're performing a non-ansi join between the two temp tables at the end of your query there.
FROM temp#1 x,temp#3...
February 19, 2008 at 5:40 am
If I understand the question correctly, no I wouldn't duplicate the structures & move the data around. Instead, store the member data in whatever format you had planned. Inlcude a...
February 19, 2008 at 5:31 am
The sample query you're showing looks correct. Verify the data in the original columns. Double-check your actual query (I'm assuming you're posting a sample and you have a real query...
February 19, 2008 at 5:15 am
If you use the IF EXISTS clause, it will only fire the code within the BEGIN...END when it finds the existance of a row in the SELECT statement. I'm pretty...
February 18, 2008 at 1:27 pm
Actually that's only going to delete individual rows. The EXISTS followed by a full DELETE with no WHERE clause is probably what he's looking for.
February 18, 2008 at 1:12 pm
Do you mean you need to delete all records where the value = 'Checked' or if any value = 'Checked' you're going to delete all values?
If the former, simply make...
February 18, 2008 at 12:20 pm
In general terms, it doesn't sound bad, but it all comes down to the code, the indexes and the code, and if I didn't mention it, the code. How you...
February 18, 2008 at 6:44 am
Yeah, what he says.
I know you're just learning this stuff. When you get an error, look it up in the Books Online. It'll mostly tell you what's going on. In...
February 15, 2008 at 8:06 am
Viewing 15 posts - 21,001 through 21,015 (of 22,184 total)