Viewing 15 posts - 646 through 660 (of 1,048 total)
Kingston Dhasian (3/22/2013)
kapil_kk (3/22/2013)
Kingston Dhasian (3/22/2013)
If the column(s) are...
March 22, 2013 at 12:24 pm
Kingston Dhasian (3/22/2013)
If the column(s) are not part of...
March 22, 2013 at 7:15 am
Kingston Dhasian (3/22/2013)
You will have to make VoucherNo a UNIQUE KEY in GV_Voucher table.Only then you will be able to create the desired FOREIGN KEY constraint.
Thanks,
I have implemented it
March 22, 2013 at 7:13 am
Raghavendra Mudugal (3/22/2013)
Thank you for posting, good one.Never digged so deep on this area, was interesting to learn.
+1 🙂
March 22, 2013 at 5:19 am
table structure of gv_voucher if anyone required:
CREATE TABLE [dbo].[GV_Voucher](
[VoucherId] [int] IDENTITY(1,1) NOT NULL,
[VoucherTypeId] [int] NOT NULL,
[VoucherNo] [varchar](20) NOT NULL,
[Denomination] [int] NOT NULL,
[ExpiryDate] [datetime] NULL,
[CreatedDate] [datetime] NULL,
[ModifyDate] [datetime] NULL,
[UserId] [varchar](10) NULL,
[VoucherStatusId]...
March 22, 2013 at 3:06 am
Lowell (3/20/2013)
kapil_kk (3/20/2013)
I have a scenario according I have to create a table struture. As I have never designed any table structure based on a scenario of SRS. Plz guide...
March 20, 2013 at 5:46 am
Jeff Moden (3/19/2013)
Sean Lange (3/19/2013)
Why not just look at the excellent code that Chris M posted earlier in one of the dozen or so threads on the same topic.http://www.sqlservercentral.com/Forums/Topic1432131-391-1.aspx#bm1432134
Why not,...
March 19, 2013 at 11:40 pm
Jeff Moden (3/17/2013)
kapil_kk (3/16/2013)
I have solved it..... forget to initialize the IsBookelet variable value ;-):w00t:
I tried your code and even with the correction you posted, it does nothing because many...
March 19, 2013 at 11:46 am
Jason-299789 (3/19/2013)
CASE @vouchertype1
WHEN 'Discount' THEN @amountvalue
...
March 19, 2013 at 7:02 am
ChrisM@Work (3/19/2013)
kapil_kk (3/19/2013)
ChrisM@Work (3/19/2013)
kapil_kk (3/18/2013)
...How to achieve this?plz help
Do you need help with the stub code I posted?
Thanks Chris, I have implemented that thing....
But I am not clear why you...
March 19, 2013 at 6:58 am
Jason-299789 (3/19/2013)
But I think you will find the problem is the SET @Vouchertype, if you add a Print @VoucherType...
March 19, 2013 at 6:29 am
Jason-299789 (3/19/2013)
SET @vouchertype = LTRIM(RIGHT(@vouchertype,LEN(@vouchertype)-CHARINDEX(' ',@vouchertype,1)));
As you seem to be taking Right N characters, in @vouchertype, and over Writing it so...
March 19, 2013 at 6:04 am
Viewing 15 posts - 646 through 660 (of 1,048 total)