Forum Replies Created

Viewing 15 posts - 7,021 through 7,035 (of 14,953 total)

  • RE: FizzBuzz

    J.Faehrmann (2/22/2010)


    Gsquared your "ultimate version" is much fun to read!

    Now you only need to tell Jeff that you always code like that 😛

    Won't work. Jeff knows my coding too...

  • RE: FizzBuzz

    Steve Jones - Editor (2/22/2010)


    Gary Varga (2/22/2010)


    ...well that last candidate wasted my time!!!

    C'mon, I'm sure you'd end the interview after

    DECLARE curNumbers CURSOR

    How long could that take?

    Steve! C'mon! It...

  • RE: FizzBuzz

    Just to annoy Jeff, here's my "ultimate version":

    SET NOCOUNT ON;

    DECLARE @Table1 TABLE (

    ID int IDENTITY PRIMARY KEY,

    Number int);

    DECLARE @Number INT;

    SELECT @Number = 1;

    WHILE @Number <= 100

    BEGIN

    INSERT INTO @Table1 (Number)

    SELECT @Number

    WHERE...

  • RE: Indexing

    You can include any number of them in an index. You can't have them as the key columns for the index. It's really as simple as that.

    Often, you're...

  • RE: Compress or zip output with SSIS?

    WinZip has a command-line utility that I've used for that before. Call that from the package, and it'll do the job nicely.

  • RE: Querying XML

    The text piece makes sense. My XQuery education has all been "trial and error", based on abysmal documentation and samples online and in BOL, so no great surprise that...

  • RE: Are the posted questions getting worse?

    Paul White (2/22/2010)


    Is it just me...or are the posted questions getting better?

    :smooooth:

    Paul

    Questions seem okay right now. Some of the answers have been abysmal recently. I guess it balances...

  • RE: Querying XML

    Paul White (2/21/2010)


    GSquared (2/19/2010)


    You'll need to use your column name instead of the XML variable, but it should do what you want.

    A much more efficient query plan is produced from...

  • RE: Use DLOOKUP in vba HELP plz

    The reason Australians, et al, don't fall off is the same as for those of us in the northern hemisphere. Earth sucks!

  • RE: Return all characters to the right of a colon in a column

    Paul, that returns everything left of the colon. He asked for everything right of it.

  • RE: Determining Build number when service is NOT running

    The only thing I can think of is checking the update history. If you open Windows Update, you can get a fully history of installed updates. There may...

  • RE: Querying XML

    DECLARE @XML XML;

    SELECT @XML =

    '<ROOT>

    <Customers>

    <CustomerId>1111</CustomerId>

    <CompanyName>Sean Chai</CompanyName>

    <City>NY</City>

    </Customers>

    <Customers>

    <CustomerId>1112</CustomerId>

    <CompanyName>Tom Johnston</CompanyName>

    <City>LA</City>

    </Customers>

    <Customers>

    <CustomerId>1113</CustomerId>

    <CompanyName>Institute of Art</CompanyName>

    </Customers>

    </ROOT>';

    SELECT --R.Node.query('.'),

    R.Node.query('.').value('(/Customers/CustomerId/.)[1]','varchar(100)') AS CustomerID,

    R.Node.query('.').value('(/Customers/CompanyName/.)[1]','varchar(100)') AS CompanyName

    FROM @XML.nodes('/ROOT/Customers') R(Node);

    You'll need to use your column name instead of the XML variable, but it...

  • RE: Use DLOOKUP in vba HELP plz

    Considering that this is the MS Access forum for the site, I think it's perfectly acceptable to post questions and answers about Access here. 🙂

    On the original question, I'd set...

  • RE: Return all characters to the right of a colon in a column

    Here's one way:

    DECLARE @Text VARCHAR(100) = 'abc:xyz';

    SELECT

    REVERSE(

    LEFT(

    REVERSE(@Text),

    CHARINDEX(':', REVERSE(@Text))-1));

  • RE: Windows group as job owner

    SSIS packages don't have to be run as jobs. They can be run from the command line using dtexec.

Viewing 15 posts - 7,021 through 7,035 (of 14,953 total)