Viewing 15 posts - 13,651 through 13,665 (of 13,849 total)
I'm sure that we can help you do, but you'll have to provide a bit more info before anyone can give you anything specific.
The general form of query that you'll...
November 3, 2004 at 8:44 pm
Thanks - the returned recordset contains the info I need, but how do I query it as part of my script? sp_helpdevice itself returns just 0 (success) or 1...
November 3, 2004 at 8:26 pm
Something like this?
select distinct a.ordernumber
from tblorder a
where a.ordernumber not in
(select distinct b.ordernumber
from tblorder b
where right(b.itemnumber,3) 'rtd')
November 3, 2004 at 7:06 pm
Hi Brett, try putting single quotes around DNPISIMPORT and running this again.
Regards
Phil
November 3, 2004 at 5:21 pm
Exactly right. Of course, if there might be more than 4 messages, you might have to go dynamic ...
Phil
November 3, 2004 at 5:16 pm
Hi Karen
I think you'll have to add the Oracle server as a "linked server" - this can be done from Enterprise Manager in SQL Server - and then you'll be...
November 3, 2004 at 4:18 pm
Something like this should do it:
declare @msg1 as varchar(50), @msg2 as varchar(50), @msg3 as varchar(50), @msg4 as varchar(50)
declare @client as char(6)
set @client = 'a10051'
set @msg1 = (select msg from tblMsg...
November 3, 2004 at 4:14 pm
If you really have got full design freedom, then here is how I would create the tables:
1) Product (ID (PK), Description, {+ other product info fields})
2) Distributor (ID (PK), Description,...
November 2, 2004 at 8:58 pm
Joe
I cannot see anywhere in the original post any mention of files.
As for columns and rows not being referred to as fields and records, please explain what practical problems this...
November 2, 2004 at 6:10 pm
To quote from BOL: "An update transaction is similar to a delete operation followed by an insert operation; the old rows are copied to the deleted table first, and then...
November 1, 2004 at 8:29 pm
Rolf, it would help me to know a bit more about the current db schema. I'm guessing that you have something like:
Product(ID (PK), Description)
DistributorA(ProductID (PK), CurrentPrice)
DistributorB(as above)
DistributorC(as above)
with ProductID...
November 1, 2004 at 8:10 pm
Is there any reason why you don't have a single table for all the merchants, containing a 'MerchantID' field to identify which merchant it is from? Then you could...
November 1, 2004 at 4:05 pm
I think something like this should work. You need to read BOL for more info on how triggers work, but this one uses a notional recordset called 'inserted', which...
November 1, 2004 at 3:58 pm
Use this:
raiserror('',20,1) with log
which will terminate the client connection (severity > 19) and write to the error log.
Regards
Phil
October 31, 2004 at 8:07 pm
Viewing 15 posts - 13,651 through 13,665 (of 13,849 total)