Viewing 15 posts - 556 through 570 (of 1,048 total)
Kingston Dhasian (4/26/2013)
You will have to make TransactionID a UNIQUE KEY in GV_Voucher to create this...
April 26, 2013 at 3:08 am
Kingston Dhasian (4/26/2013)
If the answer is No, then you can fetch it based on VoucherNo's else you will need...
April 26, 2013 at 3:07 am
kmundt (4/25/2013)
Msg 8120, Level 16, State 1, Line 1
Column 'soh_shipmentnbrdata.Shiplist_Status' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY...
April 25, 2013 at 7:55 am
kmundt (4/25/2013)
April 25, 2013 at 7:34 am
IgorMi (4/25/2013)
Why is your ROWTERMINATOR = '', shouldn't it be "back slash n"?
my ROWTERMINATOR is ''
April 25, 2013 at 7:24 am
IgorMi (4/25/2013)
HiTry to do that with KEEPIDENTITY option in the WITH() section of the BULK command. See this http://msdn.microsoft.com/en-us/library/ms186335.aspx
Regards,
IgorMi
I tried that but still error was coming
April 25, 2013 at 7:19 am
ChrisM@Work (4/25/2013)
chalam87 (4/25/2013)
hi,before finding sub string you should trim the data otherwise it takes empty data also.
select id,SUBSTRING(Reverse(LTRIM(RTRIM(name))),3,1) from emp
;WITH Sampledata (id, name) AS (
SELECT 1 , 'srinivas '...
April 25, 2013 at 4:59 am
L' Eomot Inversé (4/25/2013)
Triggers that work only on single rows are a common problem, so anything that points out the pitfalls and warns people not to write...
April 25, 2013 at 3:54 am
DECLARE @string varchar(10) = 'aapail'
SELECT SUBSTRING(REVERSE(@string),3,1)
April 25, 2013 at 3:19 am
Hi,
we are not clear with your requirements..
can you plz give us more details?
April 25, 2013 at 12:02 am
Good question Hugo 🙂
This time I am able to grab the points :-P....
Last time I forgot to see the Go batch separator and comments and clicked on wrong one!!!
Thanks!!
April 24, 2013 at 11:28 pm
aaron.reese (4/24/2013)
please share
Declare @STNno varchar(10)
EXEC dbo.GetSTNValue @storecode , 0 ,@stnno OUT
INSERT INTO GV_StoreAllocation (StoreId, STNNo, FirstVoucherNo, LastVoucherNo, Quantity)
SELECT
DISTINCT @storecode,
@STNno,
@FirstVoucherID,
@lastvoucherID,
@quantity
FROM GV_Voucher gv
JOIN GV_VoucherStatus gvs ON gv.VoucherStatusId = gvs.VoucherStatusId
WHERE gvs.VoucherStatus...
April 24, 2013 at 6:59 am
nenad-zivkovic (4/24/2013)
kapil_kk (4/23/2013)
I was not aware of the fact that after making
SET IDENTITY_INSERT dbo.Test OFF;
identity value gets incremented. I am confused now as what is the purpose of...
April 24, 2013 at 6:56 am
Hi,
I was not aware of the fact that after making
SET IDENTITY_INSERT dbo.Test OFF;
identity value gets incremented. I am confused now as what is the purpose of making Identity_Insert...
April 23, 2013 at 11:29 pm
Viewing 15 posts - 556 through 570 (of 1,048 total)