Viewing 15 posts - 12,766 through 12,780 (of 39,817 total)
majorbloodnock (1/15/2013)
GSquared (1/15/2013)
The problem with the part I added emphasis to, is that quite often a company needs to hire a DBA because they don't have anyone who knows anything...
January 15, 2013 at 9:36 am
you may need to qualify as I mentioned:
USE [TrackIT]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[trUpdateBulkPurchases]
ON [dbo].[tblTransactions]
AFTER UPDATE
AS
BEGIN
UPDATE tblBulkPurchases
SET
PO_Number = i.PO_Number,
Quantity = i.Quantity,
Unit_Price = i.Unit_Price,
Software_Description = i.Software_Description,
PO_Date = i.PO_Date,
PurchaseCostCenter = i.PurchaseCostCenter,
HeatTicketNumber...
January 14, 2013 at 3:00 pm
Do you have an asterisk in your code? I thought you were using the to mark the place you were writing about.
No asterisks needed in your code.
January 14, 2013 at 2:32 pm
What's the error? If it's an ambiguous column, you need to specify from which table (The base one or INSERTED) you are specifying in the WHERE clause.
January 14, 2013 at 1:39 pm
Sorry, wasn't reading well. The problem is that you have a malformed UPDATE statement.
CREATE TRIGGER [dbo].[trUpdateBulkPurchases]
ON [dbo].[tblTransactions]
AFTER UPDATE
AS
BEGIN
UPDATE tblBulkPurchases
set PO_Number = i.PO_Number
, Quantity...
January 14, 2013 at 12:02 pm
No effect. The extensions have no bearing on the files' purpose or use. They are set to mdf/ndf/ldf only for convention.
January 14, 2013 at 11:59 am
I had a line on a job in Kabul. 35% "danger" pay. Not sure it's worth it, though that car looks nice.
January 14, 2013 at 11:34 am
That should work.
I assume when you attach, you are attaching the MDF/LDF and new NDF at the same time.
January 14, 2013 at 11:30 am
INSERTED.___ is fine.
I'd do this, but your way works:
UPDATE tblBulkPurchases
(tblBulkPurchases.PO_Number,
tblBulkPurchases.Quantity,
tblBulkPurchases.Transaction_Number,
tblBulkPurchases.Quantity_Remaining,
tblBulkPurchases.Unit_Price,
tblBulkPurchases.Software_Description,
tblBulkPurchases.PO_Date,
tblBulkPurchases.PurchaseCostCenter,
tblBulkPurchases.HeatTicketNumber,
tblBulkPurchases.PurchaseAccount,
tblBulkPurchases.Transaction_Date,
tblBulkPurchases.Transaction_Type,
tblBulkPurchases.SoftwareShortName)
SELECT
i.PO_Number,
i.Quantity,
i.Transaction_Number,
i.Quantity,
...
FROM INSERTED i
inner join tblBulkPurchases
on tblBulkPurchases.PO = i.po
WHERE Transaction_Type = 'Bulk Purchase'
January 14, 2013 at 11:28 am
Good to know. I misread and was thinking this affected all Java installations. Let's hope that's true and there isn't a bit hole in the desktop installations.
January 14, 2013 at 8:47 am
Brandie Tarvin (1/11/2013)
Steve Jones - SSC Editor (1/11/2013)
January 11, 2013 at 9:25 am
Anything is good. Real world stuff preferred, stories of what has worked for you. Doesn't have to be long. Looking for 2-5 pages, including screenshots and code. If it's longer,...
January 11, 2013 at 9:23 am
krowley (1/11/2013)
Did the author ever write any followup articles? If so could you point me to them? This tutorial was originally published in January of 2011.
Not yet. Feel free to...
January 11, 2013 at 9:20 am
BTW, my article queue is getting a little low.
If any of you experts wants to write about something you're doing, I'd love it.
Brandi, if you'd like to write on ACID...
January 11, 2013 at 9:09 am
Viewing 15 posts - 12,766 through 12,780 (of 39,817 total)