Viewing 15 posts - 271 through 285 (of 295 total)
We use SSDT with Visual Studio 2013 and it works quite well; the ability to use TFS for source control is particularly useful along with generating the change scripts for...
May 27, 2014 at 1:46 am
I would also suggest you review the C# code slightly; it would be better to create the parameters explicitly with the datatypes used by the stored procedure, eg.
SqlParameter parm00 =...
May 22, 2014 at 2:43 am
I don't think AmandS was suggesting buggy code, bad design, etc. should become viewed as emergent practice. Just that new programming methods and features become available before standards can be...
May 16, 2014 at 9:50 am
From what I remember of SOX, the answer depends partly on the type of data in your database (and mostly on who is auditing your SOX compliance). If your development...
May 16, 2014 at 2:00 am
The IT industry is frequently compared to bridge-building - normally in a negative way. To put it into perspective, bridge-building has been going on for centuries, if not millennia; by...
May 15, 2014 at 7:13 am
I think you probably need the country part of the WHERE clause as below;
select ledger_account, supplier_country, receiver_country, supplier_number, supplier_name, supplier_invoice_number, purchase_order_number, tran_type_po, document_number_po, invoice_amount,
currency, invoice_amount_hc, vat_account_po, vat_amount_po, tran_type_app, document_number_app, vat_account_app,...
May 8, 2014 at 9:15 am
I agree with Luis, but it does depend on how your data may expand in the future. We have a CRM application where there are several 'standard' phone numbers for...
April 29, 2014 at 7:31 am
Note that one of your collations is accent-sensitive and the other isn't. When applying the suggested solutions to your code, make sure you specify the one you need. For example,...
April 23, 2014 at 10:03 am
The programmers are definitely wrong (as you already know). They need to use one connection and decide either to keep it open all the time and close on exit, or...
April 17, 2014 at 4:32 am
I think you need to modify the Group By clause in the first select to
group by ath_stlmnt_instr_id, ath_instr_id, ae.stlmnt_line_instr_id, ath_gl_num, ath_cost_cntr
but you should also review the way you're handling the...
April 16, 2014 at 8:16 am
Maybe the Case/Sum part is intended to be;
SELECT ISNULL(ath_stlmnt_instr_id, ae.stlmnt_line_instr_id) AS ath_instr_id
,ath_instr_id AS orig_instr_id
,ath_gl_num
,ath_cost_cntr
,sum(CASE
WHEN ath_postype = 'GLD'
THEN ath_usdamt
WHEN ath_postype = 'GLC'
THEN ath_usdamt * - 1
END) AS ath_usdamt
,count(*)
FROM dbo.ACCTING_TRANSACTION_HISTORY
left join...
April 16, 2014 at 5:20 am
Is it possible that the @KeyCountReserve parameter is sometimes zero or negative? That would cause duplicates to be generated.
April 16, 2014 at 5:09 am
The IsNull should be used like this;
SELECT distinct
GBPriceList.[Mfr_Part_Num],
[HP_ Long_ description],
[HP_ Short_ Description],
--Exhibit_Unpivoted.Exhibit,
WeightKGS,
WarrantyCode,
ProductLine,
Serialized,
ListPrice,
Prod_Class,
IsNull(Exhibit_Discount.Discount, 0) AS Discount
rather than in the WHERE clause if you want to...
April 4, 2014 at 7:45 am
It occurs to me that there may not be an Exhibit_Discount record for products where the discount is zero. If that's the case, you'll need a left outer join to...
April 3, 2014 at 2:12 am
You could do something like the following to update the Cart status after each update of an order item.
update Cart
set Status = OverallStatus
from Cart inner join
(Select Cart2.CartNumber,
case when sum(Orders.PickStatus) =...
April 2, 2014 at 8:23 am
Viewing 15 posts - 271 through 285 (of 295 total)