Viewing 15 posts - 3,841 through 3,855 (of 4,087 total)
You may have duplicates in your SELECT statement. Adding a DISTINCT clause may resolve this.
Drew
October 12, 2010 at 10:27 am
SSSolice (10/11/2010)
October 11, 2010 at 3:09 pm
SSSolice (10/11/2010)
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...
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...
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...
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...
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...
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.)...
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...
October 1, 2010 at 8:41 am
Jeff Moden (9/30/2010)
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
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
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...
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...
September 30, 2010 at 8:32 am
Viewing 15 posts - 3,841 through 3,855 (of 4,087 total)