Viewing 15 posts - 16 through 30 (of 42 total)
sorry. sql statements for creating table and records are in attached file because they seemed too long to me. the sample data in post actually is not data. I used...
November 14, 2012 at 6:08 am
Stupeo (11/14/2012)
Can't you just order by Order ID?
no my friend, because transactions, transaction fees and commissions came from one table, others come from different tables. lets say, transaction's ID is...
November 14, 2012 at 5:04 am
I was digging sql2012 sequence feature, looks like don't need to worry about deadlocks nor increments any more but I couldn't find one thing:
where does sql2012 stores sequences. it seems...
November 6, 2012 at 10:22 am
I'll give a try to these solutions tonight. by the way, sql version is 2012 and that's not gonna change. only upgrades are posibble.
November 6, 2012 at 9:38 am
dear lnardozi 61862,
problem is, I'm not generating invoices. my customers are generating their own invoices for their own customers using my web application. Say, customer A starts operation and generated...
November 6, 2012 at 1:51 am
I have customer database. and transactions database. each transaction gets an Id number. okay. 2 different customers made 2 transactions. here's teh trasactions table:
ID CustomerNumber
1...
November 5, 2012 at 3:56 am
hmmm, begin/commit transaction looks like did the trick.
begin transaction
declare @no int
exec CreateInvoiceNumber @no output
select @no
insert into test (no) VALUES( @no)
commit transaction
1.000.000 transactions, 200 threds, no duplicates.
thanks... that was educational conversation.
November 4, 2012 at 1:59 pm
wrong post.
November 4, 2012 at 1:57 pm
first answer is yes, if I have 10 customers, I need 10 set of invoice numbers.
the transaction I use is:
declare @no int
exec CreateInvoiceNumber @no output
select @no
insert into test (no)...
November 4, 2012 at 1:38 pm
then if I have 10 customers, I have to have 10 invoice number tables for each of them to keep different invoice numbers for different customers right ?
as I understood...
November 4, 2012 at 1:15 pm
here's the question: (as I don't know sp's very well, or lest's say I have trust issues against sql server-yet)
is there any chance of 2 insert statements getting same number...
November 4, 2012 at 12:10 pm
actually null values not my concern (all values are zero or something) but I want to learn howto use isnull function in this kind of function as it will present...
June 14, 2012 at 11:53 am
wow, that was cool.... thank you with respect 🙂
June 14, 2012 at 11:06 am
here's table definition
CREATE TABLE [dbo].[ExRates](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ratedate] [date] NULL,
[USD] [float] NULL,
[EURO] [float] NULL
) ON [PRIMARY]
GO
insert into ExRates (ratedate, USD,EURO) values ('01-01-2012', 2.1 , 1.8)
insert into ExRates (ratedate, USD,EURO)...
June 14, 2012 at 10:40 am
Sure I need it. at he moment I have sql2008r2 side by side with msde. I need to upgrade it. I need to obtain compatibility between web server database, client...
May 19, 2012 at 12:18 am
Viewing 15 posts - 16 through 30 (of 42 total)