Viewing 15 posts - 3,841 through 3,855 (of 4,085 total)
SSSolice (10/11/2010)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 11, 2010 at 12:53 pm
I put the UNION within a CTE and then used SELECT @var = expression instead of SET, because it appears that you can't use a CTE with SET.
DECLARE @CurrencyRateHistoric...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 11, 2010 at 11:34 am
It would help if you had posted the code where you tried to assign the variable and the error that you received. It also helps if you post DDL...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 11, 2010 at 7:44 am
You're trying to insert new rows when you should be updating existing rows.
UPDATE A
SET B = B + ' Large', C = C + ' Large'
WHERE A LIKE '%LG'
I assume...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 7, 2010 at 12:46 pm
Assuming that your dispLookup table changes relatively infrequently, it might be best to create a trigger on dispLookup to dynamically create/alter a view with the user-friendly column names. This...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 7, 2010 at 11:00 am
You can save a grid as CSV or you can select the entire grid and paste it into Excel. There is a setting in options that will copy the...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 5, 2010 at 6:26 am
I agree with Bhuvnesh that your join on B3 and B2 is probably what is causing the problem. (Of course this would be easier to test with sample data.)...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 4, 2010 at 11:19 am
Lowell (10/1/2010)
update mytable
set myfield= replace(myfield,'oldtext','newtext')
WHERE mytable.myfield NOT LIKE '%somestring that appears in newtext%'
It's better to use
update...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 1, 2010 at 8:41 am
Jeff Moden (9/30/2010)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 1, 2010 at 8:31 am
laddu4700 (9/30/2010)
Table2 name is StatusReason
The foreign key should be referencing Status, not StatusReason.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 1, 2010 at 8:13 am
Your FOREIGN KEY is referencing a table called Table2. You probably need to change it to reference the Status table.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 30, 2010 at 2:25 pm
A FOREIGN KEY constraint specifies that the value(s) for some column(s) must uniquely identify one row in the referenced table. You have a foreign key constraint "IUser1" on your...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 30, 2010 at 11:39 am
Lynn Pettis (9/29/2010)
Remove the comma leaving the space and change the STUFF parameters 1,2 to 1,1 and see what happens.
Actually, if you remove the comma, you can remove the STUFF...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 30, 2010 at 8:32 am
WayneS (9/29/2010)
touchmeknot (9/29/2010)
Shawn, This might sound silly. how do you paste the code like that, as in I see a separate box there 🙂 ?
When you're working in the editor,...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 30, 2010 at 7:14 am
pankaj.kuchaliya (9/22/2010)
when the trigger is fire then it display the "The transaction ended in the trigger. The batch has been aborted".Please help me.
Everything within a trigger--including calls to stored procs...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 23, 2010 at 10:58 am
Viewing 15 posts - 3,841 through 3,855 (of 4,085 total)