Forum Replies Created

Viewing 15 posts - 1,846 through 1,860 (of 3,232 total)

  • RE: Inserting From 1 table into 2 tables - Retaining Relationship Between Data

    Thanks. Your example is different that what I thought you were after. I was thinking that you wanted to split the data differently as in 1/2 of the...

    John Rowan

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

  • RE: Inserting From 1 table into 2 tables - Retaining Relationship Between Data

    OK, we're getting there. Now, what would you like TableB and TableC to look like based off of the sample data you've provided for tableA?

    TableB

    ????

    TableC

    ????

    John Rowan

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

  • RE: Inserting From 1 table into 2 tables - Retaining Relationship Between Data

    What you are asking for does not make sense. If you are going to put half of TableA's rows into TableB and half into TableC, what is with TableB's...

    John Rowan

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

  • RE: Inserting From 1 table into 2 tables - Retaining Relationship Between Data

    Did you read the link? What I want is in my post. I want you to mock up an example that we can work with. Help us...

    John Rowan

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

  • RE: IF Statement with in a SELECT statement

    John is right. If you are going to scale your original query out to gather data from multiple tables as such, a UNION is probably the best way to...

    John Rowan

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

  • RE: Inserting From 1 table into 2 tables - Retaining Relationship Between Data

    This sounds pretty simple, but you'll need to provide more information to get good help on this one. How about some table DDL and sample data. Better yet,...

    John Rowan

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

  • RE: Efficient solution using TSQL

    I'm not sure I fully understand what you are after here, but here's a go using Kent's sample data:

    SELECT f1.*

    FROM @Fruit f1

    LEFT JOIN...

    John Rowan

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

  • RE: Joining Union Queries

    Yes, use derived tables. It's hard to give you a good example without knowing more of your situation. If you need more help, post more info. on your...

    John Rowan

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

  • RE: Inserting From 1 table into 2 tables - Retaining Relationship Between Data

    This sounds pretty simple, but you'll need to provide more information to get good help on this one. How about some table DDL and sample data. Better yet,...

    John Rowan

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

  • RE: Slow performance of database

    An average disk queue length of 50-60 tells me that you have an I/O bottleneck. The danger of using a SAN for DB storage is that the storage admins...

    John Rowan

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

  • RE: Log Shipping Solution for 500+ databases

    This may help: http://www.sqlservercentral.com/articles/Administering/customlogshipping/1201/. I've implemented a variation of this and it has been working for about 1 year with very little intervention/maintenance.

    John Rowan

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

  • RE: SQL Server Locks Up

    Thanks for the follow up. Glad to hear you've figured it out. Check to make sure that the autoshrink property is not enabled.

    John Rowan

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

  • RE: How to write SQL query to find a word in string"

    Check your exectution plan on this one and watch your indexes. Using LIKE with a leading wildcard will result in a table scan if you're not careful. From...

    John Rowan

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

  • RE: IF Statement with in a SELECT statement

    I hope that helps, but like John M. said, your description is a bit confusing so my reply was kind of a stab in the dark at what you wanted....

    John Rowan

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

  • RE: IF Statement with in a SELECT statement

    Well, I can't tell from your description what type of join you need so you'll have to do that part but this should get you what you want. My...

    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,846 through 1,860 (of 3,232 total)