Viewing 15 posts - 12,226 through 12,240 (of 13,465 total)
SET @execSQL = 'DECLARE @BeforeValue sql_variant, @AfterValue sql_variant '+
'SELECT @BeforeValue = D.['+@ColumnName+'], '+
...
November 6, 2007 at 10:30 am
Jeff Moden (11/6/2007)
Kewl! Anyone interested in a million row duration test on this? 😀 I'd need some help 'cause I don't have 2k5...
Jeff I feel really bad...
November 6, 2007 at 9:33 am
unless you have the database recovery Model property set to Full instead of Simple, there is no way to determine this without adding features yourself.
if the database is set to...
November 5, 2007 at 6:12 pm
ok how about this:
get all the tables in FK hierarchy order; truncate tables with no FK, and for teh rest of the tables that feature foreign keys delete ...
November 5, 2007 at 5:01 pm
it's just an expansion on the first...you have to join Contacts a second time...to do that, you must ALIAS at least one of the contact table references:
SELECT Stage3.Stage3ld, Issues.IssueDesc, C1.FirstName...
November 5, 2007 at 10:47 am
something like this will work, if you still need to send one email for each @taker AND each Taker's commisionless order;
if you want to roll them you'd need to group...
November 5, 2007 at 10:43 am
if you have a foreign key reference, it's good practice to use the actual column name from the parent table, instead of an alias.
you never mentioned what the relationships are,...
November 5, 2007 at 10:02 am
download SQLRecon from sqlRecon.com
it will survey your network and report a LOT of valuable information about all the servers it finds;
chances are it will find development servers you didn't know...
November 5, 2007 at 9:54 am
i should have explained...that is not for a trigger!
run that in QA...it should find the sample record you said you created.
if it works, then you can throw away the trigger,...
November 5, 2007 at 9:44 am
ok try this: i think the sql below will find everything that has a zero commission, all in one shot.
fromt here, you could construct a single email, or a bunch...
November 5, 2007 at 9:15 am
ok here's my idea:
there's a statement that gets this value:
SELECT @Commission = min(commission_cost)
FROM oe_line
WHERE order_no = @OrderNo
i'm thinking that the lines here get inserted into the table oe_line AFTER the...
November 5, 2007 at 9:00 am
this code with the minor changes required passes syntax for SQL2005: i think the issue was there was select min(select somevalue) instead of select min(somevalue)
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
CREATE TRIGGER...
November 5, 2007 at 7:57 am
by default SQL server treats anything between single quotes as a varchar; it' doesn't try to determine whether the varchar may also be a date...that's the behavior you are seeing.
so...
November 5, 2007 at 5:12 am
ADODB is part of the microsoft Data Access Components (MDAC)
here's more info and the download:
Download details: MDAC 2.8Microsoft Data Access Components (MDAC) 2.8 contains core Data Access components such as...
November 5, 2007 at 5:02 am
syntax wise, there was an extra single quote near SessionComplete, and the @startDate/E@Enddate were not declared inte snippet you posted. no problem there.
the statement you pasted only references one table,...
November 2, 2007 at 7:15 pm
Viewing 15 posts - 12,226 through 12,240 (of 13,465 total)