Forum Replies Created

Viewing 15 posts - 2,866 through 2,880 (of 3,232 total)

  • RE: Scheduling DTS Package failing

    Ah, I appologize.  I did not read your question correctly.  I was thinking that your error was during runtime. 

    John Rowan

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

  • RE: Combining rows in table with 3m rows

    1. Move duplicates to temp tables.

    2. Delete values from base tables.

    3. Insert from temp tables into base tables and use SUM and GROUP BY to perform your roll up.

    John Rowan

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

  • RE: Scheduling DTS Package failing

    Once you schedule the package, SQL Server creates a job to execute the package.  In EM, go to Management>>SQL Server Agent>>Jobs and find the job for your package.  Look at the...

    John Rowan

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

  • RE: self-join question

    I am still not real clear on what you want your end result to be.  Can  you post some sample data and an example of how you want your results...

    John Rowan

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

  • RE: T-sQL datetime question

    You need a WHERE clause to limit your results to the last 4 months. 

    John Rowan

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

  • RE: Output to file error

    Your BCP syntax is fine.  You are seeing a problem with how xp_cmdshell is interpreting the double quotes.  Try using set quoted_identifier on before your exec statement. 

    John Rowan

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

  • RE: Stored Procedure Variables in INSERT STATEMENT

    You are getting this error because your variables, as you have them defined, are scoped to your current stored procedure.  When you call sp_executeSQL, you enter a new scope so...

    John Rowan

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

  • RE: Temp tables and NOT NULL

    That's what I thought you were saying.  There will be a small amount of overhead in, like you said, checking for the nullness of the column upon insert, but I do...

    John Rowan

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

  • RE: SQL AUDIT

    Or leave it there, but have your trigger code check for a flag that tells it whether auditing is on or off.

    John Rowan

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

  • RE: Why does "alter column set default" fail ??

    ALTER TABLE dbo.CommissionPayment ADD CONSTRAINT [DF_Amount] DEFAULT (0) FOR [Amount]

    John Rowan

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

  • RE: Temp tables and NOT NULL

    Are you saying that columns in your temp tables are defined as NOT NULL?

    John Rowan

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

  • RE: Stored Procedure Variables in INSERT STATEMENT

    The only way you could do this in a stored procedure would be to use dynamic SQL as David has shown.  I, personally, would come up with a different solution...

    John Rowan

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

  • RE: SP_configure changes -How

    "The new server only has 745 MB."

    745 MB??  You need more memory.  If you've retested and everything works fine with more memory (on your old server) and you are getting...

    John Rowan

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

  • RE: SP_configure changes -How

    Is 2GB all you have installed on the server?  How much memory was allocated to SQL Server on your old server?  Is this new server servicing more databases than the...

    John Rowan

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

  • RE: SP_configure changes -How

    Ah, I thought you were getting the memory error while trying to move the database.  Now it makes more sense.  Look at your Max Server Memory setting.  You have it...

    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,866 through 2,880 (of 3,232 total)