Viewing 15 posts - 8,206 through 8,220 (of 13,460 total)
the pseudo code doesn't cut it for this one, i think. We'd need to see the actual statement you are executing, that is raising the error, so we can really...
January 20, 2011 at 1:59 pm
Horrible example, Celko; all it proves is the row used to to update the parent table is not guaranteed unless you make sure the joins form a 1:1; That's SQL...
January 13, 2011 at 11:29 am
adding the same WHERE statement for the ORDERPK to each of the CTE's might speed things up also; you be filtering to jsut the rows for the order in...
January 13, 2011 at 7:42 am
you've got a few things killing you, without the actual execution plan , these are jsut guesses:
the WHERE statement on ORDERS is not SARG-able.
instead of doing WHERE DATEADD(dd, 0, DATEDIFF(dd,...
January 13, 2011 at 7:39 am
the beautiful part about the "proprietary" update format is the ease in which you can test to see which records are matching/ would be affected.
simply inserting "--SELECT *", and highlighting...
January 12, 2011 at 4:20 pm
teh same escape method: two single quotes in a row:
For instance
Update table1
set title = 'Daddy''s Daycare'
January 12, 2011 at 11:20 am
something like this works...the important part is that two single quotes in a row is the escape sequence, so it can be contained within single quotes:
select * from yourtable where...
January 12, 2011 at 10:59 am
easy fix: once you aliased #example, you have to use that alias everywhere:
update ex -- the table that will be updated's alias.
set Status = 1
from...
January 12, 2011 at 10:20 am
yeah, it doesn't add buttons to the titlebar of a form; it just sintercepts specific keystroke command sand calls the windows API's to fiddle with the widnow size.
i found that...
January 12, 2011 at 10:18 am
you got me curious with this, and i found SecondShell
clicking ALT and mousedrag makes any window stretch in the direction of the alt+drag, and there are programmable hotkey sequences...
January 12, 2011 at 8:37 am
david.alcock (1/11/2011)
Yes it may be painful...
January 11, 2011 at 2:43 pm
i think if you create a role, you can GRANT EXECUTE TO YOURROLE, but that grants execute on all functions as well.
CREATE ROLE [ReallyReadOnly]
GRANT EXECUTE TO...
January 11, 2011 at 1:55 pm
nope, it's free distributable:
The Report Viewer Control is a free control provided by Microsoft to display reports on a web page or windows form. To add the Report Viewer...
January 11, 2011 at 11:58 am
well, my two cents:
I have no problem using it for production or anywhere else. It exists in 2005,2008/R2 and Denali/V11 as well... so anything I incorporate using that would...
January 11, 2011 at 11:11 am
your data in a format anyone can use in SSMS to look at the problem properly:
SELECT '1' AS VehicleID,'Honda' AS CarName,'Smith' AS VendorName,'20' AS Quantity,'25000' AS Price UNION ALL
SELECT '1','Honda','Ross','30','20000'...
January 11, 2011 at 6:53 am
Viewing 15 posts - 8,206 through 8,220 (of 13,460 total)