Forum Replies Created

Viewing 15 posts - 556 through 570 (of 1,183 total)

  • RE: Invalis Column error when doing select into

    It happens to all of us...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Get Extra Columns From SubQuery

    Yep, you should have said that. :w00t:

    But as far as I know, the answer is "no" you can't do it with EXISTS.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Invalis Column error when doing select into

    Patrick Ige (4/8/2008)


    I want to use select into to create a table StockCode_Planstest and insert data from the cross

    join but keep getting error on the first line

    Any ideas..

    SELECT stockcode_id,plan_id,mc_id...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Common Functions & Stored Procedures for New Databases

    WRACK (4/8/2008)


    Hi,

    Where can I add those functions and stored procedures so they appear everywhere?

    In my research I have found that every database is created using the "MODEL" database as a...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Get Extra Columns From SubQuery

    I would suggest that you study up on JOINS..... 😀

    SELECT

    A.CustomerID

    ,A.SurName AS 'CurrentSurName'

    ,NULL AS 'ArchiveSurName'

    FROM

    Customer.Customer AS A

    ...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Looking for NOT Distinct Values

    This won't handle the RED records, but it will get you close. 😀

    SELECT FIELD_NAME, TABLE_NAME

    FROM yourTable

    WHERE FIELD_NAME IN (SELECT FIELD_NAME

    ...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Best way to move data between MSSQL 2000 and MS Access

    Depending on your exact needs, just create linked tables in access. (Right Click - Link ??) in the table tab. Then the data isn't actually moved or copied, but rather...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: is it possible to hide my tables (i don't want customers to see my columns)

    yucky

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: is it possible to hide my tables (i don't want customers to see my columns)

    Ihave no experience using it, but wouldn't WITH ENCRYPTION be helpfull?

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Summing column values 2 to 1 relationship into one row

    1. Swap your tables around the LEFT JOIN clause.

    2. Use the OVER .. PARTITION BY like I mentioned earlier...

    Create some sample data

    DECLARE @project TABLE (project_id CHAR(5), component_id CHAR(5), cost_element_id CHAR(5),...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Summing column values 2 to 1 relationship into one row

    It's hard to test without sample data, but I think what you want can be done with windowed functions ...

    Specifically, the SUM(...) OVER (PARTITION BY ...)

    SELECT

    a.project_id...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: SELECT * and subtract a couple of fields?!

    1. No, there is no way to do that. OK, Cess shows a way to do it below. But that's a TON of work when you can just not...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: CTE question

    Jeff Moden (4/1/2008)


    Antonio...

    When you say ".RDL", are you talking about a "CLR"?

    No, I'll bet he's dynamically creating the .RDL (Reporting Services Definition) files on the fly. 😀

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: is it possible to hide my tables (i don't want customers to see my columns)

    Create views that expose the data/columns that you want them to "see" and procedures to manipulate it. Then only give permissions to the "customers" on the views and procedures.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: CTE question

    Yes, you could do it that way. 😀

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg

Viewing 15 posts - 556 through 570 (of 1,183 total)