Forum Replies Created

Viewing 15 posts - 3,181 through 3,195 (of 6,036 total)

  • RE: Using the result set of a stored procedure...?

    Stored procedure may return results via output parameters, output parameters+recordset, multiple recordsets, temp table(s), etc.

    Metadata for which of these options you want to find?

  • RE: Sql Query

    goodguy (1/15/2008)Pardon me for nitpicking, if the alias 't' is assigned in the outer query, how can it be recognised inside the inner query?

    All aliases assigned in outer queries, are...

  • RE: Using the result set of a stored procedure...?

    CREATE TABLE ResultSetYeildingProc (...)

    INSERT INTO ResultSetYeildingProc

    exec usp_myResultSetYeildingProc

    SELECT * FROM ResultSetYeildingProc

  • RE: Sql Query

    I believe error explains itself.

    2 or more ID's have the same description.

    Run

    [Code]select COUNT(id), description

    from tblProgram

    GROUP BY description

    HAVING COUNT(id) > 1[/Code]

    and see which description(s) is an offender.

    P.S. You should...

  • RE: Rollback

    IF @@ROWCOUNT > 10 -- assume that normal query to affect not more than 10 rows

    ROLLBACK

    ELSE

    COMMIT

  • RE: BULK INSERT & Text Qualifier

    For this kind of files it's better to use ODBC drivers.

    They read those strings with identifiers properly.

    I created text file TestInsert.txt in the folder C:\TextFiles (local to the SQL Server...

  • RE: LTRIM linked field

    It's acceptable if number of rows never gonna exceed 1000.

    Then it's gonna be another topic in "Performance" forum.

    If you really cannot trim the ID's on insert (did you think about...

  • RE: BULK INSERT & Text Qualifier

    All of you are wrong.

    Using "," as delimites is an error waiting to happen.

    mdjtlj, ask you supplier to build a test file containing '19" Monitor'.

    Then try to process that file.

  • RE: Deadlock issue need recommendations

    You need to pinpoint the row(s) for UPDATE.

    I guess your conditions in WHERE clause are such they cause table/index scan and lock all scanned records.

    1st thing you need to try...

  • RE: Update text in table column with ntext datatype

    SQL Server is not a text editor.

    It's Relational Database Management System.

    You have to choose:

    - either to store you data in proper relational database and use RDMS to manage it;

    - or...

  • RE: Start a process and return

    Schedule a job for the next second.

    Job must be created earlier. Trigger just should schedule it for one-off execution as GETDATE() + 1s.

  • RE: Index for optimizing query

    How do you know that?

    I use to think.

    The 4581 ms is in the Query Analyzer.

    QA is a front end application.

    The only difference essential (in our...

  • RE: Index for optimizing query

    So, it gives you the answer:

    All the time is spent on uploading data to front end.

    There is nothing to improve in SQL Server performance.

    Improve your upload channel.

    Or don't store blobs...

  • RE: Finding the source of a query showing up in SQL Profiler

    Because it takes about a minute to execute that query you may add BatchStarted event in your trace and try to catch its SPID in master..sysprocesses while it's being executed.

    No...

  • RE: Index for optimizing query

    How long does it take to execute the version of query I posted?

Viewing 15 posts - 3,181 through 3,195 (of 6,036 total)