Forum Replies Created

Viewing 15 posts - 1 through 15 (of 30 total)

  • RE: Get the count of a result set

    Please check this forum

    http://qa.sqlservercentral.com/Forums/Topic462732-148-1.aspx

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: Need help getting highest 2 PO numbers per Part

    -- Get 2 latest orders for each part:

    Select o1.*

    From PURC_ORDER_LINE as o1

    Join (Select o2.PART_ID, Max(o2.PURC_ORDER_ID) as od1

    From PURC_ORDER_LINE as o2

    ...

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: Link table and view by CAST() field

    Why even create a view, do a join between the tables and do a Cast(fieldname, int). See example below

    SELECT dbo.Job.JobNumber AS JobId, dbo.empMain.firstname, dbo.empMain.lastname, dbo.timeCard.total_hr * DB1.dbo.sscERate.rate AS Hrs,

    DATEADD(DAY, 7...

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: Link table and view by CAST() field

    Can you please post the table structure with sample data.

    Also the code that is linking the 2 tables

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: Unexpected 'Case else' behavior

    The only possible explanation I can give is it's falling into a "When" weirdness case.

    May be the "When" invokes the newid() for each "when" and if the case has already...

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: Unexpected 'Case else' behavior

    I have not encountered a single else case with this statement listed below

    Declare @myvarint

    set @myvar= CAST(CAST(NEWID() AS VARBINARY) AS INT)

    SELECT @myvar,

    CASE (ABS(@myvar) % 10)

    WHEN 0 THEN 22000

    WHEN 1...

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: Restore db from ..

    It is not possible to apply a transaction log backup:

    * Unless the database or differential database backup preceding the transaction log backup is restored first.

    ...

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: Future of SQL Server

    Everything I hear these days are cloud based.

    Virtualization is the way to go, doesn't really matter what products are being used.

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: Limited Stored Procedure and View permissions

    Not sure about your question.

    You are asking to provide a cred "View definition" permission and "Execute" permission?

    If yes you can give such rights to the creds and not have to...

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: turn on verbose logging and SQL in SQL Server 2005

    When any critical error / warning is reported by SQL Server Agent, it is written to a log file MSSQL\Log\SQLAgent.out. By default only critical errors and warnings are reported...

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: turn on verbose logging and SQL in SQL Server 2005

    So is this logging related to SQL Server agent( like jobs etc)?

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: turn on verbose logging and SQL in SQL Server 2005

    It's in the NSService.exe.config under sql server installation folder under notificationservices folder

    For each of the items in the <switches> node, set the logging level by changing the value attribute.

    To...

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: Integration Services Project with multiple SSIS Packages

    http://sqlblog.com/blogs/eric_johnson/archive/2010/10/28/calling-child-packages-in-ssis.aspx

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: How to get the Internal ID from a ROW

    check this article out

    http://www.databasejournal.com/features/mssql/article.php/3572301/RowNumber-function-in-SQL-Server-2005.htm

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • RE: Error in script task-

    I probably would check if those references exist in the script tasks and they are 64 bit compatible.

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

Viewing 15 posts - 1 through 15 (of 30 total)