Forum Replies Created

Viewing 15 posts - 9,196 through 9,210 (of 10,144 total)

  • RE: display Full date values which falls under 2 input date values

    sabarichandru (12/10/2008)


    Hi chris,

    i need a o/p in column .

    This will do it:

    DECLARE @InputDate DATETIME, @DayCount INT

    SET @InputDate = '01-12-2008'

    SET @DayCount = 1 + DATEDIFF(dd, @InputDate, GETDATE())

    SELECT DATEADD(dd, 1-N.number, GETDATE())...

  • RE: Problem on OPENROWSET

    Can you see the database ODS in the output generated by this:

    SELECT a.* FROM OPENROWSET(

    'SQLOLEDB',

    'Trusted_Connection=yes;Integrated Security=SSPI;DataSource=''10.0.172.53'';' ,

    'SELECT [name] FROM master.dbo.sysdatabases') AS a

  • RE: Select columns by ordinal position?

    Rootman (12/10/2008)


    Thanks for the reply.

    But I want to return a specific column, say column 2 from a table.

    In other words I want to use the table as a sort of...

  • RE: Select columns by ordinal position?

    Rootman (12/10/2008)


    Is it possible to select columns by their ordinal position? If so , could anyone please help me with the syntax?

    Many thanks

    SELECT *

  • RE: display Full date values which falls under 2 input date values

    sabarichandru (12/10/2008)


    Dear all,

    i need to display dates as a O/P which falls between two date inputs .

    Eg:

    input 1 ...

  • RE: Improve SQL Query Performance

    debjani.bedajana (12/9/2008)


    Hi Gail,

    Sorry to bother you. Wondering if you could find some solution. Thanks for your help.

    Debjani

    Hi Debjani

    Can you please let us know what the remaining problems are?

  • RE: Slow function

    pino_daddy (12/9/2008)


    This query was a simple example of how we would use the function.

    We are aquiring companies around teh world and for UTC we need to have one time zone....

  • RE: Replacing multiple occurrences of a string in a text column

    Dan Epps (12/9/2008)


    Yep...tomorrow's prices with yesterday's technology!

    Ironic this...prices are tumbling and yesterday's technology is robust!!

  • RE: Slow function

    pino_daddy (12/9/2008)


    This query:

    SELECT ROW_ID, CREATED, dbo.ConvertGMTToEST(CREATED)

    FROM S_SRV_REQ S

    returns 959,970 rows in 48 seconds

    This query:

    SELECT ROW_ID, CREATED

    FROM S_SRV_REQ S

    returns 959,970 rows in 4 seconds

    Want to know how to speed up the...

  • RE: Min Max Quartile

    Kelvin Phayre (12/9/2008)


    I put 1.5m rows into a table and then ran your query. I then stopped the query before it crashed the server.

    I then took a different tac. I...

  • RE: Return Values and store those values for evaluation

    Hi Joe, I'n not reall sure what's going on there!

    Here's a simple test setup, with a sp taking 6 parameters, three of them being output params.

    It should be sufficient...

  • RE: T-SQL Help

    pvar (12/9/2008)


    Thanks guys for your quick response. I tried Noeld's solution and it worked, I liked the simplicity of the select statement. But I am not sure about chris's solution,...

  • RE: SQL Help

    Ian (12/9/2008)


    The product table contains a lot of records roughly 2800 and the productCategory table has roughly 3850 - should I include all the date?

    No, twenty or so should be...

  • RE: T-SQL Help

    pvar (12/9/2008)


    I am sorry, I should have provided that info. The field type is tinyint so the values are 0 & 1. Thanks.

    No problem. This will do:

    SELECT * FROM (

    SELECT...

  • RE: T-SQL Help

    pvar (12/9/2008)


    Hi,

    I have a table with 4 boolean fields. I need to find the records that have more than one boolean field set to true. That means records with A...

Viewing 15 posts - 9,196 through 9,210 (of 10,144 total)