all groups > sql server misc > march 2005
sql get next 30 days
Posted by Maziar Aflatoun at 3/29/2005 9:27:05 AM
Hi everyone,
I have a date field in my database. I like to issue a sql query to return
all the rows for the next 30 days from today. Can anyone help?
Thank you
Maz.
... more >>
Moving data between tables
Posted by Jason Williard at 3/20/2005 7:19:36 PM
I am currently using a stored procedure to delete users from our database
who are considered inactive. This works great. However, we have decided
that we want to archive these users to a identical (structure) table in the
same database. To do this, I need to find an easy way to take the dat... more >>
Setting Fiscal Year
Posted by Patrick Russell at 3/15/2005 9:46:08 PM
Is there a way to configure a fiscal year starting on Oct 1, in SQL Server,
or do I need to create a UDF to handle conversion of quarter and week?
Thanks
Patrick
... more >>
Need help with stored procedure.
Posted by Vanessa Lee at 3/13/2005 7:26:29 PM
Hi,
I am using SQL Server 2000 on Windows 2000 server. Here is my problem:
@String = 'word1word2word3word4word5' - This value is passed to Stored
Procedure from the script.
Column1 in a table1 has many rows with "words" . One row in this column1
will have 'word3'. Notice that this 'word3' i... more >>
Multiple where clause help please
Posted by GitarJake at 3/9/2005 10:51:09 AM
Hello,
What is wrong with this query? There are no messages other than (0 row(s)
affected).
The criteria 5 and 16 does exist.
UPDATE articles
SET DEPART_REF = '19'
where ARTICLE_PARENT_ID = '5' or ARTICLE_PARENT_ID = '16'
Thanks in advance from a sql newbie
Jake
... more >>
Converting delimited varchar @parameter for use in NOT IN()
Posted by Patrick Russell at 3/7/2005 8:12:57 PM
I am creating a stored procedure which is passed a comma delimited string of
ids as a varchar datatype. The param is to be used in an SQL statement such
as:
CREATE PROCEDURE GetFromTable
@IDs varchar(255)
AS
SELECT * FROM table WHERE iId NOT IN(@IDs)
GO
The problem is that the iI... more >>
|