Forum Replies Created

Viewing 15 posts - 11,506 through 11,520 (of 26,486 total)

  • RE: Most Recent Record

    If you are asking the latter, then give this a try. It isn't tested as I have nothing to test it against.

    WITH CurrentPO AS (

    SELECT

    v.ACCTNO,

    ...

  • RE: Most Recent Record

    Not quite sure what you are asking for here. Are you asking for the most recent PO regardless of account number or are you looking for the most recent...

  • RE: Calculated Columns - decimal

    We are going to need more information to really help. Please post the DDL (CREATE TABLE statement) for the table(s) used in the query, sample data (as a series...

  • RE: Last working day

    You do know that 1) SQLServerCentral.com is a site whose focus is Microsoft SQL Server and 2) you posted this is a SQL Server 2005 Integration Services forum.

    You may not...

  • RE: go back the past 12 months from today

    SQL_NuB (6/6/2012)


    its being stored as a number(6,0) such as 200109

    Made a slight change:

    DECLARE @MyDate DECIMAL(6,0);

    SET @MyDate = 201003;

    SELECT DATEADD(mm, -12, DATEADD(mm, (CAST(@MyDate AS INT) % 100) - 1, DATEADD(yy, (CAST(@MyDate...

  • RE: go back the past 12 months from today

    Here is an alternative method for converting a date stored as an integer in the format yyyymm:

    DECLARE @MyDate INT;

    SET @MyDate = 201003;

    SELECT DATEADD(mm, -12, DATEADD(mm, (@MyDate % 100) - 1,...

  • RE: Date Conversions

    sestell1 (6/6/2012)


    That's a bit frightening. Good to know. I'm glad I've never run into this!

    That's why I submitted this question. I'm sure at some point that someone...

  • RE: Date Conversions

    Okay, I should have used the DATE data type for the question, then I could have left the time portion off the answers.

  • RE: How to bring all Ids of my table in Order

    Why do you care if there is a gap in the id's? Is there a business case for this?

  • RE: Licensing for Newbies

    Well, he didn't say if the web server was internal or external, so it depends. You could possibly have an external website requiring authentication allowing you to restrict access...

  • RE: how to get data between dates

    harri.reddy (6/5/2012)


    u dont really need to know code,i just want to know which join will give me duplicate rows.

    left,right ,full.

    Here is my suggestion, read the first article I reference below...

  • RE: how to get data between dates

    harri.reddy (6/5/2012)


    u dont really need to know code,i just want to know which join will give me duplicate rows.

    left,right ,full.

    I don't know, why don't you just try each and see...

  • RE: Licensing for Newbies

    Bad_Karma (6/5/2012)


    I'm extremely new to licensing and am looking for some clarification/education. I spoke to my IT guy, who is not a SQL guy, about upgrading from SQL 2005 to...

  • RE: Having issues using BCP command to create file

    latingntlman (6/5/2012)


    Lowell, let me bounce this off you now:

    I have tested my 3 steps of the solution and they all work great. However, after presenting it, I was asked that...

  • RE: Create instance

    Go here: http://www.bing.com/search?q=sql+server+2008+licensing&qs=AS&form=QBLH&pq=sql+server+2008+licensing&sc=8-25&sp=1&sk=. Clink on the third link. Page 3 of the overview tells you what you need to know regarding licensing.

    All you need to do is install...

Viewing 15 posts - 11,506 through 11,520 (of 26,486 total)