Forum Replies Created

Viewing 15 posts - 181 through 195 (of 621 total)

  • RE: Datediff on same column

    Thank you both for the feedback, I just wish I still had the time to hang out here like I used to. I think I have forgotten more in...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Datediff on same column

    asbains8 (10/19/2010)


    Sorry I made a typo on my original request what I meant to say is I would like to exclude records which are less than 14 days from the...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Datediff on same column

    asbains8 (10/19/2010)


    Thanks for that i am a newbiw on these forums will remeber for next time, i am using SQL 2000 so ROW_NUMBER wont work is there an equivalent in...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Ìnsert into temp table from excel file

    Jim, you can use the data import wizard, or lookup OPENROWSET() in BOL. With OPENROWSET, you can select directly from the spreadsheet into a temp table, or any other...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Using DSQL to Slect a field from a table

    Mitch, I'm not sure if you are still having a problem, since this is an older post. But I just couldn't resist pointing out that this is absolutely terrible...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Is there a way to do this dynamicaly

    michael.morse (8/9/2010)


    Okay the table of tasks sounds like what I am trying to accomplish. How would I go about implementing this?

    Michael, there are many places you could start, but...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Difficult Count/Group By query

    Martin, to Waynes point, you really need to give us more information to go on. Without it, we have to make assumptions about what you have, and what you...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: CHARINDEX problem

    kschuler-851405 (8/18/2010)


    charindex returns the start position of the searched for expression (":"), which is in position 21 of the string in this example; starting at position 14 of the string...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: CHARINDEX problem

    Andrew, I think I have mis-interpreted the BOL example, which is as follows...

    DECLARE @document varchar(64)

    SELECT @document = 'Reflectors are vital safety' +

    ...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: CHARINDEX problem

    kschuler-851405 (8/18/2010)


    try this

    DECLARE @string VARCHAR(100)

    select @string = '08/01/2010 - J.Smith: just some text'

    SELECT

    [Date] = SUBSTRING(@string,1,10),

    ...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Get FormIDs which has combination of specific products

    Gunjan (7/7/2010)


    Hi,

    SELECT BI.BRCFORMID FROM BRCFORMITEM BI

    inner join Lookupproducts L

    on BI.productid = L.NDC

    and L.Groupid in (1,3,6)

    I think you want to change this to...

    SELECT BI.BRCFORMID FROM BRCFORMITEM BI

    inner join Lookupproducts...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: How to import excel file into a table SQL server without using DTS,...

    You could search BOL or google for OPENROWSET and SELECT INTO.

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: primary key

    tripri, search BOL(Books Online) for 'ALTER TABLE' for syntax, and you could probably find on google endless descriptions of what Jeff was talking about. Basically, here is how you...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Importing Selected Columns from CSV to SQL 2008

    Novicejatt, again, this is a 2000 forum, and it seems like maybe you have 2008? Anyhow, as far as the one time uploads are concerned, I personally find OPENROWSET...

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

  • RE: Importing .txt, .csv or .xlsx files into Database using SSIS

    Novicejatt (7/7/2010)


    I only want to use SSIS

    Are you sure you posted in the right forum? SSIS was new to SQL Server 2005. SQL Server 2000 has DTS.

    Greg
    _________________________________________________________________________________________________
    The glass is at one half capacity: nothing more, nothing less.

Viewing 15 posts - 181 through 195 (of 621 total)