Viewing 15 posts - 1,186 through 1,200 (of 3,957 total)
odeddror (11/5/2013)
of course I try it will give you two record for Apple one with ReferenceNo SO 1111 and one with nullLook the code doesn't answer the null
That is correct....
November 5, 2013 at 10:00 pm
Another option would be to add a parameter that tells the SP which columns to return. So for example:
(
-- SP parameters plus a new one
,@returncols...
November 5, 2013 at 8:36 pm
odeddror (11/5/2013)
What aboutexecute [dbo].[Shipment_Tracking] @CustID = 'Apple', @ReferenceNo = null
Will give all record regardless null
Thanks,
Oded Dror
Have you tried it? It should only return records with @Custid = 'Apple'
Because...
November 5, 2013 at 7:58 pm
sindhuv.tx (11/5/2013)
I have this schema given to me
<soapenv:Body>
<xxm:xxmesmo>
<xxm:systemName>TESTCP</xxm:systemName>
<xxm:companyId>1</xxm:companyId>
<xxm:document>
<![CDATA[
<!--document for xxmesmo,xsi namespace is added to support nulls in column values-->
<xxmesmo xmlns='http://www.deltek.com/enterprise/integration/xxmesmo' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<!--Result set...
November 5, 2013 at 6:51 pm
roy.tollison (11/5/2013)
the values they want in spdd_f5 will be 1 thru 100 (will never go over 100) no duplicates.
it is just a pad number but it would...
November 5, 2013 at 6:47 pm
SQLSig (11/5/2013)
Admin, please move this post to the TSQL 2012 forum. I just realized that it was posted in 2K5.
Unfortunately, I don't believe this forum has an administrator that will...
November 5, 2013 at 6:36 pm
First let me share a small utility function that could help to make short work of this problem:
CREATE FUNCTION [dbo].[GenerateCalendar]
(
...
November 5, 2013 at 6:19 pm
Borrowing from the code in the CASE that was thoughtfully provided by Scott, I offer another alternative:
SELECT MatchID, KeyCode, KeyValue
FROM @MySampleTable a
CROSS APPLY
(
VALUES
...
November 5, 2013 at 6:08 pm
odeddror (11/5/2013)
Hi there,How do you fix the null value?
Execute dbo.Shipment_Tracking @custID = null
This will give all records
Thanks,
Oded Dror
That is by design. Passing a NULL to @CustID is like...
November 5, 2013 at 5:49 pm
IdRatherCodeIt (11/5/2013)
For truly dynamic behavior, do you think moving that responsibility to coding might reduce verbosity, error prone string concatenation, and allow more flexible dynamic searches?
I'm talking about solution...
November 5, 2013 at 5:46 pm
Phil, Scott, Jeff and Erik,
Thanks for stopping in to read the article and offer your comments. I hope you find the content useful in your future endeavors.
And to Jeff,...
November 5, 2013 at 5:36 pm
L' Eomot Inversé (11/5/2013)
First remove
INNER JOIN History H ON H.VehicleID=V.VehicleID
(actually since the...
November 5, 2013 at 5:29 pm
rlindstrom 38273 (11/5/2013)
There are no empty records in the coitem_log table - every time a line item on a order is...
November 5, 2013 at 5:27 pm
Gatekeeper (11/5/2013)
Alan.B (11/5/2013)
1) Changed...
November 5, 2013 at 5:23 pm
Jeff Moden (11/5/2013)
dwain.c (11/5/2013)
Jeff Moden (11/5/2013)
dwain.c (11/5/2013)
For what it's worth, I'm in favor of a selective culling of the gene pool. 😛
I assure you, it's just words from some serious...
November 5, 2013 at 2:03 am
Viewing 15 posts - 1,186 through 1,200 (of 3,957 total)