Forum Replies Created

Viewing 15 posts - 2,536 through 2,550 (of 3,232 total)

  • RE: picking out dedicated sql server

    Are you saying that your want to put the transaction logs on the same mirrored set of disks with the OS?  Where is your paging file?

    The ideal situation would be seperate...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Unable to schedule a DTS package that I can run manually.

    How are you scheduling it, SQL Agent?  Who is the job owner?  Which account is your SQL Agent running under?  How were you logged in when you ran it manually?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Replace all ful stops in all records with nothing

    Ken's example does just that.  Why don't you follow Remi's advice and post some sample data and your expected output?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Select statement to reduce precision?

    You're going down the right path, but try using decimal data type and setting the precision and scale.  For example,

     

    declare @money money

    set @money = 150.2315

    select CAST(@money as decimal(18,2))

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Error in my stored procedure

    Your error is comming from your UNION statement.  Look up UNION versus UNION ALL in BOL.  UNION is pretty much the same as doing a DISTINCT on the UNIONed recordset...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: duplicate key row??

    Well, what was the problem?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: duplicate key row??

    I would step through your code and find out what the value of @sHMC and @iRowCounter are right before the error.  I think you'll find that the value already exists. ...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: duplicate key row??

    Can you post your table DDL (including indexes) for the Person table?  Also, are you starting with an empty table?  The only way to get this error is if the...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: duplicate key row??

    The row already exists in the index PersonUserName.  Whether or not you've ran a previous INSERT, the row already exists.  That is the only way to produce this message!  It...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: DTS step sequence

    When you look at your DTS package in the designer window, you should see arrows between tasks/connections.  These arrows show you the order of operations for your package.  Add in...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: What is =N'''' xxx '''' ?

    N'A01' tells SQL Server to treat the contents of the string, in this case A01, as Unicode.  If you look at the sysusers.name column, it is of data type SysName. ...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Can I SELECT FROM a Stored PROC?

    You can use an INSERT INTO #tmpTable(col1, col2, etc) SELECT EXEC sp_stored_procedure @parameter1, @parameter2, @etc

    There are some pros/cons you may want to know regarding this approach that I do not have...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: I need help on a good locking and rollback strategy

    Based on the code you've posted, it is unclear as to exactly what you are trying to accomplish.  What are you doing with the results from the SELECT?  Is there...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: @@rowcount assignment

    Thanks for the example Jeff. 

    Faizjmc, it is important to note that Jeff set the ROWCOUNT back to zero after he was finished.  Don't forget to do this!  Forgetting to...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: I/O Separation

    Thanks for the detail Colin.  Yes, it makes loads of sense.  I am aware of the differences in read/write performance between RAID levels, but I guess that part that got me...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 2,536 through 2,550 (of 3,232 total)