Viewing 11 posts - 16 through 26 (of 26 total)
Daryl Smith (10/25/2007)
IDENTITY_INSERT can only be on for one table at a time. You are turning it on but never turning it off.
That's obvious.
I'm trying to write a generic...
October 25, 2007 at 2:45 pm
Instead of simply removing the (un)original article and breaking Internet's continuity, could you post links to the articles it was plagiarizing?
October 18, 2007 at 1:45 pm
That means you want to be in the senior management!
July 26, 2007 at 12:54 pm
Yelena,
What's the significance of "4" in the title? Does that that mean "a low peon below Database Administrators 1-3"?
July 26, 2007 at 12:37 pm
Sergiy,
I disagree. Business rules should not dictate how you name database objects.
July 24, 2007 at 4:14 pm
Michael,
Do you really like typing all these underscores? Couldn't you get away with camel case? To me, tOrderItem, OrderItemID, PK_tOrderItem look much more readable.
July 24, 2007 at 3:32 pm
Yes, the empty files will cause multiple GOs. But these don't hurt!
July 20, 2007 at 9:49 pm
We keep every object in a separate file, as created originally by "Generate script". So for each table I have 4 files: .tab with field definition, .kci for primary key,...
July 20, 2007 at 7:04 am
it was <tablename>ID , but the browser ate the tablename in angle brackets
July 19, 2007 at 11:00 pm
Order(ID,CustomerID,...)
LineItem(ID,OrderID,ProductID,Quantity,...)
View: Order with LineItemCount:
SELECT o.ID, o.CustomerID, ..., Count(l.ID) AS LineItemCount
FROM Order o INNER JOIN LineItem l ON o.ID=l.OrderID
GROUP BY o.ID, o.CustomerID, ...
This way the programmer doesn't have to calculate the...
July 18, 2007 at 7:12 am
Usually when people speak about master-child relationship, they mean one-to-many. For example, one purchase order contains many line items. Obviously, in this case you couldn't use the PONumber as the...
July 18, 2007 at 7:06 am
Viewing 11 posts - 16 through 26 (of 26 total)