Forum Replies Created

Viewing 15 posts - 121 through 135 (of 455 total)

  • RE: SQL server installation problem for developer edition(urgent)

    Please check if the following thread helps

    http://blogs.msdn.com/brada/archive/2005/06/24/432209.aspx

    Prasad Bhogadi
    www.inforaise.com

  • RE: SQL 2000 - Detached a database. Reattached and the file is read only

    Why don't you trying restarting the SQL Server Service unless you are running some realtime production databases on the server.

    Prasad Bhogadi
    www.inforaise.com

  • RE: Sql 2000 Problem

    You may want to create a temp table and dump the data into that table and delete the duplicate rows using a cursor and fetch the data and display it...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Sql Problem

    Sarvesh, I am sure you are using SQL Server 2000 as your database. The syntax is not supported in SQL Server 2000.

    Prasad Bhogadi
    www.inforaise.com

  • RE: Using a fieldname in a variable in a SELECT list?

    As is said and experienced, dynamic sql is not recommended, however for your question the dynamic sql can accomplish the task.

    DECLARE @counter INT, @cost CHAR(6)

    DECLARE @sql VARCHAR(2000) -- you can...

    Prasad Bhogadi
    www.inforaise.com

  • RE: execute string in a query

    How would this solution work??

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: Transposing columns

    CREATE VIEW MyView

    AS

    SELECT  ID,

     AmtType AS Type,

     Amt_1_desc AS [Amt Desc],

     Amt_1 AS Amt

    FROM

     MyTable

    UNION ALL

    SELECT  ID,

     AmtType AS Type,

     Amt_2_desc AS [Amt Desc],

     Amt_2 AS Amt

    FROM

     MyTable

    UNION ALL

    SELECT  ID,

     AmtType AS Type,

     Amt_3_desc AS [Amt Desc],

     Amt_3 AS Amt

    FROM

     MyTable

    GO

    SELECT *...

    Prasad Bhogadi
    www.inforaise.com

  • RE: One more SQL puzzle

    CREATE TABLE #Output (ID INT NOT NULL IDENTITY(1,1), NAME VARCHAR(50))

    INSERT INTO #Output

    SELECT Name FROM Table1

    UNION ALL

    SELECT Name FROM Table2

    SELECT * FROM #Output

    DROP TABLE #Output

    Prasad Bhogadi
    www.inforaise.com

  • RE: Transposing columns

    Your question is little ambiguous, it would make it more clear if you could just post with some sample data as to how it is currently stored in the table...

    Prasad Bhogadi
    www.inforaise.com

  • RE: Query to update table

    Hi John, thanks for setting the things straight. It is as simple as what you said

    SELECT

    a.CompanyID,

    a

    .CompanyName

    Prasad Bhogadi
    www.inforaise.com

  • RE: Query to update table

    Write a UDF to fetch the count for each CompanyID and call it from your select query.

    Thanks

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: RE: Deploy Reports

    Yes, it definitely needs.

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: Error Handling Within a Transaction

    After declarations section in the beginning of your procedure.

    SET @ErrorTotal = ' '

    and try....

    Thanks

     

    Prasad Bhogadi
    www.inforaise.com

  • RE: Problem with Inner Joins

    Check the output of this query

    SELECT

    DISTINCT A.CompanyName

    FROM

    dbo

    .Leads L

    INNER

    Prasad Bhogadi
    www.inforaise.com

  • RE: Generating Dates

    Do you have a range of dates ? I mean is the above requirement for a specific period of dates.

    If you know your startDate and EndDate

    DECLARE @StartDate DATETIME

    DECLARE @EndDate DATETIME

    DECLARE...

    Prasad Bhogadi
    www.inforaise.com

Viewing 15 posts - 121 through 135 (of 455 total)