all groups > sql server programming > september 2007 > threads for saturday september 15
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
Trigger - Calculate date based on two other dates
Posted by FinnGirl at 9/15/2007 8:20:02 PM
I need a trigger to calculate and insert into an Action table, five action
due dates (each date is a separate record with a corresponding action item)
based on two Milestone dates that are inserted into a Milestone table. These
Milestone dates, A and B, are inserted as separate rows in the Mi... more >>
filter search type
Posted by Rudy at 9/15/2007 8:18:00 PM
Hello All!
I have a search query I would like to perform. For example, I have a table
with Last, First and DOB columns. I would write this as a SP so I can call it
in my ASP.net application.
What I would like to do if a user want to search by first name only, it will
return the results. Va... more >>
Exporting SQL Server 2005 Tables to SQL Server2005 Express?
Posted by Peter Olcott at 9/15/2007 1:11:02 PM
I was able to convert an MS Access database into SQL Server
2005 Developer edition. Now I want to export this same data
to SQL Server 2005, Express Edition. Does anyone here know
how to do this?
... more >>
how to make fast forwad only cursor updatable in SQL Server 2000
Posted by Baihao Yuan at 9/15/2007 7:36:01 AM
In the msdn SQL server
document(http://msdn2.microsoft.com/en-us/library/aa172573(SQL.80).aspx), it
states:
Transact-SQL cursors can specify the FAST_FORWARD clause on DECLARE CURSOR.
This opens an optimized forward-only, read-only cursor.
But in the following section 'Implicit Conversio... more >>
Need to parse ntext field in TSQL as INT
Posted by CSharpie at 9/15/2007 5:04:00 AM
Hi, I have an nvarchar field with a list of productIDs (ints) whos prices I
would like to summarize with one columnar function: sum. SqlServer is giving
me an error message saying that it cannot convert the varchar field to int
(on its own). Is there a straight forward way to doing this, oth... more >>
Require Solution for this SQL problem
Posted by Nick at 9/15/2007 3:52:42 AM
Hi,
I have two tables TableA and TableB. I have a stored procedure which
runs every morning and based on some logic dumps rows from TableA to
TableB. In Table B there are two additional colums ID and RunID. ID is
a normal sequence applied for all rows. But the RunId should be
constant for a r... more >>
Select Problem Help
Posted by Mick Walker at 9/15/2007 12:00:00 AM
Hi All,
I have a select problem.
Here is my Table
CREATE TABLE [dbo].[RelationShips](
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NOT NULL,
[MemberID] [int] NOT NULL,
[DateAdded] [datetime] NOT NULL,
CONSTRAINT [PK_HotList] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX ... more >>
How can I combine these two queries into one query?
Posted by OK at 9/15/2007 12:00:00 AM
Can I combine 2 WHERE clauses into one query in order to improve the
database performance?
This is the case :
query1)
SELECT SUM(amount) AS SUM_DEBIT FROM ... WHERE .....AND DEBIT = 0
query2)
SELECT SUM(amount) AS SUM_CREDIT FROM ... WHERE .....AND DEBIT< > 0
So, the only difference ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
|