Forum Replies Created

Viewing 15 posts - 151 through 165 (of 920 total)

  • RE: 601: Could not continue scan with NOLOCK due to Data movement

    The package you're running does more thasn the stored proc you've shown. Looks like a full DB restore was doen, then something ran that caused this error, then the...


    And then again, I might be wrong ...
    David Webb

  • RE: Fibonacci numbers using a function.

    As Sean said, you can't return 20 numbers in an int. You could string them together in a single return value like so:

    create function fn_fibo(@end int)

    returns varchar(255)

    as

    begin

    declare @a int,...


    And then again, I might be wrong ...
    David Webb

  • RE: 601: Could not continue scan with NOLOCK due to Data movement

    Sorry, I mis-read that. What command in the job is actually issuing the error? Do you have the complete error log from the package execution?


    And then again, I might be wrong ...
    David Webb

  • RE: 601: Could not continue scan with NOLOCK due to Data movement

    The first question would be: What's the purpose of the NOLOCK? Can you just take it out?


    And then again, I might be wrong ...
    David Webb

  • RE: BCP Error

    How did you generate the format file? First thing I see is that the format file describes the input as being tab delimited, but the input is comma delimited...


    And then again, I might be wrong ...
    David Webb

  • RE: HIERARCHYID Get Last Node

    A very efficient character splitting function can be found here:

    http://www.sqlservercentral.com/articles/Tally+Table/72993/

    The link to the discussion in the article is also worth a read. Lots of great information to be gleaned...


    And then again, I might be wrong ...
    David Webb

  • RE: Problem with a subquery format

    Not really sure what you're trying to do here, but the query that has the column d_created is a different query than the second one. The c alias in...


    And then again, I might be wrong ...
    David Webb

  • RE: BCP Error

    Could you post the definition of the target table, the format file, and a few rows of data for us to test with? Pretty sure you'd get a qucik...


    And then again, I might be wrong ...
    David Webb

  • RE: SQL 2008 R2 Geometry Question

    Hmmmmm... This return 1 for me:

    create table box (

    shape geometry null)

    insert box(shape) values(geometry::STGeomFromText('POLYGON((-125.37123023799995 60.111279971000044,

    -125.37123023799995 40.361753622000037, -50.418208553999932 39.647915321000028,

    -50.418208553999932 60.349226071000032, -125.37123023799995 60.111279971000044))', 0))

    DECLARE @x float;

    DECLARE @y float;

    DECLARE @h geometry;

    SET...


    And then again, I might be wrong ...
    David Webb

  • RE: SQL 2008 R2 Geometry Question

    Wouldn't it be the normal:

    SELECT @h = Shape FROM GIS_VECTOR.GIS.Box


    And then again, I might be wrong ...
    David Webb

  • RE: Connect to a remote sql server using stunnel

    Is the default database for the user you are loging in as set up correctly? Does that user have an id in that database?


    And then again, I might be wrong ...
    David Webb

  • RE: Connect to a remote sql server using stunnel

    The server is set to use SQL Server authentication?


    And then again, I might be wrong ...
    David Webb

  • RE: Deadlocks gone?

    Did you run a maintenance plan over the weekend that updated statistics or rebuilt indexes?


    And then again, I might be wrong ...
    David Webb

  • RE: CASE statement not working properly

    Can you print both variables before and after the 'select'. How does the date variable get set? What are the data types for the variables?


    And then again, I might be wrong ...
    David Webb

  • RE: Restore database from SQL Server 2012 to SQL Server 2008 R2

    As far as I know, there is no way to do a backward restore, even if the database was in a compatibility mode that matched the lower version. The...


    And then again, I might be wrong ...
    David Webb

Viewing 15 posts - 151 through 165 (of 920 total)