all groups > sql server programming > october 2004 > threads for sunday october 31
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Vieworder
Posted by Arjen at 10/31/2004 10:18:12 PM
Hello,
I have a table like this:
Key; Text; ViewOrder
Values can be like this:
1; Some text; 3
2; Some text; 2
3; Some text; 4
4; Some text; 1
5; Some text; 5
It is only posible to change the vieworder with one.
If you want to change the position of records 3 then you can only change... more >>
sp_OAMethod usage (Problem in Stored procedure)
Posted by sp_OAMethod usage at 10/31/2004 9:45:01 PM
Hi
I have SQL Server 2000 with Service Pack 3 in the Production Server. We
need to send mail using stored procedure. We dont have any IIS, SMTP and
Mail client software(Like Outlook, Exchange Server) in our Machine (this is
our requirement). That means we have to use remote SMTP serve... more >>
Need assistance with Stored Procedure
Posted by Sam Commar at 10/31/2004 8:32:01 PM
I have a Table ARTRAN where is getting populated when a AR debit memo is
created. ( Assume Batch 0001) The fields that i am trying to work with are
tran date and tran id which are created and captured.
Then a credit memo is created which again has a tran date and a tran id.
(Assume Batch... more >>
Need help with rearranging table
Posted by Val at 10/31/2004 6:02:33 PM
Hi,
I have a stored pocedure that creates a report and output looks like this
Program Name
Number of clients
------------------------------------------------------------------------------------------
Overall
36
Education
23
Pre-employment Services
5
Employment
8
I need it to lo... more >>
I'm not Trigger happy :-)
Posted by mekim at 10/31/2004 5:57:01 PM
I am writing my first trigger in the example listed below ...and I'm getting
lost in something...so thx for any assistance
-I am trying to update a field called RecordVersion any time there is an
update to the table
-I realize that the code below is "wrong" ...but I don't see how u can pin... more >>
data dictionary relation problem
Posted by Tristan Marsh at 10/31/2004 4:52:01 PM
I am trying to write a xml report generator using a data dictionary and i'm
having trouble with modeling the table relations. Would it be best to call
sp_pkeys & sp_fkeys for each table listed in the data_dictionary? This would
then tell me if it is
a 1-to-1 relationship or a 1-to-many. Is t... more >>
Combining table valued function with its arguments in one recordse
Posted by UncleSam89 at 10/31/2004 3:13:01 PM
I need to select for each date in my history database select 10 stocks with
the best criteria(for example highest volumes) and combine them in one
recordset.
Table contains at lkeast 3 fields:
1.Symbol varchar(8)
2.TradeDate int
3.Volume int
I created function best10:
create function bes... more >>
Listing of alternate rows using ORDER BY
Posted by itaitai2003 NO[at]SPAM yahoo.com at 10/31/2004 3:12:49 PM
I am trying to build a query that will result a list of different rows
based on column value, I thought about using the following strategy,
but get I get a compile error.
DECLARE @FEMALE INT, @MALE INT
SET @FEMALE = 0 // even counter
SET @MALE = 0 // odd counter
SELECT TOP 10 *
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Change your excel table
Posted by Agnes at 10/31/2004 2:18:55 PM
In chartofaccount form ,u use txtAcctCode, in glchg <-- why chg ??
I change into gldetail , u use acctcode,
but in other tables, u use acctno
too confusing, I change them all into acctcode
... more >>
How to desgin version control & primiary key ?
Posted by Agnes at 10/31/2004 11:01:25 AM
I got some table design problem and hope someone can give me advice.
I got an InvoiceTable with the primary key Invno, InvoiceChgtable will keep
the charges , noofunit, unitpirce.. etc, its primary key is using 'smallint'
with increment YES
Now, I need to keep each version of the invoice data in... more >>
how to use rows returned from Sprocs
Posted by dance2die at 10/31/2004 10:19:06 AM
Hello there.
I have a stored procedure that displays rows when executed and the sproc is
in the following form
====================
CREATE PROC TestSproc
AS
SELECT f1, f2, f3
FROM TestTable
====================
I would like to know the way that works as follows
SELECT * EXEC TestSproc
... more >>
Inner Join Help
Posted by henrik_thystrup NO[at]SPAM hotmail.com at 10/31/2004 10:05:20 AM
Hello,
Can someone help me with a SQL statement that returns either email
from Table A or email2 from Table B based on the following logic: if
the email is found in Table B then email2 is retuned/used from Table
B otherwise email is retuned/used from table A. I.E
Table A ... more >>
question on HAVING
Posted by Kevin NO[at]SPAM test.com at 10/31/2004 6:08:15 AM
I'm creating a procedure to build a list of customers, policies, and
balances (based on an 'as of' date), where the balances exceed a
user-specified threshold...
The calculation of balance is a UDF...mybalanceudf()
My question is this: which of the following is faster/more efficient...using
... more >>
SELECTing Next X From JOINed Tables
Posted by Guadala Harry at 10/31/2004 3:35:16 AM
A big Thanks in advance - as I'm totally stuck on this one...
To show you what I'm trying to do, I'll show you the sort of thing I'm
looking for that works on a single table. My problem is that I don't know
how to get the same sort of result when joining tables.
I need to retrieve subsets of... more >>
|