Forum Replies Created

Viewing 15 posts - 7,831 through 7,845 (of 26,490 total)

  • RE: Complex many to many relationships

    Ganga-236835 (4/25/2013)


    ChrisM@Work (4/25/2013)


    This doesn't really address the point I raised. If phone number is an attribute of [Person] or [Staff] or whatever, what would you gain by abstracting phone number...

  • RE: Assistance w/query that pulls table name, col name, data type

    karen.richardson (4/25/2013)


    Hello Everyone!

    I'm working on a query to pull table name, schema, column name, data type, and field length; just can't get the data type right. Here is what...

  • RE: sql query

    Since you haven't showed us what you want, it is hard to provide you with an answer. To help I have created the SQL needed to allow others to...

  • RE: Convertir texto a fecha en sql server

    rcherod (4/24/2013)


    Thank u very much!!

    Now I have 2 great answers!!

    SELECT CONVERT(datetime,CONVERT(int,'41389')-2) As Converted

    select dateadd(day,'41389' - 2, 0) as FechaOriginal

    Thank u Champion and Thank u Insane

    Don't rely on the implicit...

  • RE: "Total Revenue Per Day" SQL Query Format

    Just want to verify that you are using SQL Server 2008 or SQL Server 2008 R2 (or maybe actually SQL Server 2012).

    This info can change things some as well.

  • RE: Convertir texto a fecha en sql server

    Lowell (4/24/2013)


    Lynn, do you know why my calculation is off by two days? is it because SQL's zero date on 01/01/1900, but Excel thinks zero date is 12/30/1899 ?

    Not really,...

  • RE: Dynamic query providing wrong output

    Glad to hear it. I think it makes the dynamic code easier to read. You don't have to count all those little single quotes as much.

  • RE: Convert varchar back into datetime??

    david.ostrander (4/24/2013)


    Lynn -

    Thank you for the tip.

    I used dateadd(dd, datediff(dd, 0, d.DocDate), 0) but how do I get rid of the

    "00:00:00:00"?

    Thanks,

    David

    If you want the datatype to be datetime,...

  • RE: Convertir texto a fecha en sql server

    rcherod (4/24/2013)


    Estimados, 🙂

    quisiera realizar una consulta acerca de como convertir un formato extraño de fecha, tengo un archivo txt que viene con el campo fecha de la siguiente manera :

    Nombrefecha_asist

    Pedro41388

    Ana41389

    Juan41390

    al...

  • RE: Distributed Replay Controller

    Have you read this, http://msdn.microsoft.com/en-us/library/ff878183.aspx, and the links contained in that article? I installed SQL Server 2012 DE at home but don't remember how I handled this part of...

  • RE: Importance of Style on Exam?

    dan-572483 (4/24/2013)


    But you wouldn't miss an exam question because you picked the answer that left out the AS would you?

    That I can't answer as I have yet to take any...

  • RE: Importance of Style on Exam?

    dan-572483 (4/24/2013)


    I've noticed that the 70-461 Exam guide contains quite a bit of the authors' opinions on the style issues of query writing that are not enforced by the database...

  • RE: 2005 Ent to 2008 R2 Std

    Going from Enterprise Edition to Standard Edition will require an uninstall of SQL Server 2005 EE and then an install of SQL Server 2008 R2 SE if you want it...

  • RE: Dynamic query providing wrong output

    A different take on what you are doing, wouldn't hurt to give it a try:

    /* Provide test data for building script */

    declare @DB_NAME nvarchar(128),

    ...

  • RE: Max or Top 1 more efficient

    Or this:

    with MaxDate as (

    select

    max(dateadd(month, MonthValue - 1, dateadd(year, YearValue - 1900, 0))) as MaxDate

    from

    dbo.DealerForecastSegmentValue

    )

    select

    md.MaxDate,

    ...

Viewing 15 posts - 7,831 through 7,845 (of 26,490 total)