Forum Replies Created

Viewing 15 posts - 5,161 through 5,175 (of 14,953 total)

  • RE: Error when inserting no data ?

    It has to do with the sequence in which SQL Server does things.

    First, it tests to make sure it can compile the code. Then it tests to make sure...

    - 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: Copying Database to Test server

    And the times it won't work out are times the plan is likely to change anyway.

    It's usually good enough to copy the database over to parallel hardware.

    The thing to avoid...

    - 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: To Get ERD

    I don't know that SSMS really does that. There are plenty of tools out there for it, but I don't think SSMS is one of them.

    - 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: Update in Access front-end of SQL back-end

    It's been a few years since I worked with Access-on-SQL (sounds like that should be the name of a village in England), but if I remember correctly, the key thing...

    - 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: From DBA / Dev to Management

    I did the opposite, in a way.

    Went from management/supervisor roles, into sales/marketing, and then into IT.

    The key thing to know in any management position is how to deal with communications...

    - 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 statement problem

    The first step is to build a Select statement that will get all the ones you want to exclude directly or indirectly.

    select *

    from MyTable

    where ip = '1.1.1.1'

    or wordtexts = 'tokyo';

    Then...

    - 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: UPDATE using a self-join

    Stefan Krzywicki (2/1/2011)


    Brandie Tarvin (2/1/2011)


    CELKO (1/31/2011)


    Actually, INSERT and UPDATE are single table operations, while MERGE requires a source and target.

    I haven't moved up to SQL 2k8 yet, so haven't...

    - 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: reading image data

    You're welcome.

    I actually learned about that from an SQL injection technique that was in heavy use a few years back. Was hiding the SQL commands inside a binary string,...

    - 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: Dynamic Update

    npeters 86796 (1/31/2011)


    GSquared (1/31/2011)


    What defines an "empty target"?

    You're giving WAY too little data here to be able to help you on this.

    a "NULL" defines an empty target

    The way to find...

    - 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: Mirror Snapshot

    Snapshots are copies of the whole thing.

    Check data here for details: http://msdn.microsoft.com/en-us/library/ms187054(SQL.90).aspx

    - 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: Making a Phone number list with XmlPath('')

    Select from the parent table, and use an inline sub-query to get the phone numbers, using the For XML trick in that.

    select *, (select phone from MyPhones where Person =...

    - 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: Are the posted questions getting worse?

    GilaMonster (1/31/2011)


    WayneS (1/31/2011)


    So... what's your favorite data modeling tool?

    Pencil and paper (or marker and whiteboard).

    Ditto

    - 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: Programmatically load SSIS package?

    The usual way I do this in SSIS is with a For Each Next loop. You can either loop through the contents of a directory, or through the rows...

    - 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 Naive query

    Start with:

    select *

    from sys.syslogins;

    That will give you a list of the logins.

    If you look that up in Books Online or on MSDN, it will have links to related items, which...

    - 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: reading image data

    I just tried this:

    DECLARE @XML XML = '<row ID="1" /><row ID="2" />', @Bin VARBINARY(MAX);

    SELECT @XML;

    SELECT @Bin = CAST(@XML AS VARBINARY(MAX));

    SELECT CAST(@Bin AS XML);

    From that, I tried this:

    CREATE TABLE dbo.DropMe (

    ID...

    - 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 - 5,161 through 5,175 (of 14,953 total)