Forum Replies Created

Viewing 15 posts - 1,516 through 1,530 (of 3,232 total)

  • RE: Delete then Insert

    I'm a bit confused by your last example. Your update does not show anything being updated. It sounds to me like your business key is Project_ID, Product and...

    John Rowan

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

  • RE: SQL server agent

    I'm not sure of the answer here, but I see that this post has been sitting out there quite a while.

    An easy way to find out would be...

    John Rowan

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

  • RE: Auto Creation and Insertion Of Table Through Executing Procedure

    I'm not sure I follow you 100% here. Can you give an example of how you want to call the SP and what you expect to be able to...

    John Rowan

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

  • RE: Please Guide How To Restore Backup to new database?

    nwlibrarian (1/9/2009)


    Quite honestly I wouldn't fight with it. I would restore the database under the original name "cbs_test"; then right-click on the database and rename it. It should make the...

    John Rowan

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

  • RE: Cursor - passing @dbname to INSERT STATEMENT

    I am not aware of it being depricated. It exists in SQL Server 2008 as well.

    John Rowan

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

  • RE: Cursor - passing @dbname to INSERT STATEMENT

    Yet another way, using Matt's example to build on.

    create TABLE #temp (ID INT IDENTITY (1,1) PRIMARY KEY CLUSTERED, ServerName sysname, DBName sysname, Size int, ReadingDate datetime)

    EXEC sp_MSforeachdb ' USE ?

    INSERT...

    John Rowan

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

  • RE: Select Statement

    Mike and Chris are absolutely correct. You need to explicitly list all columns that you want to select in the SELECT clause of your statement. This is just...

    John Rowan

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

  • RE: Insert scripts takes so much time ? Any alternative.

    rtbhosale (1/9/2009)


    Yes you are right.

    I have tried the BULK INSERT by using .csv file it is working correct.

    Because i have not specified the KEEPIDENTITY attribute it was giving incorrect result.

    Thank...

    John Rowan

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

  • RE: How to Display Data Vertically?

    Would you mind if I asked why you would want to do that anyway? Is this for a report? Are you planning to reference the value as a...

    John Rowan

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

  • RE: clustered index hell

    It sounds like you're aware of this already, but it's worth mentioning. Depending on the insert volume and size of these tables, adding the clustered index on a GUID...

    John Rowan

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

  • RE: Create new primary key

    1. Create New PK on parent table.

    2. Drop FKs to child tables.

    3. Add new parent PK column to child tables.

    4. Update Child table with new PK value from parent -...

    John Rowan

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

  • RE: Run SSIS against Multiple Databases.

    Glad to help.

    John Rowan

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

  • RE: Run SSIS against Multiple Databases.

    OK, sorry. Here's a bit more info into the interworkings of this.

    First, the Result Set tab on your Execute SQL task to get your hosts needs to be set...

    John Rowan

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

  • RE: Run SSIS against Multiple Databases.

    This one is fairly straight forward. In fact, there is a good exampe out on Pragmatic Works web site that I don't have time to locate for you. ...

    John Rowan

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

  • RE: getting results from a cursor in a single table

    You'd have to store the individual results in some sort of temporary storage (table variable, temp table). Better yet, don't use a cursor. If you are cursoring through...

    John Rowan

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

Viewing 15 posts - 1,516 through 1,530 (of 3,232 total)