Forum Replies Created

Viewing 15 posts - 676 through 690 (of 709 total)

  • RE: using stored proc sp_spaceused with variables

    I rolled the following procedure a few years back for the same thing.  I place it in the master database and use the sp_prefix so I can call it from...

    Eddie Wuerch
    MCM: SQL

  • RE: SSIS package variables not visable in Execute SQL Task

    In order to use your package variables in the SQL task, you must set them up in the Parameter Mapping page when you are editing the task.

    For example, I want to...

    Eddie Wuerch
    MCM: SQL

  • RE: Question about requiring.....

    Integrity constraints are applied on a single row.  Your definition requires checking multiple rows to determine if a single insert is valid.

    Enforcing it would require analyzing the full set of...

    Eddie Wuerch
    MCM: SQL

  • RE: Difference B/W EXEC and only SP Name execution.

    <SP Name> is a shortcut that works if it is the only line in a t-sql batch.

    EXEC <SP Name> is required when there are multiple lines in the batch.

    For a...

    Eddie Wuerch
    MCM: SQL

  • RE: How do I rename text files after processing

    You can add a new containter to the end of your package, and place a Script Task in it to do the work.  Below is some basic code (sans error-handling,...

    Eddie Wuerch
    MCM: SQL

  • RE: How can I calculate CPU usage in SQL as a percentage ?

      You're shooting at a moving target.  The total CPU time a process uses is measurable.  But the CPU % usage is a state of something at a particular point in...

    Eddie Wuerch
    MCM: SQL

  • RE: Selecting data from Oracle on a SQL Server.

    Unfortunately, I don't have Oracle installed on a SQL Server I can get to right now, but when I had to go through this in the past, the 'MSDAORA' provider...

    Eddie Wuerch
    MCM: SQL

  • RE: usp stored procedure prefix

    If I really had to know whether Customer was a table or a view - and I usually wouldn't - it would not take very long to find out, in...

    Eddie Wuerch
    MCM: SQL

  • RE: Scalar Function PRoblem

    Why bother with the GROUP BY and HAVING?  A simple WHERE meets your needs here.

    SELECT @RetVal = MAX(RevNo) + 1
      FROM dbo.tblRevision
     WHERE DocumentID = @DocumentID

    Eddie Wuerch
    MCM: SQL

  • RE: How to declare a outer join in diagramm

    'Joins' in diagrams are actual relations - a.k.a. Foreign Key Constraints.  What you are trying is not an option in database diagrams.

    Outer joins are for queries.  If you need to...

    Eddie Wuerch
    MCM: SQL

  • RE: usp stored procedure prefix

    Well, this one often falls into the same religious-war category as allowing NULLs in columns; many people don't like to change their ways.  This thread should get rather heated.  Let's see...

    Eddie Wuerch
    MCM: SQL

  • RE: Order by clause

    Because you aren't performing any aggregate functions (sum(), count(), min(), ...), you don't need to use GROUP BY.  The DISTINCT will take care of it.

    Otherwise, you will need to add all...

    Eddie Wuerch
    MCM: SQL

  • RE: SQL Server Licensing "per seat" question

    CALs - either per-seat or per-user - do not count connections.  If a user has a per-user CAL, that user may simultaneously open multiple connections to several per-server-licensed SQL Server services...

    Eddie Wuerch
    MCM: SQL

  • RE: Anyone sat the beta exams for 2005 yet?

    I got my paper score reports and vouchers for 71-431, 71-441, and 71-444 over the last two weeks.

    I took mine at a Thomson-Prometric center.  People who took them with...

    Eddie Wuerch
    MCM: SQL

  • RE: why can''''t i set indexes on views, i have enterprise edition. but its grayed out when I try

    Option #2: T-SQL.  "It's greyed out when I try" sounds like you're trying this in Enterprise Manager.  Fire up Query Analyzer and:

    1.  Ensure all the tables you're referencing were created...

    Eddie Wuerch
    MCM: SQL

Viewing 15 posts - 676 through 690 (of 709 total)