Forum Replies Created

Viewing 15 posts - 316 through 330 (of 5,503 total)

  • RE: Cursor fetch loops endlessly

    Wait a minute, Jeff!

    You suggest to "simply" add a FROM clause to the update statement? (The alias isn't mandatory, is it?)

    Interesting, what kind of "previous experience" you can refer...

  • RE: Cursor fetch loops endlessly

    I can't reproduce the scenario you described.

    Based on your sample data the code runs as expected (I'm purposely not saying it runs "fine" 😉 ).

    If you already tried several filters...

  • RE: Cursor fetch loops endlessly

    Can you provide a test scenarion so we can reproduce it on our machines?

    I'm confident the c.u.r.s.o.r. *cough* doesn't restart "all of a sudden, all by itself".

    My guess would be...

  • RE: how to hide schema?

    You must not be any specific permission for this user (or role) for Schema A. Otherwise the "least privilege" concept would apply and you might not be able to call...

  • RE: how to hide schema?

    You'll need to make sure that the owner of both schemas and the sprocs being referenced is the same (e.g. 'dbo'). Then you don't have to do anything special other...

  • RE: Cursor fetch loops endlessly

    The best solution would be to get rid of c.u.r.s.o.r. *cough* in the first place.

    Insert all data into lpn at once and use the OUTPUT clause to get the returned...

  • RE: Always save query to file

    You would need to setup a server side trace (runs without the profiler User Interface being required, look up "sql server side trace"). Otherwise there'll be quite some overhead, even...

  • RE: Always save query to file

    Let me repeat what I posted before. SSMS has no option out of the box.

    As much as you request it, if the software doesn't have this option, it doesn't help...

  • RE: T-SQL Query

    If you can't change the designe then you'll need to apply the same concept using subqueries (or cte's).

    You've already described the WHERE condition of the two subqueries involved. All...

  • RE: Need Help

    There's a duplicate reference to the abc_NODE node in your node reference

    ('(abcS/abc[@NAME="XXX"])[1]/abc_NODE[1]//abc_NODE/AVAL') AS X(c)) should be

    ('(abcS/abc[@NAME="XXX"])[1]/abc_NODE[1]/AVAL') AS X(c))

  • RE: Create table in MS SQL Server ffrom Quickbook

    Export the data from Quickbook (e.g. as formatted txt files) and use SSIS to read the folder and import the data.

    If you don't want to use SSIS , you could...

  • RE: 2 records at a time?

    Since you already have the BorrowerOrder column I'm not sure why it would need to be so complicated...

    Wouldn't a simple BorrowerOrder < 2 be enough?

    SELECT

    *

    FROM

    #t AS t

    WHERE BorrowerOrder <...

  • RE: From Oracle to SQL Server real time

    You might want to ask this in an Oracle forum.

    The question is related to the source (Oracle) and not to the target (SSIS or SQL Server).

    Anyhow, the solution won't be...

  • RE: T-SQL Query

    The solution is easy: it's called "Normalization"!

    Move the column [Inventory] to a separate table with a reference to [Item] and move the rows with non-blank values.

    Then it's just a simple...

  • RE: Always save query to file

    There are Add-Ons available that provide the option of a "query history". Tools like SQL Prompt (Red Gate) or SSMSBoost (Solutions Crew).

    You'd need to find the folder where this information...

Viewing 15 posts - 316 through 330 (of 5,503 total)