Forum Replies Created

Viewing 15 posts - 12,001 through 12,015 (of 14,953 total)

  • RE: Adding Files to a Database

    You could split it that way, but I can't think of what it would gain you. What's the reasoning behind that idea?

    If you want to move data from one...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Urgent help

    The spreadsheet would allow me to build some tables. Create scripts would be better, but that could work.

    Have you tried the suggestions I already gave you? What result...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Urgent help

    homebrew01 (9/10/2008)


    Nice reply. GSquared !!

    Wouldn't simply replacing the DELETE with TRUNCATE help a tiny bit ?

    It would reduce the logging a bit. Might gain a couple of seconds out...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SQL Server 2005 Cluster

    TheSQLGuru does have a point. If you go with clustering, it's complex and easy to get wrong. Mirroring and log shipping are pretty easy to set up if...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: How to locate 3 bad points in 35 minutes, all while avoiding RBAR

    A triangular join is generally (loosely) an inline query that references the outer query and more rows, in such a way that it has to query all/most of the outer...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: I need to add a suffix to duplicate values

    declare @Alpha char(26)

    select @alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

    select 1

    while @@rowcount > 1

    ;with Dupes (Row, Col5) as

    (select row_number() over (partition by col5 order by col5),

    col5

    from dbo.MyTable)

    update Dupes

    set Col5 = Col5 + substring(@alpha, row-1,...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Naming Guildlines / Standards

    wildh (9/11/2008)


    I would also suggest that if you are adding a date to a table you use YYYYMMDD if for no other reason than being able to view them in...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Using the IMAGE datatype in an HTML email

    I think the usual way to do that is to attach the image as a file to the e-mail and then include an HTML reference to the attachment. I...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Need Urgent help on displaying Column values as Row Values

    The Unpivot operator will do that. There are directions and examples in Books Online.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: convert a datetime object into bigint

    How you do that depends on the end result you want.

    For example, today is 11 Sept 08. That could be represented in bigint as 20080911, or it could be...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Linking Tables/Server

    williamminor (9/11/2008)


    try adding brackets around each item

    [CSWReportDatabase].[CSWReportDatabase].[dbo].[package_lists]

    -WM

    That's only necessary if the names don't conform to the basic naming conventions. Won't solve the problem here.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: If you can read this...

    To my understanding, they didn't actually perform any collisions yesterday, they just fired some particles around in a circle to make sure it was working.

    Plus, if it goes wrong in...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Linking Tables/Server

    You're missing the schema between the database name and the table. It's probably dbo.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Newbie need help with SQL script

    For what you're doing, I would definitely look into either SSIS, or using a third party app like RedGate's Data Compare or ApexSQLS's Diff. Both of those apps are...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Shrinking DB after data archiving

    In compatibility 80, you're very specifically operating the database as if it were on SQL 2000. That's the whole point of the compatibility level.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 12,001 through 12,015 (of 14,953 total)