Forum Replies Created

Viewing 15 posts - 436 through 450 (of 479 total)

  • RE: Get DATE part of the DATETIME

    I ran a few tests and found that there are only marginal differences beween most of them, except that the dateadd/datediff form takes about a third longer (on my test...

  • RE: Get DATE part of the DATETIME

    Does anyone know which uses least processing time?

  • RE: Query - Good practice of a query

    Balaji (1/26/2008)


    1) in where criteria

    where 1=1

    and ....

    The only time I've seen this done is in generated queries. That is, a query is built from selecting various options...

  • RE: The End of Estimation

    scoinva (1/24/2008)


    PolyServe

    Can you elaborate?

    A quick glance at info on the polyServe database utilitity would indicate that it's used to ease relocation of SQL instances between physical servers. VMs can be...

  • RE: The End of Estimation

    I must admit that until a few months ago, I hadn't considered how virtualization worked and had sort of assumed it was similar to emulation (like running old PDP-11 software...

  • RE: How to return a LOT of other columns with group by

    Mark (1/19/2008)


    Several ways to do this, here's one

    ...ROW_NUMBER() OVER(PARTITION BY Name ORDER BY Factor1) as rn

    One of the reasons I love these forums is that there's always something new to...

  • RE: Convert nvarchar to datetime

    donald.jones (1/21/2008)


    I have the same problem, with my data imported as nvarchar in the format MMDDYYYY (01012008, for example.) I get an out-of-range datetime value when I attempt the alter...

  • RE: Convert nvarchar to datetime

    keywestfl9 (1/17/2008)


    i have some fields in SQL Server table as nvarchar(50) and the user actually enters date (example : 02/05/07) now they want those fields to be converted to datetime...

  • RE: How to simulate OBJECT_NAME(object_id, db_id) prior to SP2?

    I'd still be interested if there's an easier way, but my current solution is...

    create table ##db_obj (

    dbid int,

    objectid int,

    objname varchar(128)

    )

    /*

    Temp table #T contains columns dbid(int) and objectid(int) with the values...

  • RE: How to simulate OBJECT_NAME(object_id, db_id) prior to SP2?

    russell (1/21/2008)


    here's an SP. problem making a function is the need for dynamic sql, but maybe this wlll get u going in the right direction

    Thanks for the suggestion, but I'd...

  • RE: How to simulate OBJECT_NAME(object_id, db_id) prior to SP2?

    Hi Steve,

    Unfortunately that doesn't work.

    On my test server,

    "use scratch;select count(*) from sys.objects" returns 61

    "use perf;select count(*) from sys.objects" returns 1609

    I need a pointer to whatever sys.objects is looking at so...

  • RE: Testing

    In the UK, I've had a couple of jobs where criminal record checks were done (one was an organization which works almost exclusively with teenagers), but that's about it. Most...

  • RE: how to find the parent

    Shaun McGuile (1/9/2008)


    The question is wrong on the basis of design and the modeling of the parent child relationship using one column is totally flawed.

    Brent McCracken (1/10/2008)


    I do have two...

  • RE: how to find the parent

    Probably very inefficient...

    create table #c (val varchar(10))

    insert #c (val) values('003')

    insert #c (val) values('003.1')

    insert #c (val) values('003.2')

    insert #c (val) values('003.3')

    insert #c (val) values('003.31')

    insert #c (val) values('003.32')

    insert #c (val) values('003.33')

    insert #c (val)...

  • RE: Performance Tuning: Concatenation Functions and Some Tuning Myths

    Hi Jeff,

    Just wanted to say that I too think this is a great article - well written with plenty of food for thought.

    I've got several complex queries I need to...

Viewing 15 posts - 436 through 450 (of 479 total)