Viewing 15 posts - 61 through 75 (of 224 total)
Burned! I don't have a SS 2012 instance so I ran some tests on 2014 and hoped the answer would be the same. I got the correct answer for 2014,...
August 27, 2015 at 12:03 pm
The foreign key is on the column InventoryInDetailID.
ALTER TABLE [dbo].[PharmInvOutItemPackageReceipts] WITH CHECK ADD CONSTRAINT [FK_PharmInvOutItemPackageReceipts_PharmInvInItemPackages] FOREIGN KEY([InventoryInDetailID])
REFERENCES [dbo].[PharmInvInItemPackages] ([InventoryInDetailID])
You are joining in the delete on the column InvOutItemLineID.
DELETE...
August 26, 2015 at 10:03 am
OK, I answered my own question. My question is similar to this one: http://stackoverflow.com/questions/1195324/using-the-result-of-the-sql-messages-pane
The client gets the message but T-SQL does not. Any decent unit test framework for SQL should...
August 6, 2015 at 1:36 pm
I used the second solution. With the proper names, it even documents the query nicely. The bit values are allowed or not allowed values.
So, I used this:
DECLARE @allowed BIT =...
August 6, 2015 at 1:15 pm
Lynn Pettis (7/21/2015)
Stephanie Giovannini (7/21/2015)
Sean Lange (7/21/2015)
July 21, 2015 at 3:14 pm
SQLRNNR (7/21/2015)
July 21, 2015 at 2:58 pm
Sean Lange (7/21/2015)
July 21, 2015 at 2:54 pm
I agree with Steve, though it's certainly difficult today to get a foot in the door without the piece of paper. That was not always true.
I have a bachelor's degree,...
July 6, 2015 at 10:39 am
SET XACT_ABORT ON
Add that line before you begin the transaction. With that setting, you may not even need a try/catch. The transaction will roll back on error.
May 28, 2015 at 2:30 pm
Nicholas Cain (4/17/2009)
It's 3pm on a Friday, your production OLTP environment is down, every hour down costs the company one million dollars. People are phoning...
May 15, 2015 at 9:20 am
Real interview question that I asked during a tech screen for an entry-level programmer position:
Q: Where do you see yourself in 5 years?
A: CEO!
Background: This young fellow, an American by...
May 15, 2015 at 9:09 am
CREATE TABLE test_numeric_parent (
thekey NUMERIC(10,0) NOT NULL PRIMARY KEY
);
CREATE TABLE test_decimal_parent (
thekey DECIMAL(10,0) NOT NULL PRIMARY KEY
);
CREATE TABLE test_numeric_child (
thekey NUMERIC(10,0) NOT NULL,
x INT NOT NULL PRIMARY KEY
);
CREATE TABLE test_decimal_child...
May 6, 2015 at 7:54 am
Orlando Colamatteo (5/5/2015)
May 6, 2015 at 7:34 am
While decimal and numeric are functionally equivalent, they are not the same type. There are six types in the question.
The system_type_id for decimal and numeric is not the same. The...
May 5, 2015 at 9:21 am
Grant Fritchey (4/24/2015)
But, if the clustered index is created as you have it above, since it's not marked as UNIQUE, it's going to add an internal column to make the...
April 24, 2015 at 12:24 pm
Viewing 15 posts - 61 through 75 (of 224 total)