Viewing 15 posts - 9,886 through 9,900 (of 13,461 total)
when you resotre, or when you attach, you have the option to change the database name; it would fail of course if there is already a database with that name;
if...
March 3, 2010 at 11:25 am
definitely not normal. foreign key relationships are a best practice.
I've encountered this before, and it seems the companies think that their schema would reveal their business processes ro something, so...
March 3, 2010 at 9:58 am
here's a second table with an instead of trigger:
CREATE TABLE EXAMPLE2(KEYID BIGINT REFERENCES MASTERKEYS(KEYID),
...
March 3, 2010 at 9:04 am
i got curious on this and built a prototype.
man what a pain to have to code a zillion triggers, just to have a master id someplace.
i could
I ended...
March 3, 2010 at 8:48 am
to actually implement this, I think each trigger would have to insert into a mastertable with a bigint identity() column, and use an OUTPUT clause for the collection of values,...
March 3, 2010 at 8:11 am
just to clarify the whole Oracle thing, Oracle doesn't have a native identity() function like SQL does; instead, you use a SEQUENCE and a TRIGGER to duplicate the functionality, and...
March 3, 2010 at 8:03 am
yeah pseudo code is bad. your placeholder proc implied something completely different.
it is absolutely not possible to call a procedure with an update statement.
you can call a function, which returns...
March 3, 2010 at 5:22 am
ok, here's some working code, witht eh update you seem to need; but here's the rub:
this is what it does:
for each matching record, if today happens to be sunday,...
March 3, 2010 at 5:05 am
ok great that helps a lot...i can do the table and the joins.
just need one more piece of information.
what do you want to do to RESULTDATE? i thought you either...
March 3, 2010 at 4:57 am
the problem is the @in_name.
since you are executing a string you put together, it is possible that instead of the expected customer name being 'dba-vb'
i could pass ''';DELETE FROM CUSTOMERS;DELETE...
March 3, 2010 at 4:35 am
if you have two logical steps, you'll need to update statements, each witha WHERE statement to control which rows get updated.
what does the stored procedure do?
your pseudo code doesn't have...
March 3, 2010 at 4:28 am
with a CASE statement, you can't. case statements return data or help filter a WHERE statement.
a case helps goes something like this:
SELECT
CASE
WHEN status=1
...
March 3, 2010 at 4:11 am
tfader is there any common themes applied to the parent-child fields, even when no FK is created?
for example, if the following are all true, i have a script i call...
March 2, 2010 at 6:52 pm
same issue that i saw in the other thread i think;
the mix of old vs new style joins is causing a cross join and increasing the rows processed:
select distinct a.empnumber,...
March 2, 2010 at 12:01 pm
...from Vwrevenue as a inner join #revdates as b on a.empnumber = b.empnumber, #daterange
i think because you inner join one table, and then use a comma to join the old...
March 2, 2010 at 11:43 am
Viewing 15 posts - 9,886 through 9,900 (of 13,461 total)