Viewing 15 posts - 166 through 180 (of 193 total)
Try this
SELECT
EMPLOYEE_ID
, LAST_NAME
, SALARY
, JOB_ID
, COMMISSION_PCT
...
January 8, 2015 at 3:58 am
ScottPletcher (12/12/2014)
Emil Bialobrzeski (12/12/2014)
ScottPletcher (12/11/2014)
SELECT CASE
WHEN @optional_letter = ' ' AND EXISTS(SELECT 1 FROM dbo.Test WHERE letter...
December 12, 2014 at 8:57 am
This should do the trick. It validates the Optional letter so it can be either NULL or a letter, checks all the conditions from the first post and makes sure...
December 12, 2014 at 6:59 am
ScottPletcher (12/11/2014)
SELECT CASE
WHEN @optional_letter = ' ' AND EXISTS(SELECT 1 FROM dbo.Test WHERE letter = @letter AND...
December 12, 2014 at 1:43 am
Yes the parameters are from the incoming record while you do an insert
ALTER TABLE Test ADD CONSTRAINT CK_Test CHECK (dbo.CKTest(ID, Letter, Number, OptionalLetter) = 0)
EDIT:
Use the code from my...
December 11, 2014 at 8:09 am
Don't be to harsh on me i just done it quickly while doing my other work. In the example below i'm assuming that if the optional letter does not exist...
December 11, 2014 at 7:50 am
Hi
Check constraint with user defined function should work as well
December 11, 2014 at 7:32 am
i saw lots of people on social sites having problems with:
1+1+1+1+1+1+1+1+1+1+1+1x0+1 = ?
most of the answers was 1. So saying Simple may apply differently to others :hehe:
December 10, 2014 at 3:38 am
butcherking13 (12/9/2014)
...developing stored procedures to automate several reports...
Don't think there is any need to give someone sysadmin just to automate few reports in SSIS.
Go with what Phil is saying.
December 9, 2014 at 9:06 am
In the previous company i worked for we had a team of database developers and a team of software developers, both groups were assigned to a sysadmin role... Once in...
December 9, 2014 at 8:46 am
Without reading their terms and conditions I would say give it a go, if they have some sort of security in place that only mean you won't be able to...
December 9, 2014 at 8:31 am
cbrammer1219 (12/9/2014)
December 9, 2014 at 7:54 am
Combination of this
http://msdn.microsoft.com/en-us/library/ms188383.aspx
and this
http://msdn.microsoft.com/en-us/library/ms186819.aspx
Should do the trick
December 8, 2014 at 4:12 am
Hi,
The best thing you can provide is the create script for the table itself (including indexes) and possibly stored procedure that you have problems with. Maybe triggers if any.
December 8, 2014 at 1:56 am
Jeff Moden (12/3/2014)
IO got lucky... or maybe my Yabingooglewho has gotten a lot better and I found it on the first shot.
Hi Jeff,
In my first post on this topic i...
December 4, 2014 at 1:09 am
Viewing 15 posts - 166 through 180 (of 193 total)