<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Databases</title>
    <description>Databases</description>
    <link>http://rss.iscabbs.com/</link>
    <item>
      <title>(SilverEdge/55442) BWS&gt; That's what I was leaning towards.  However, I'm trying to ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55442</link>
      <description>&lt;pre&gt;BWS&amp;gt; That's what I was leaning towards.  However, I'm trying to make this as&lt;br /&gt;simple as possible for my users.  They aren't too tech savy.  As it is, it&lt;br /&gt;might become a moot point as my supervisor asked about an interface for these&lt;br /&gt;files, so that they wouldn't have to worry about putting Excel into window mode&lt;br /&gt;to view both of them - again, to make it easier on the non-tech-savy users.&lt;br /&gt;&lt;br /&gt;Thank you anyway for the workaround though.  :)&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 20 Feb 2012 09:37:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55442</guid>
      <author>SilverEdge@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Boogie With Stu/55441) SilverEdge:  our way around that Excel-leading quote business wa...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55441</link>
      <description>&lt;pre&gt;SilverEdge:  our way around that Excel-leading quote business was to always&lt;br /&gt;export the fields with a leading-quote character so stoopid Excel wouldn't&lt;br /&gt;strip our leading zero characters in text fields, and then make the end user&lt;br /&gt;do a find-and-replace (ctrl-H on Windows) in Excel, finding any single-quote&lt;br /&gt;character and replacing it with....a single-quote character.  Like magic,&lt;br /&gt;they all disappear (after Excel iterates over every cell in the worksheet),&lt;br /&gt;and the leading zeroes are intact.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 19 Feb 2012 03:11:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55441</guid>
      <author>Boogie With Stu@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Kraven/55439) Try this, '="'+VALUE_WITH_LEADING_ZEROS_HERE+'"'</title>
      <link>http://rss.iscabbs.com/forums/61/read/55439</link>
      <description>&lt;pre&gt;Try this, '=&amp;quot;'+VALUE_WITH_LEADING_ZEROS_HERE+'&amp;quot;'&lt;br /&gt;I was just having that same problem and now its gone, though i guess it may&lt;br /&gt;cause problems with formulas&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 14 Feb 2012 12:26:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55439</guid>
      <author>Kraven@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(SilverEdge/55437) Doing a query that will export into a CSV to be viewed in Excel....</title>
      <link>http://rss.iscabbs.com/forums/61/read/55437</link>
      <description>&lt;pre&gt;Doing a query that will export into a CSV to be viewed in Excel.  This will run&lt;br /&gt;automatically and the user will open it as needed.  Unfortunately, a couple of&lt;br /&gt;the fields are IDs, and sometimes have a 0 in front of the number.  Excel by&lt;br /&gt;default makes them go away, but we need to see them.  I modified the SQL query&lt;br /&gt;to be '''' + A1.PI_ID, so that the result is something like '012345.  My hope&lt;br /&gt;was that Excel would treat it as text.  Well, it does.  However, it still&lt;br /&gt;displays the '.  Odds are it is just displaying the ' and the ' makes it no&lt;br /&gt;longer a number.  What can I do to stop this?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 14 Feb 2012 11:05:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55437</guid>
      <author>SilverEdge@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55436) Actually that is not Oracle-specific, and I think is part of som...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55436</link>
      <description>&lt;pre&gt;Actually that is not Oracle-specific, and I think is part of some version of&lt;br /&gt;ANSI SQL. So it should work for most databases, and yes it is useful. You can&lt;br /&gt;extend it, e.g. &amp;quot;order by 3,1,2,4&amp;quot;. Also useful for calculated columns that&lt;br /&gt;even if they are named can often not use the name/alias.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 06 Feb 2012 09:30:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55436</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(LongTimeLurker/55435) Fav 'lil Oracle SQL shortcut:</title>
      <link>http://rss.iscabbs.com/forums/61/read/55435</link>
      <description>&lt;pre&gt;&lt;br /&gt;Fav 'lil Oracle SQL shortcut:&lt;br /&gt;&lt;br /&gt;If you are selecting from a table and you want to sort the output by&lt;br /&gt;'super_huge_long_column_name' and that is the 4th column in the output then you&lt;br /&gt;can go:  Select * from MyTable order by 4;&lt;br /&gt;&lt;br /&gt;schweet :-)&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 06 Feb 2012 08:45:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55435</guid>
      <author>LongTimeLurker@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55434) lol - I know what you mean. I think many of us just pick up a to...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55434</link>
      <description>&lt;pre&gt;lol - I know what you mean. I think many of us just pick up a tool and run with&lt;br /&gt;it without really learning all the features. I just learned some similar&lt;br /&gt;shortcuts with Oracle's PL/SQL, though by watching someone not a class.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 06 Feb 2012 05:51:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55434</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Stilgar/55433) So I'm in SQL Server training this week.  I hate it when I learn...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55433</link>
      <description>&lt;pre&gt;So I'm in SQL Server training this week.  I hate it when I learn about dumb&lt;br /&gt;shit that I should have known all along.  I just learned that in SSMS, you can&lt;br /&gt;drag db, table, column, etc names into the query window rather than typing all&lt;br /&gt;that shit.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 06 Feb 2012 05:45:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55433</guid>
      <author>Stilgar@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Danix/55432) BDavis&gt; Let's just say that a full filesystem made me turn into ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55432</link>
      <description>&lt;pre&gt;BDavis&amp;gt; Let's just say that a full filesystem made me turn into an SQL Server&lt;br /&gt;expert overnight. It also led to the people responsible for switching the&lt;br /&gt;recovery model to &amp;quot;Simple&amp;quot; on that particular production database getting axed.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 30 Jan 2012 07:09:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55432</guid>
      <author>Danix@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55431) Yes, you can recover with transaction logs. But if you've never ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55431</link>
      <description>&lt;pre&gt;Yes, you can recover with transaction logs. But if you've never done that it&lt;br /&gt;can require a lot of explanation, so I was trying to keep it simpler. :-P&lt;br /&gt;And yes it would assume you were using a full recovery model. It is also&lt;br /&gt;often possible to recover without an intact log file. As with many computer&lt;br /&gt;things, it just depends how important it is and how much expertise you have.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 30 Jan 2012 07:02:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55431</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Danix/55430) BDavis&gt; Theoretically, the transaction logs should be able to fi...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55430</link>
      <description>&lt;pre&gt;BDavis&amp;gt; Theoretically, the transaction logs should be able to fix the DB if it&lt;br /&gt;was shut down in an &amp;quot;unclean&amp;quot; state, shouldn't it? Unless they used the&lt;br /&gt;&amp;quot;Simple&amp;quot; recovery model, which would mean they're screwed :(&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 30 Jan 2012 05:34:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55430</guid>
      <author>Danix@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55429) The only problem with reattaching the database files would be th...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55429</link>
      <description>&lt;pre&gt;The only problem with reattaching the database files would be that it probably&lt;br /&gt;did not get a clean shutdown. So if restoring from backup is acceptable that is&lt;br /&gt;likely a safer choice. You may be fine with the reattach, but I would check the&lt;br /&gt;database and server logs thoroughly afterwards, run integrity checks, etc. to&lt;br /&gt;be sure you don't end up with something out of whack showing up later.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 28 Jan 2012 20:41:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55429</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Gooseman/55428) If you have a backup of the DB, you should be able to restore it...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55428</link>
      <description>&lt;pre&gt;If you have a backup of the DB, you should be able to restore it once SQL is&lt;br /&gt;reinstalled.  I've moved DBs that way before.  I hope, though, that it's a real&lt;br /&gt;DB backup, and not just a backup of the DB files - that doesn't always work as&lt;br /&gt;well.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 28 Jan 2012 17:18:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55428</guid>
      <author>Gooseman@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Keogk/55427) I have a database riunning on a MS sql server 2008.</title>
      <link>http://rss.iscabbs.com/forums/61/read/55427</link>
      <description>&lt;pre&gt;I have a database riunning on a MS sql server 2008.&lt;br /&gt;The main HD failed and the raid also failed so the OS was lost.&lt;br /&gt;The drive with the database is fine and I have a backup of the database as well&lt;br /&gt;Can I just reinstall the OS on new drives. Give the server the same name and IP&lt;br /&gt; reinstall sql and attach the database again. Or will I need to do more ?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 28 Jan 2012 16:53:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55427</guid>
      <author>Keogk@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55426) no, it cannot.  not enough data fields.  Tried that first, and A...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55426</link>
      <description>&lt;pre&gt;no, it cannot.  not enough data fields.  Tried that first, and Access calls&lt;br /&gt;them crosstabs.  I found something that works, but thanks.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 17 Jan 2012 16:19:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55426</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55425) Smoke Eater&gt; I think what you want can also be done with pivot q...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55425</link>
      <description>&lt;pre&gt;Smoke Eater&amp;gt; I think what you want can also be done with pivot queries, if your&lt;br /&gt;database supports it. Just a thought.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 17 Jan 2012 16:15:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55425</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55424) http://allenbrowne.com/func-concat.html</title>
      <link>http://rss.iscabbs.com/forums/61/read/55424</link>
      <description>&lt;pre&gt;http://allenbrowne.com/func-concat.html&lt;br /&gt;&lt;br /&gt;Please disregard my previous post.  Not two minutes after I posted it, though&lt;br /&gt;I'd been searching for a while, I found the above link, that led me to a VBA&lt;br /&gt;function called ConcatRelated(), and that solves my problem!&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 17 Jan 2012 10:47:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55424</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55423) I'm having a serious brain cramp here....I *know* I used to know...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55423</link>
      <description>&lt;pre&gt;I'm having a serious brain cramp here....I *know* I used to know how to do&lt;br /&gt;this.&lt;br /&gt;&lt;br /&gt;I have a table with two fields: CaseNumber and TextData (not the real fields,&lt;br /&gt;but okay).&lt;br /&gt;&lt;br /&gt;Can anyone come up with a query that will give me all of&lt;br /&gt;&lt;br /&gt;CaseNumber TextData TextData TextData?&lt;br /&gt;&lt;br /&gt;There should be as many TextData fields in there as there are for that record,&lt;br /&gt;and the rest can be blank.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For example, if I have this:&lt;br /&gt;&lt;br /&gt;CaseNumber     TextData&lt;br /&gt;1              ABC&lt;br /&gt;1              DEF&lt;br /&gt;1              GHI&lt;br /&gt;&lt;br /&gt;I want this:&lt;br /&gt;&lt;br /&gt;CaseNumber     TextData   TextDAta   TextData&lt;br /&gt;1              ABC        DEF        GHI&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 17 Jan 2012 10:19:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55423</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Raubvogel/55422) I want to have an user in mysql that can only run show slave sta...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55422</link>
      <description>&lt;pre&gt;        I want to have an user in mysql that can only run show slave status.&lt;br /&gt;I take that a &amp;quot;grant show slave status&amp;quot; would work, but on which database?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 17 Jan 2012 08:34:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55422</guid>
      <author>Raubvogel@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Boogie With Stu/55421) Oracle's MERGE INTO syntax is quite handy and flexible for doing...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55421</link>
      <description>&lt;pre&gt;Oracle's MERGE INTO syntax is quite handy and flexible for doing that UPSERT&lt;br /&gt;stuff in just one statement.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 15 Jan 2012 19:06:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55421</guid>
      <author>Boogie With Stu@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(JL/55420) To be database-neutral, you do an update, and if there were &lt;1 r...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55420</link>
      <description>&lt;pre&gt;To be database-neutral, you do an update, and if there were &amp;lt;1 rows updated,&lt;br /&gt;you do an insert.&lt;br /&gt;&lt;br /&gt;Some databases support things like UPSERT which does either update or insert.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 15 Jan 2012 16:40:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55420</guid>
      <author>JL@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Kena/55419) What's the "right" way to, given a value, do either an insert or...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55419</link>
      <description>&lt;pre&gt;What's the &amp;quot;right&amp;quot; way to, given a value, do either an insert or an update, as&lt;br /&gt;appropriate (based on whether or not the corresponding record already exists)?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 15 Jan 2012 12:17:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55419</guid>
      <author>Kena@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55418) Is there anyone online now who is an Oracle guru?  If so, please...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55418</link>
      <description>&lt;pre&gt;Is there anyone online now who is an Oracle guru?  If so, please X me.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 11 Jan 2012 08:07:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55418</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55417) InnoDB, usually, but other engines as well.</title>
      <link>http://rss.iscabbs.com/forums/61/read/55417</link>
      <description>&lt;pre&gt;InnoDB, usually, but other engines as well.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:59:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55417</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(River Rat/55416) JP, what engine are you running?  InnoDB or the other one?</title>
      <link>http://rss.iscabbs.com/forums/61/read/55416</link>
      <description>&lt;pre&gt;JP, what engine are you running?  InnoDB or the other one?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 09 Jan 2012 13:19:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55416</guid>
      <author>River Rat@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55415) My preference is to push backups to a drop location, then allow ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55415</link>
      <description>&lt;pre&gt;My preference is to push backups to a drop location, then allow the backup&lt;br /&gt;system to pull from the drop. It separates the creation of the backup from the&lt;br /&gt;archiving of the backups themselves. And it avoids exposing ssh/rsync access&lt;br /&gt;deeper into the network.&lt;br /&gt;&lt;br /&gt;Would this work for your case?&lt;br /&gt;&lt;br /&gt;    1. cronjob on DB server pushes to the drop location:&lt;br /&gt;&lt;br /&gt;        mysqldump -h localhost | gzip -1 &amp;gt; tempfile&lt;br /&gt;        mv tempfile /drop/`date +%F`.sql.gz&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    2. cronjob on backup server pulls from the drop location:&lt;br /&gt;&lt;br /&gt;        rsync -a --ignore-existing backup@dbserver:/drop/  /backups/dbserver/&lt;br /&gt;&lt;br /&gt;The --ignore-existing flag is there so a compromised dbserver can't overwrite&lt;br /&gt;prior backups. The `mv` is there so you don't introduce a race condition&lt;br /&gt;between the push and pull.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 09 Jan 2012 11:21:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55415</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Raubvogel/55414) I have a mysql server behind a webserver on the external</title>
      <link>http://rss.iscabbs.com/forums/61/read/55414</link>
      <description>&lt;pre&gt;        I have a mysql server behind a webserver on the external&lt;br /&gt;network. In our internal network I have the backup server. Which would&lt;br /&gt;be the smartest/most secure way to backup the server:&lt;br /&gt;&lt;br /&gt; 1) Have db server connect to a port in the firewal, which is forwarded&lt;br /&gt;to the backup server, and then rsync/whatever the db dump there.&lt;br /&gt;&lt;br /&gt; 2) Have backup server connect to a port in webserver which is then&lt;br /&gt;forwarded to db server. Now it can either then do a dump or grab a dump&lt;br /&gt;already waiting for it.&lt;br /&gt;&lt;br /&gt;One dump a day if it matters.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 09 Jan 2012 10:41:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55414</guid>
      <author>Raubvogel@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55413) Or `show create view NAME`. Either way, you get a shitty output....</title>
      <link>http://rss.iscabbs.com/forums/61/read/55413</link>
      <description>&lt;pre&gt;Or `show create view NAME`. Either way, you get a shitty output. :)&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 28 Dec 2011 06:06:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55413</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Kena/55412) Ah.  SELECT view_definition from information_schema.views where ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55412</link>
      <description>&lt;pre&gt;Ah.  SELECT view_definition from information_schema.views where table_name=foo;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 28 Dec 2011 05:43:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55412</guid>
      <author>Kena@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Kena/55411) I'm stuck.  How do I see how a view is constructed?  (MySQL)  "D...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55411</link>
      <description>&lt;pre&gt;I'm stuck.  How do I see how a view is constructed?  (MySQL)  &amp;quot;DESC &amp;lt;viewname&amp;gt;&amp;quot;&lt;br /&gt;just shows me the table properties, not how it was derived.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 28 Dec 2011 05:31:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55411</guid>
      <author>Kena@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55410) As I said, using the system catalogs it is certainly possible, I...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55410</link>
      <description>&lt;pre&gt;As I said, using the system catalogs it is certainly possible, I just do not&lt;br /&gt;know of something you can download where someone already did the grunt work.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 27 Dec 2011 10:35:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55410</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(The After Party/55409) BDavis</title>
      <link>http://rss.iscabbs.com/forums/61/read/55409</link>
      <description>&lt;pre&gt;BDavis&lt;br /&gt;&lt;br /&gt;  There has to be a way .. you can search all of the tables for column names,&lt;br /&gt;  so it wouldn't seem to far off to then use those column names&lt;br /&gt;  to query ..&lt;br /&gt;&lt;br /&gt;  I found the other table i was looking for so i'm not going to mess&lt;br /&gt;  around with a long running query who's synta i don't know.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 27 Dec 2011 06:03:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55409</guid>
      <author>The After Party@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55408) If you are desparate enough you might enable Oracle Text, though...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55408</link>
      <description>&lt;pre&gt;If you are desparate enough you might enable Oracle Text, though that seems&lt;br /&gt;like overkill. I don't know of anything that walks the system catalogs to do a&lt;br /&gt;search, but it could be written.&lt;br /&gt;&lt;br /&gt;As far as database models, as far as I know Oracle does not offer anything for&lt;br /&gt;free or built-in to the DBA tools. There are lots of 3rd party tools to reverse&lt;br /&gt;engineer a database. Many rely on referential integrity being defined in the&lt;br /&gt;database, which a shockingly large number of commercial apps do not define. The&lt;br /&gt;ones I am familiar with are not exactly cheap, though Google reveals a number&lt;br /&gt;of free ones that might be enough to get you through this. Just do a search for&lt;br /&gt;&amp;quot;database design reverse engineer free&amp;quot;.&lt;br /&gt;This one looked interesting if basic.  http://www.dbwrench.com/index.shtml&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 27 Dec 2011 05:40:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55408</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(The After Party/55407) Oracle 11g, record search</title>
      <link>http://rss.iscabbs.com/forums/61/read/55407</link>
      <description>&lt;pre&gt;Oracle 11g, record search&lt;br /&gt;&lt;br /&gt;  Is there SQL (or stored proc) that can search all tables for any rows&lt;br /&gt;  that contain a specific string? Yeah, I know that coudl take awhile.&lt;br /&gt;  Its a non-production environment. Somehow, there must be an entry in&lt;br /&gt;  the DB pointed to some old location, and I'd like to update it to&lt;br /&gt;  to point to the new location. The ecomerce server (ATG) is a freaking&lt;br /&gt;  nightmare of tables (well, at least for this non-dba, me). I'm sure&lt;br /&gt;  a table relationship diagram would help (don't know where it would be)&lt;br /&gt;  as I found one table with the old values and corrected it, but that didn't&lt;br /&gt;  sovle the problem. arg.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 27 Dec 2011 04:10:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55407</guid>
      <author>The After Party@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Banshee/55406) DOH!  My bad too.  There were actually two errors I should have ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55406</link>
      <description>&lt;pre&gt;&lt;br /&gt;DOH!  My bad too.  There were actually two errors I should have seen for&lt;br /&gt;myself.  The one being reported was the lack of a comma before the SUM.  And&lt;br /&gt;then as already spotted, the trailing parenthesis moved to right after the END.&lt;br /&gt;&lt;br /&gt;Works great!  Thanks.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 22 Dec 2011 11:30:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55406</guid>
      <author>Banshee@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55405) *smacks forehead*  Of course!!!!  Sorry Banshee, I should have c...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55405</link>
      <description>&lt;pre&gt;*smacks forehead*  Of course!!!!  Sorry Banshee, I should have caught that one.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 22 Dec 2011 09:21:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55405</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55404) Yes that is 2005, http://www.sqlteam.com/article/sql-server-vers...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55404</link>
      <description>&lt;pre&gt;Yes that is 2005, http://www.sqlteam.com/article/sql-server-versions.&lt;br /&gt;I think you have a misplaced closing parenthesis. Put it after the END instead&lt;br /&gt;of after MNCount. (I did not test this.)&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 22 Dec 2011 09:03:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55404</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55403) Possibly.  I'll have to check on it....</title>
      <link>http://rss.iscabbs.com/forums/61/read/55403</link>
      <description>&lt;pre&gt;Possibly.  I'll have to check on it....&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 22 Dec 2011 08:42:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55403</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Banshee/55402) Smoke Eater&gt;  I'm actually getting a "Incorrect syntax near keyw...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55402</link>
      <description>&lt;pre&gt;&lt;br /&gt;Smoke Eater&amp;gt;  I'm actually getting a &amp;quot;Incorrect syntax near keyword 'CASE'&lt;br /&gt;error:&lt;br /&gt;&lt;br /&gt;SELECT YOFFIC&lt;br /&gt;   SUM( CASE YSUBCL&lt;br /&gt;           WHEN 'M'&lt;br /&gt;              THEN 1&lt;br /&gt;           WHEN 'N'&lt;br /&gt;              THEN 1&lt;br /&gt;           ELSE 0&lt;br /&gt;           END AS MNCount)&lt;br /&gt;FROM Table.dbo.GNACMFF1&lt;br /&gt;GROUP BY YOFFIC&lt;br /&gt;&lt;br /&gt;This is SQL Server 9.0.4.229 -- which I think is 2005, no?&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 22 Dec 2011 08:03:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55402</guid>
      <author>Banshee@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55401) SFTT:</title>
      <link>http://rss.iscabbs.com/forums/61/read/55401</link>
      <description>&lt;pre&gt;SFTT:&lt;br /&gt;&lt;br /&gt;So my query would have had teh following results&lt;br /&gt;&lt;br /&gt;Category   AttributeCount&lt;br /&gt;--------   --------------&lt;br /&gt;bar              4&lt;br /&gt;baz              0&lt;br /&gt;foo              3&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 22 Dec 2011 07:59:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55401</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55400) Now, my solution gets all the categories rather than products......</title>
      <link>http://rss.iscabbs.com/forums/61/read/55400</link>
      <description>&lt;pre&gt;Now, my solution gets all the categories rather than products...because that's&lt;br /&gt;what your examples said.&lt;br /&gt;&lt;br /&gt;Also, it assumes that everything is in the one table.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 22 Dec 2011 07:58:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55400</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55399) SELECT TableA.Category,</title>
      <link>http://rss.iscabbs.com/forums/61/read/55399</link>
      <description>&lt;pre&gt;SELECT TableA.Category,&lt;br /&gt;   SUM( CASE Attribute&lt;br /&gt;           WHEN 'A'&lt;br /&gt;              THEN 1&lt;br /&gt;           WHEN 'B'&lt;br /&gt;              THEN 1&lt;br /&gt;           ELSE 0&lt;br /&gt;           END AS AttributeCount)&lt;br /&gt;FROM TableA&lt;br /&gt;GROUP BY Category&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 22 Dec 2011 07:55:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55399</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(JL/55398) How does the 'product' column come into play if you are only sum...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55398</link>
      <description>&lt;pre&gt;How does the 'product' column come into play if you are only summing up&lt;br /&gt;attribute existences?&lt;br /&gt;&lt;br /&gt;If you have multiple A attributes for the same product, should that only count&lt;br /&gt;as 1 towards the total?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 22 Dec 2011 07:54:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55398</guid>
      <author>JL@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Banshee/55397) MSSQL (2005, I think).  I'm struggling with a DB query that can ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55397</link>
      <description>&lt;pre&gt;&lt;br /&gt;MSSQL (2005, I think).  I'm struggling with a DB query that can return &amp;quot;zero&lt;br /&gt;values&amp;quot; within a count/group by.  Here's what I've got;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    TABLE A&lt;br /&gt;    category    product    attribute&lt;br /&gt;    --------------------------------------------------&lt;br /&gt;    foo         ABC        A&lt;br /&gt;    foo         DEF        Z&lt;br /&gt;    foo         GHI        A&lt;br /&gt;    foo         JKL        B&lt;br /&gt;    bar         MNO        A&lt;br /&gt;    bar         PQR        B&lt;br /&gt;    bar         STU        B&lt;br /&gt;    bar         VWX        B&lt;br /&gt;    baz         YZ1        C&lt;br /&gt;    baz         234        C&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now let's say I want to get a count of all the products that have the&lt;br /&gt;attributes&lt;br /&gt;A or B in each category, including a tally of those that don't.  So the results&lt;br /&gt;look like:&lt;br /&gt;&lt;br /&gt;    category    count&lt;br /&gt;    -------------------------&lt;br /&gt;    foo         3&lt;br /&gt;    bar         4&lt;br /&gt;    baz         0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And conversely, a count of all products in each category that do NOT have an&lt;br /&gt;attribute of A or B;&lt;br /&gt;&lt;br /&gt;    category    count&lt;br /&gt;    -------------------------&lt;br /&gt;    foo         1&lt;br /&gt;    bar         0&lt;br /&gt;    baz         2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What am I looking for here?  I was thinking this is a left outer join, but I'm&lt;br /&gt;getting tripped out when combining that with a count and group by clause.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 22 Dec 2011 05:23:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55397</guid>
      <author>Banshee@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Yorick/55396) In Oracle, you may want one of two different things.</title>
      <link>http://rss.iscabbs.com/forums/61/read/55396</link>
      <description>&lt;pre&gt;In Oracle, you may want one of two different things.&lt;br /&gt;Flashback Data Archive lets you store a history table that lets you&lt;br /&gt;recreate point-in-time results from a particular table.&lt;br /&gt;http://uhesse.wordpress.com/2009/10/23/total-recall-brief-introduction-into-fla&lt;br /&gt;shback-data-archive/&lt;br /&gt;&lt;br /&gt;Auditing allows for records of various operations to be saved to an audit&lt;br /&gt;trail.  There's no particular features for &amp;quot;time travel&amp;quot;, but it logs&lt;br /&gt;code and user changes as well.&lt;br /&gt;&lt;br /&gt;I think you want the flashback data archive.  I tried to use it in 9i&lt;br /&gt;and it was very clunky, but I suspect it is much better.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 20 Dec 2011 14:26:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55396</guid>
      <author>Yorick@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(JL/55395) After some reading and discussion, I'm going to recommend that m...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55395</link>
      <description>&lt;pre&gt;&lt;br /&gt;After some reading and discussion, I'm going to recommend that my client move&lt;br /&gt;from Sybase ASE 15 to Oracle, for two reasons:&lt;br /&gt;&lt;br /&gt;1. Materialized Views. Everyone has them, but not Sybase! This will allow me&lt;br /&gt;   to get automatic aggregate data and increase performance.&lt;br /&gt;&lt;br /&gt;2. A colleague said Oracle supports automatic &amp;quot;audit trail&amp;quot; functionalty to&lt;br /&gt;   track changed values. We currently do this in the application code, along&lt;br /&gt;   with triggers in the DB that populat an audit trail table.&lt;br /&gt;   I'm just learning about this, but has anyone used this in Oracle?&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 20 Dec 2011 11:09:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55395</guid>
      <author>JL@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55394) I have been working with databases long enough to have developed...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55394</link>
      <description>&lt;pre&gt;I have been working with databases long enough to have developed my own mental&lt;br /&gt;library of design patterns based on experience. But the question was&lt;br /&gt;interesting enough so I googled a bit and found this. Looks interesting.&lt;br /&gt;  http://databaseanswers.org/data_models/index.htm&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 18 Dec 2011 19:42:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55394</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(JL/55393) So I'm now further exploring some of the database design questio...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55393</link>
      <description>&lt;pre&gt;So I'm now further exploring some of the database design questions I asked&lt;br /&gt;earlier, and I'm getting  bit overwhelmed. I'm nowhere near a DB guru.&lt;br /&gt;&lt;br /&gt;Where would I go to get &amp;quot;Design Patterns&amp;quot; for databases, for lack of a better&lt;br /&gt;word?&lt;br /&gt;&lt;br /&gt;I really would love to see real-world cases where people say &amp;quot;We had problem X&lt;br /&gt;and Y, we needed Z, so we implemented solution ABC&amp;quot;.&lt;br /&gt;&lt;br /&gt;I'm not sure I'm qualified to be giving specific answers about how to best&lt;br /&gt;implement a database/warehouse design, but it's on me, so I'm doing the best I&lt;br /&gt;can ;)&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 18 Dec 2011 18:59:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55393</guid>
      <author>JL@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55392) Database modeling usually refers to a using a tool to visually l...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55392</link>
      <description>&lt;pre&gt;Database modeling usually refers to a using a tool to visually lay out the&lt;br /&gt;tables, columns, keys, indexes, relationships, etc. The tool then generates the&lt;br /&gt;SQL for the target database(s) and/or creates it without you needing to do any&lt;br /&gt;writing of DDL scripts. I would venture to say nearly everyone uses a modeling&lt;br /&gt;tool of some kind if their job involves designing databases, and some have&lt;br /&gt;embedded basic tools that let you do this. Capability beyond basic database&lt;br /&gt;design vary a lot, and pricing is usually commensurate.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 17 Dec 2011 10:14:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55392</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(River Rat/55391) Can someone elxplain what database modeling is?</title>
      <link>http://rss.iscabbs.com/forums/61/read/55391</link>
      <description>&lt;pre&gt;Can someone elxplain what database modeling is?&lt;br /&gt;I see it mentioned in mysql-workbench.&lt;br /&gt;http://mysql.com/products/workbench/&lt;br /&gt;But don't understand what it means.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 17 Dec 2011 03:44:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55391</guid>
      <author>River Rat@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Raubvogel/55390) Replicate mysql question: how can I monitor the replication to</title>
      <link>http://rss.iscabbs.com/forums/61/read/55390</link>
      <description>&lt;pre&gt;        Replicate mysql question: how can I monitor the replication to&lt;br /&gt;make sure master and slave are in sync? And get an email/message/bird&lt;br /&gt;with a candle when they are not?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 10 Dec 2011 10:47:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55390</guid>
      <author>Raubvogel@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Boogie With Stu/55389) Later versions of Oracle suppport FULL OUTER JOIN syntax for tha...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55389</link>
      <description>&lt;pre&gt;Later versions of Oracle suppport FULL OUTER JOIN syntax for that purpose...I&lt;br /&gt;think starting with 10g.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 02 Dec 2011 22:53:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55389</guid>
      <author>Boogie With Stu@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55388) Which RDBMS? In MySQL, you might do,</title>
      <link>http://rss.iscabbs.com/forums/61/read/55388</link>
      <description>&lt;pre&gt;Which RDBMS? In MySQL, you might do,&lt;br /&gt;&lt;br /&gt;    SELECT t1.account_id FROM t1 LEFT JOIN t2 USING(account_id)&lt;br /&gt;        WHERE t2.account_id IS NULL&lt;br /&gt;    UNION ALL&lt;br /&gt;    SELECT t1.account_id FROM t1 RIGHT JOIN t2 USING(account_id)&lt;br /&gt;        WHERE t1.account_id IS NULL&lt;br /&gt;&lt;br /&gt;(Or use two left joins, and swap t1 and t2... same thing as far as MySQL&lt;br /&gt;optimizations.)&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 01 Dec 2011 16:34:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55388</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55387) But that only finds account IDs in table 1 tha aren't in table 2...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55387</link>
      <description>&lt;pre&gt;But that only finds account IDs in table 1 tha aren't in table 2.  Do you also&lt;br /&gt;want the reverse?  If so, you'll need the flip side of JL's query...and do a&lt;br /&gt;UNION between those two queries....&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 01 Dec 2011 16:52:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55387</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(JL/55386) SELECT t1.account_id from table1</title>
      <link>http://rss.iscabbs.com/forums/61/read/55386</link>
      <description>&lt;pre&gt;&lt;br /&gt;SELECT t1.account_id from table1&lt;br /&gt;        LEFT OUTER JOIN table2 on table1.account_id=table2.account_id&lt;br /&gt;        WHERE table2.account_id IS NULL&lt;br /&gt;&lt;br /&gt;right?&lt;br /&gt;But the subselect seems better to me.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 01 Dec 2011 12:10:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55386</guid>
      <author>JL@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Egregious/55385) I want to find the account_id's that are different between two t...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55385</link>
      <description>&lt;pre&gt;&lt;br /&gt;I want to find the account_id's that are different between two tables.&lt;br /&gt;&lt;br /&gt;I do it like this:&lt;br /&gt;&lt;br /&gt;  SELECT account_id FROM table1 WHERE account_id NOT IN&lt;br /&gt;    (SELECT account_id FROM table2);&lt;br /&gt;&lt;br /&gt;And the reverse.&lt;br /&gt;&lt;br /&gt;Is there a way to do that with JOINs that avoids a subselect?&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 01 Dec 2011 11:49:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55385</guid>
      <author>Egregious@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Cyanide/55384) JL&gt; can you chop the data into "blocks" like 10k records, do the...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55384</link>
      <description>&lt;pre&gt;JL&amp;gt; can you chop the data into &amp;quot;blocks&amp;quot; like 10k records, do the calculations&lt;br /&gt;on that, and then put a trigger to do a partial aggregate update if a record&lt;br /&gt;in that block changes. (im not sure 10k is big enough) Or is that what you are&lt;br /&gt;doing?&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 01 Dec 2011 07:36:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55384</guid>
      <author>Cyanide@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55383) What is the database?  Oracle?  SQL Server?  MySQL?  PostgreSQL?</title>
      <link>http://rss.iscabbs.com/forums/61/read/55383</link>
      <description>&lt;pre&gt;What is the database?  Oracle?  SQL Server?  MySQL?  PostgreSQL?&lt;br /&gt;&lt;br /&gt;And I strongly second BDavis' recommendation.  Add a server for the query&lt;br /&gt;database and ramp it up in capabilities, and have replication between the OLTP&lt;br /&gt;database and the query database.&lt;br /&gt;&lt;br /&gt;Beef up the network connection between the query database and the OLTP database&lt;br /&gt;if you're worried about performance, so that things get replicated almost&lt;br /&gt;immeidately.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 29 Nov 2011 01:23:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55383</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55382) I would add moving the query database off the production OLTP se...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55382</link>
      <description>&lt;pre&gt;I would add moving the query database off the production OLTP server. That&lt;br /&gt;would be a 'best practice' for a data warehouse. Depending on your user base&lt;br /&gt;you may even want to consider reporting tools built for data warehouses, rather&lt;br /&gt;than a 'services' layer, but that could be overkill and it just depends.&lt;br /&gt;&lt;br /&gt;Otherwise seems like a workable plan.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 28 Nov 2011 19:12:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55382</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55381) While John Public's solution might be technically sound, you hav...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55381</link>
      <description>&lt;pre&gt;While John Public's solution might be technically sound, you have to allow for&lt;br /&gt;the politics involved.  I think your plan is sound, JL, and you can implement&lt;br /&gt;parts of it concurrently.  Starting with upgrades to the DB hardware is fine,&lt;br /&gt;but eventually you're going to need a data warehouse that queries hit... &lt;br /&gt;Architect that right and you'll be fine.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 28 Nov 2011 16:12:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55381</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(The After Party/55380) JL</title>
      <link>http://rss.iscabbs.com/forums/61/read/55380</link>
      <description>&lt;pre&gt;JL&lt;br /&gt;&lt;br /&gt;  I'm not a DBA, but I think your 'solution' is fairly sound. If there is data&lt;br /&gt;  that doesn't change &amp;quot;frequently&amp;quot;, then you can save CPU cycles and real&lt;br /&gt;  user time by aggregating it ahead of time.&lt;br /&gt;  My first job, we had denormalized tables (nick named 'the twin towers' cuz&lt;br /&gt;  we had the real data and the 'queued' version...people said the lights&lt;br /&gt;  flickered when we did CRUD on them, heh) to be fast (and it was, though&lt;br /&gt;  I never did a normalized version to compare).&lt;br /&gt;  Do you have a (forgets DBA term) explain(?) plan(?) that shows your&lt;br /&gt;  sum() is the 'bottleneck' or at least using a lot of time?&lt;br /&gt;  Ask the DBAs to show you what queries are slow or which queries use&lt;br /&gt;  the most CPU in a given 24 hour period.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 28 Nov 2011 11:36:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55380</guid>
      <author>The After Party@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55379) *shrug* Then put a trigger on updates and see if that fixes it.</title>
      <link>http://rss.iscabbs.com/forums/61/read/55379</link>
      <description>&lt;pre&gt;*shrug* Then put a trigger on updates and see if that fixes it.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 28 Nov 2011 11:27:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55379</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(JL/55378) TAP&gt; What I mean is, I don't want to re-aggregate over and over ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55378</link>
      <description>&lt;pre&gt;TAP&amp;gt; What I mean is, I don't want to re-aggregate over and over while the data&lt;br /&gt;never changes.&lt;br /&gt;&lt;br /&gt;While the data will change often, it will do so for individual entities, time&lt;br /&gt;states, etc. It's not like we have to re-aggregate everything. So some&lt;br /&gt;pre-computed data may stay valid for days or months.&lt;br /&gt;&lt;br /&gt;&amp;gt; John Public&lt;br /&gt;&amp;gt; That's what happens without a middle tier.&lt;br /&gt;&lt;br /&gt;Oy, not this again. You want to change the problem, so it's more easily&lt;br /&gt;solvable. Great, I get that. I'd like to also. But the fact remains that there&lt;br /&gt;are hundreds of people interacting directly with the database to run queries,&lt;br /&gt;and inserting a middle tier through which everyone must go is just unrealistic.&lt;br /&gt;&lt;br /&gt;My strategic plan is to:&lt;br /&gt; - Fix the performance problems by&lt;br /&gt;   - Boosting db hardware&lt;br /&gt;   - Pre-computing and storing aggregate data (warehouse)&lt;br /&gt;   - Re-writing slow queries&lt;br /&gt; - Do an audit of all direct access to the db&lt;br /&gt; - Create individual user id's, permissions, and views to satisfy those needs&lt;br /&gt; - Slowly build up a &amp;quot;services&amp;quot; layer through which all data will be retrieved&lt;br /&gt; - Follow that up with a services layer for all CRUD operations&lt;br /&gt; - Migrate everything to the service&lt;br /&gt; - Turn off direct DB access&lt;br /&gt;&lt;br /&gt;I'm not sure it's possible. If it's possible at all, it's probably a 5-year&lt;br /&gt;timeframe. But I'm starting with #1.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 28 Nov 2011 10:48:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55378</guid>
      <author>JL@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55377) That's what happens without a middle tier. Everyone scratches th...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55377</link>
      <description>&lt;pre&gt;That's what happens without a middle tier. Everyone scratches their head trying&lt;br /&gt;to figgerout the least suckiest way to cram app logic in the db or data&lt;br /&gt;optimizations in the app, and since their are no architects on the team, the&lt;br /&gt;light bulb goes on...&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 28 Nov 2011 08:12:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55377</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(The After Party/55376) JL</title>
      <link>http://rss.iscabbs.com/forums/61/read/55376</link>
      <description>&lt;pre&gt;JL&lt;br /&gt;&lt;br /&gt;&amp;quot;So I'm just looking for a way to avoid aggregating data over and over&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;quot;I need everything to be done real-time, so there is no lag at all (other than&lt;br /&gt;perhaps some delay on insert/update while things are aggregated).&lt;br /&gt;&lt;br /&gt;Furthermore, I need to join tables of static data with the aggregated data, so&lt;br /&gt;a separate database doesn't really work.&amp;quot;&lt;br /&gt;&lt;br /&gt;  Seems to be you are contradicting yourself.&lt;br /&gt;  Yeah, you want to avoid aggregating data over and over, but the data&lt;br /&gt;  changes frequently, so you...have to re-aggregate it, no?&lt;br /&gt;  There is no cake and eating it too.&lt;br /&gt;&lt;br /&gt;  Almost feels like you're moving (right or wrong, I can't say) your&lt;br /&gt;  problem you were trying to solve with object cache in memory to this&lt;br /&gt;  aggregated db table. You'd then need to solve the problem of when is&lt;br /&gt;  the (cache) aggreegated data stale? heh.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 28 Nov 2011 07:42:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55376</guid>
      <author>The After Party@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55375) A department at work recently had quotes for Goldengate, Attunit...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55375</link>
      <description>&lt;pre&gt;A department at work recently had quotes for Goldengate, Attunity, and&lt;br /&gt;Infosphere. As I recall, they were in the $60k-$90k range. Pricing will vary a&lt;br /&gt;lot though, and it is nearing the end of the year, so you might get it under&lt;br /&gt;$50k. Or maybe some of the other vendors would be cheaper, I dunno.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 23 Nov 2011 19:26:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55375</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(JL/55374) This is inside of an investment bank, so getting software approv...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55374</link>
      <description>&lt;pre&gt;This is inside of an investment bank, so getting software approval may be a bit&lt;br /&gt;tricky, a cost really isn't an issue if it's the best solution.&lt;br /&gt;&lt;br /&gt;Right now they have Business Objects hitting an Oracle data warehouse for a lot&lt;br /&gt;of reports. But the main system hits the Sybase operational database where they&lt;br /&gt;maintain entities and transactional data. The operational DB needs to be sped&lt;br /&gt;up, and the main system often does sum() and other aggregate functions for&lt;br /&gt;somewhat large transactional tables (3-5 million rows).&lt;br /&gt;&lt;br /&gt;We can't point the main system to Oracle, nor can we re-write the whole main&lt;br /&gt;system. So I'm just looking for a way to avoid aggregating data over and over&lt;br /&gt;and over every day, and instead do it once on insert/update and modify the main&lt;br /&gt;system by tweaking the queries.&lt;br /&gt;&lt;br /&gt;I will look into the &amp;quot;BI World&amp;quot; for a product that would simplify the real-time&lt;br /&gt;ETL approach, which could easily be used to copy data to other tables in the&lt;br /&gt;same database, I presume.&lt;br /&gt;&lt;br /&gt;Anything under $20k would probably be a no-brainer, but even $50k wouldn't be&lt;br /&gt;out of the question.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 23 Nov 2011 17:08:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55374</guid>
      <author>JL@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55373) Keep in mind additional procedures and triggers are likely going...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55373</link>
      <description>&lt;pre&gt;Keep in mind additional procedures and triggers are likely going to slow things&lt;br /&gt;down in a transactional system. Also materialized views have to be refreshed.&lt;br /&gt;The normal approach would be a second database, with either realtime streaming&lt;br /&gt;ETL or some sort of change data capture. These are hot products in the BI world&lt;br /&gt;and there are lots of products, from database vendors as well as 3rd parties.&lt;br /&gt;But it won't be cheap, so I hope you have a decent budget.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 23 Nov 2011 16:23:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55373</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55372) What kind of static data?</title>
      <link>http://rss.iscabbs.com/forums/61/read/55372</link>
      <description>&lt;pre&gt;What kind of static data?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 23 Nov 2011 14:59:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55372</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(JL/55371) In fact, that already exists. The problem is, the ETL's are not ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55371</link>
      <description>&lt;pre&gt;In fact, that already exists. The problem is, the ETL's are not quite&lt;br /&gt;real-time. They are up to 15 minutes behind the operational database.&lt;br /&gt;&lt;br /&gt;I need everything to be done real-time, so there is no lag at all (other than&lt;br /&gt;perhaps some delay on insert/update while things are aggregated).&lt;br /&gt;&lt;br /&gt;Furthermore, I need to join tables of static data with the aggregated data, so&lt;br /&gt;a separate database doesn't really work.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 23 Nov 2011 14:46:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55371</guid>
      <author>JL@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55370) Yes...  The Data Warehouse Toolkit is the title of a good book t...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55370</link>
      <description>&lt;pre&gt;Yes...  The Data Warehouse Toolkit is the title of a good book to read.&lt;br /&gt;&lt;br /&gt;What I would suggest is to have a second database, and on updates to the first&lt;br /&gt;database, have an ETL process to get the data in the second database, organized&lt;br /&gt;like a data warehouse, so that you can do your reads from there.  That will&lt;br /&gt;increase performance a great deal.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 23 Nov 2011 14:30:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55370</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(JL/55369) I'm beginning a project to optimize a 300-table Sybase database ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55369</link>
      <description>&lt;pre&gt;&lt;br /&gt;I'm beginning a project to optimize a 300-table Sybase database to increase&lt;br /&gt;performance.&lt;br /&gt;&lt;br /&gt;The current data is very normalized, transactional data. If I want to know how&lt;br /&gt;many widgets we had last month, for example, I need to sum up all the entries&lt;br /&gt;in the widget register that are &amp;lt;= that date.&lt;br /&gt;&lt;br /&gt;Since reads outnumber writes by about 100 to 1, this is not optimal. One way&lt;br /&gt;I'd like to increase performance is to aggregate and roll up data at the time&lt;br /&gt;of update, rather than at the time of query.&lt;br /&gt;&lt;br /&gt;I'm no database guru, so I'm looking for help in knowing the best way to&lt;br /&gt;approach this. Some random thoughts:&lt;br /&gt; - Triggers on insert/update that call a stored proc to update a second&lt;br /&gt;   denormalized table&lt;br /&gt; - Access everything via stored procs - no writing directly to tables allowed&lt;br /&gt; - Try to use something like materialized views or some other database-specific&lt;br /&gt;   way that automatically aggregates data for me, so I can write my queries&lt;br /&gt;   as I always would.&lt;br /&gt;&lt;br /&gt;Any suggestions on what to read and how to learn more about this?&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 23 Nov 2011 10:46:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55369</guid>
      <author>JL@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Egregious/55368) Yeah, this is for a replicated database.  The replicated databas...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55368</link>
      <description>&lt;pre&gt;Yeah, this is for a replicated database.  The replicated database&lt;br /&gt;is living on a machine in the cloud and if it gets broken into we&lt;br /&gt;don't want them to get back into the source machine.&lt;br /&gt;&lt;br /&gt;I took out the &amp;quot;host all&amp;quot; lines in pg_hba.conf, but left in &amp;quot;host&lt;br /&gt;replication.&amp;quot;  The replicated machine can still get in via a&lt;br /&gt;forwarded port, but I don't think anything else can connect over&lt;br /&gt;that port.&lt;br /&gt;&lt;br /&gt;Normal processes on that box can still connect to the Unix socket&lt;br /&gt;and be fully trusted.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 22 Nov 2011 07:50:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55368</guid>
      <author>Egregious@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Danix/55367) Egregious&gt; Are you actually using different users? Try</title>
      <link>http://rss.iscabbs.com/forums/61/read/55367</link>
      <description>&lt;pre&gt;Egregious&amp;gt; Are you actually using different users? Try&lt;br /&gt;psql -U mahuser mahdb&lt;br /&gt;vs&lt;br /&gt;psql -h 127.0.0.1 -U mahuser mahdb&lt;br /&gt;&lt;br /&gt;also, check out your pg_hba.conf file, there might be differences for IP vs.&lt;br /&gt;UNIX socket stuff.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 22 Nov 2011 07:42:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55367</guid>
      <author>Danix@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Raubvogel/55366) On MSSQL 2008, how do I set the debug level and where will it be</title>
      <link>http://rss.iscabbs.com/forums/61/read/55366</link>
      <description>&lt;pre&gt;        On MSSQL 2008, how do I set the debug level and where will it be&lt;br /&gt;written to?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 22 Nov 2011 04:57:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55366</guid>
      <author>Raubvogel@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Egregious/55365) In Postgres, how can I have connections coming into the TCP sock...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55365</link>
      <description>&lt;pre&gt;&lt;br /&gt;In Postgres, how can I have connections coming into the TCP socket&lt;br /&gt;only have read-access, while people connecting via the Unix socket&lt;br /&gt;have full access.&lt;br /&gt;&lt;br /&gt;This is for essentially a single-user platform, so I can mess with&lt;br /&gt;&amp;quot;users&amp;quot; however I want.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 21 Nov 2011 12:45:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55365</guid>
      <author>Egregious@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55364) Fwiw, I did measure  the various approaches yesterday. The most ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55364</link>
      <description>&lt;pre&gt;Fwiw, I did measure  the various approaches yesterday. The most important&lt;br /&gt;factor is whether the where clause is on a KEY or INDEX, and the result set is&lt;br /&gt;small. In that case, the actual query execution times are nearly identical,&lt;br /&gt;but the simple approach is faster because there is no latency between the two&lt;br /&gt;calls.&lt;br /&gt;&lt;br /&gt;The &amp;quot;LIMIT 10 OFFSET R&amp;quot; approach requires one scan to get the count, followed&lt;br /&gt;by a scan to offset R, then whatever to fetch the rows. The scan to a random&lt;br /&gt;offset is costly. Its roughly O(N + L + M/2). N is the total rows, and M is&lt;br /&gt;restricted result set. M/2 is the expected random offset. L is the latency&lt;br /&gt;between the two queries.&lt;br /&gt;&lt;br /&gt;The &amp;quot;ORDER BY RAND() LIMIT 10&amp;quot; approach requires a scan to get the rows, and a&lt;br /&gt;simultaneous top-n sort to order them. The sort is not costly only when the&lt;br /&gt;result set is small. It's roughly O(N + M*log(M)).&lt;br /&gt;&lt;br /&gt;If the result set is large, then both approaches are actually TERRIBLE in&lt;br /&gt;practical terms. But Faunus's approach scales better in that case.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 21 Nov 2011 08:46:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55364</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Egregious/55363) LIMIT 1 and LIMIT 10 will probably be about the same, at least i...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55363</link>
      <description>&lt;pre&gt;LIMIT 1 and LIMIT 10 will probably be about the same, at least in Postgres.&lt;br /&gt;&lt;br /&gt;Postgres does this:&lt;br /&gt;&lt;br /&gt;         Sort Method:  top-N heapsort  Memory: 165kB&lt;br /&gt;&lt;br /&gt;when I give it a LIMIT of about 1080 or less.  (At least on this 1 table&lt;br /&gt;I'm testing against.)&lt;br /&gt;&lt;br /&gt;Finding the biggest M elements in a set (where M is a constant) is&lt;br /&gt;linear time.  And although databases frequently disappoint me in not&lt;br /&gt;knowing the best way to do things, this is one where they seem to&lt;br /&gt;Do The Right Thing.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 21 Nov 2011 06:53:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55363</guid>
      <author>Egregious@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55362) If I go ask it to ORDER BY RAND LIMIT 10 it's a lot faster than ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55362</link>
      <description>&lt;pre&gt;If I go ask it to ORDER BY RAND LIMIT 10 it's a lot faster than asking it to&lt;br /&gt;ORDER BY RAND LIMIT 1 ten times, but that might be more about the number of&lt;br /&gt;trips to the DB from PHP than about anything the DB is doing.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 21 Nov 2011 06:50:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55362</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Egregious/55361) I'm pretty sure databases are smart enough to only keep 1 row wh...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55361</link>
      <description>&lt;pre&gt;&lt;br /&gt;I'm pretty sure databases are smart enough to only keep 1 row when you&lt;br /&gt;say &amp;quot;ORDER BY RAND() LIMIT 1&amp;quot;.   I just tested in PostgreSQL, which&lt;br /&gt;I've been using much more than MySQL these days, and it's a lot faster&lt;br /&gt;to keep just 1 result.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 21 Nov 2011 06:19:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55361</guid>
      <author>Egregious@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55360) OK, I went to ORDER BY RAND().</title>
      <link>http://rss.iscabbs.com/forums/61/read/55360</link>
      <description>&lt;pre&gt;OK, I went to ORDER BY RAND().&lt;br /&gt;&lt;br /&gt;performance was not great compared to my sketchy previous solution, but I can&lt;br /&gt;get around that by always grabbing a bunch of them at once if I'll need more&lt;br /&gt;than one, rather than making multiple calls.  Like if I need 10 random names,&lt;br /&gt;have it give me a LIMIT 10 instead of LIMIT 1.&lt;br /&gt;&lt;br /&gt;That means I don't get the possibility of repetition if I want 10 random names,&lt;br /&gt;but that's fine.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 20 Nov 2011 08:17:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55360</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55359) The offset only makes sense if there is an order to the set in t...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55359</link>
      <description>&lt;pre&gt;The offset only makes sense if there is an order to the set in the first&lt;br /&gt;place. So basically, you can't escape the ORDER BY. Your approach could be&lt;br /&gt;faster *if* you ORDER BY a primary key and take the randomized OFFSET (as&lt;br /&gt;opposed to ORDER BY RAND()) only because certain types of primary keys are&lt;br /&gt;already ordered, so I'd hope that there would be no &amp;quot;shuffling&amp;quot; involved.&lt;br /&gt;&lt;br /&gt;Also, you've got a race condition unless those two PHP calls are in the same&lt;br /&gt;transaction.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 20 Nov 2011 05:42:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55359</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55358) It was more like this, and I forgot -- I actually needed to grab...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55358</link>
      <description>&lt;pre&gt;&lt;br /&gt;It was more like this, and I forgot -- I actually needed to grab a&lt;br /&gt;random item *of a particular type* from the table, so it was a little&lt;br /&gt;more complicated than I mentioned at first.&lt;br /&gt;&lt;br /&gt;$stmt = $the_pdo-&amp;gt;prepare('SELECT COUNT(*) from `names` where `type` = ?');&lt;br /&gt;$stmt-&amp;gt;execute(array($type));&lt;br /&gt;$row = $stmt-&amp;gt;fetch();&lt;br /&gt;$count = $row[0];&lt;br /&gt;$randomized = rand(0, $count-1);&lt;br /&gt;$stmt = $the_pdo-&amp;gt;prepare('SELECT `name` from `names` where `type` =&lt;br /&gt;                            ? LIMIT 1 OFFSET '.$randomized);&lt;br /&gt;$stmt-&amp;gt;execute(array($type));&lt;br /&gt;$row = $stmt-&amp;gt;fetch();&lt;br /&gt;return $row[0];&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 19 Nov 2011 14:46:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55358</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55357) Faunus&gt; There are many ways. None are very satisfying. Choose yo...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55357</link>
      <description>&lt;pre&gt;Faunus&amp;gt; There are many ways. None are very satisfying. Choose your poison.&lt;br /&gt;&lt;br /&gt;1.  SELECT * from T order by RAND() LIMIT 1;&lt;br /&gt;&lt;br /&gt;    Advantage: Correct result. Simple code.&lt;br /&gt;    Problem:   Performance. Must order entire result set.&lt;br /&gt;&lt;br /&gt;2.  SELECT * from T where T.PK &amp;gt;=&lt;br /&gt;        (SELECT FLOOR(MIN(PK) + RAND()*(MAX(PK)-MIN(PK))) FROM T)&lt;br /&gt;        ORDER BY PK LIMIT 1;&lt;br /&gt;&lt;br /&gt;    Advantage: Single join.&lt;br /&gt;    Problem:   Incorrect results.&lt;br /&gt;&lt;br /&gt;3.  select * from T where T.PK = (SELECT PK from T ORDER BY RAND() LIMIT 1);&lt;br /&gt;&lt;br /&gt;    Advantage: Correct result. Ordering is performed on key set.&lt;br /&gt;    Problem:   Performance. Must order entire KEY set.&lt;br /&gt;&lt;br /&gt;4.  start transaction;&lt;br /&gt;    select @tot := COUNT(*),&lt;br /&gt;           @min := MIN(PK),&lt;br /&gt;           @max := MAX(PK) from T;&lt;br /&gt;    select * from T where pk &amp;gt;= FLOOR(@min + RAND()*(@max-@min)) LIMIT 1;&lt;br /&gt;    commit;&lt;br /&gt;&lt;br /&gt;    Advantage: Just a readable variation of #2.&lt;br /&gt;    Problem:   Still incorrect results.&lt;br /&gt;&lt;br /&gt;5.  $total = $php_db_call (&amp;quot;select count(*) from T&amp;quot;);&lt;br /&gt;    $id = rand ($total);&lt;br /&gt;    $row = $php_db_call (&amp;quot;select * from T where pk = $id&amp;quot;)&lt;br /&gt;&lt;br /&gt;    Advantage: Makes perfect sense to PHP coders.&lt;br /&gt;    Problem: Race condition. Probably will not even return any rows.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In summary, benchmark #1, and if it sucks, use #3.  Don't use the others&lt;br /&gt;despite what your favorite LAMP blog recommends.  If this is critical, and&lt;br /&gt;must be performed repeatedly, consider generating a separate, randomly ordered&lt;br /&gt;table, with a strict sequence, and walking through that sequence each time you&lt;br /&gt;need a new row. Like so:&lt;br /&gt;&lt;br /&gt;    /* TABLE O is a random order of table T */&lt;br /&gt;    create table O (&lt;br /&gt;        seq int not null auto_increment primary key,&lt;br /&gt;        tpk int not null,&lt;br /&gt;        foreign key TPK references T (PK) ON DELETE CASCADE&lt;br /&gt;    ) ENGINE=InnoDB;&lt;br /&gt;    INSERT INTO O SELECT NULL, PK from T ORDER BY RAND();&lt;br /&gt;&lt;br /&gt;    /* Fetch a random row from T using O */&lt;br /&gt;    select * from T join O on T.pk=O.tpk&lt;br /&gt;        where o.seq = prev_seq;&lt;br /&gt;    ++prev_seq;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 19 Nov 2011 09:53:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55357</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(The After Party/55356) Faunus</title>
      <link>http://rss.iscabbs.com/forums/61/read/55356</link>
      <description>&lt;pre&gt;Faunus&lt;br /&gt;&lt;br /&gt;  Hrm, good point. I didn't htink of it that way. Maybe it depends on&lt;br /&gt;  the index? Bench it for us!&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 19 Nov 2011 09:56:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55356</guid>
      <author>The After Party@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55355) Well, my (possibly flawed) understanding is that in order by RAN...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55355</link>
      <description>&lt;pre&gt;Well, my (possibly flawed) understanding is that in order by RAND you would end&lt;br /&gt;up sorting the whole table in order to grab one line.&lt;br /&gt;&lt;br /&gt;In my version, I guess, you end up *counting* the whole table and then grabbing&lt;br /&gt;one line from an offset...  intellectually it seems much more straightforward,&lt;br /&gt;but I don't know, which is why I asked.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 19 Nov 2011 09:54:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55355</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(The After Party/55354) Faunus</title>
      <link>http://rss.iscabbs.com/forums/61/read/55354</link>
      <description>&lt;pre&gt;Faunus&lt;br /&gt;&lt;br /&gt;  Why is order by rand() offset limit 1 any sillier than what you're doing?&lt;br /&gt;  Yours sounds like more work...&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 19 Nov 2011 09:51:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55354</guid>
      <author>The After Party@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55353) I need to select a random row from a 5000+ row table.  I'm just ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55353</link>
      <description>&lt;pre&gt;&lt;br /&gt;I need to select a random row from a 5000+ row table.  I'm just doing a COUNT()&lt;br /&gt;to get the number of rows, picking a random number, and then selecting that row&lt;br /&gt;as an OFFSET LIMIT 1.  Is that a good way to go or is there some clever SQL fu&lt;br /&gt;way to go?  This is MySQL.  I've found people talking about doing an ORDER BY&lt;br /&gt;RAND() but that seems silly to me on the face of it.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 19 Nov 2011 09:38:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55353</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55352) HA! had to quote `lines`.  Must be a keyword.  Should find a bet...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55352</link>
      <description>&lt;pre&gt;HA! had to quote `lines`.  Must be a keyword.  Should find a better name for&lt;br /&gt;that column.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 17 Nov 2011 15:59:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55352</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55351) GAH</title>
      <link>http://rss.iscabbs.com/forums/61/read/55351</link>
      <description>&lt;pre&gt;&lt;br /&gt;GAH&lt;br /&gt;&lt;br /&gt;WHYMESTUPID&lt;br /&gt;&lt;br /&gt;What the hell am I doing wrong to generate this:&lt;br /&gt;&lt;br /&gt;Fatal error: Uncaught exception 'PDOException' with message&lt;br /&gt;'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an&lt;br /&gt;error in your SQL syntax; check the manual that corresponds to your&lt;br /&gt;MySQL server version for the right syntax to use near 'lines =&lt;br /&gt;'prefix1\nprefix2\nprefix3' WHERE id = '1'' at line 1' in (blah blah&lt;br /&gt;blah my php file)&lt;br /&gt;&lt;br /&gt;Is it that id should be an int, not a string?&lt;br /&gt;&lt;br /&gt;I'm letting php's pdo construct this query for me.&lt;br /&gt;&lt;br /&gt;It looks like this:&lt;br /&gt;&lt;br /&gt;$stmt2 = $pdo-&amp;gt;prepare(&lt;br /&gt;'UPDATE spinfile_extras SET lines = :lines WHERE id = :id');&lt;br /&gt;&lt;br /&gt;$stmt2-&amp;gt;execute(array(':lines' =&amp;gt; $lines, ':id' =&amp;gt; $intid));&lt;br /&gt;&lt;br /&gt;where $intid is the number 1, and $lines is&lt;br /&gt;&amp;quot;prefix1\nprefix2\nprefix3&amp;quot;.&lt;br /&gt;&lt;br /&gt;THere's got to be something very simple I'm just not seeing here.&lt;br /&gt;&lt;br /&gt;Help?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 17 Nov 2011 15:13:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55351</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55350) That's the stuff.  I'll try some of that.  Thanks. :)</title>
      <link>http://rss.iscabbs.com/forums/61/read/55350</link>
      <description>&lt;pre&gt;That's the stuff.  I'll try some of that.  Thanks. :)&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 15 Nov 2011 12:25:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55350</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55349) select group_id, count(*) from item group by group_id.</title>
      <link>http://rss.iscabbs.com/forums/61/read/55349</link>
      <description>&lt;pre&gt;select group_id, count(*) from item group by group_id.&lt;br /&gt;&lt;br /&gt;select group.id, group.name,  ETC.., COUNT(*)&lt;br /&gt;       count(*) from group join item on group.id=item.group_id&lt;br /&gt;       GROUP BY  select group.id, group.name,  ETC..&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 15 Nov 2011 11:29:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55349</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55348) Help my feeble SQL.</title>
      <link>http://rss.iscabbs.com/forums/61/read/55348</link>
      <description>&lt;pre&gt;Help my feeble SQL.&lt;br /&gt;&lt;br /&gt;I have a table of GROUPS and a table of ITEMS.  each ITEM belongs to a&lt;br /&gt;GROUP (that is, it has a group_id that corresponds to a group's id).&lt;br /&gt;&lt;br /&gt;I want a list of GROUPS and with each GROUP I want a count of the ITEMs&lt;br /&gt;associated with it.&lt;br /&gt;&lt;br /&gt;I know I want to do some joining, grouping, and counting, but it's going to&lt;br /&gt;take me some beating my head against docs to find out, and I bet&lt;br /&gt;somebody here could spit out the answer off the top of their head the&lt;br /&gt;way I wish I could.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 15 Nov 2011 11:08:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55348</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55347) I have a continuous form.  It shows a row of records.  One field...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55347</link>
      <description>&lt;pre&gt;I have a continuous form.  It shows a row of records.  One field is a checkbox.&lt;br /&gt;I want to be able to have the next field visible, active, and enabled only if&lt;br /&gt;the checkbox is checked.  If it's unchecked, I want it to disappear.&lt;br /&gt;&lt;br /&gt;I can make this happen, but it happens for all rows at once.  I want it to&lt;br /&gt;happen only for one row, the row where I check the checkbox.&lt;br /&gt;&lt;br /&gt;I've been doing searching, but it seems like that's not possible for continuous&lt;br /&gt;forms.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 14 Nov 2011 02:08:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55347</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55346) I used to use Access a lot, but not so much in last version or t...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55346</link>
      <description>&lt;pre&gt;I used to use Access a lot, but not so much in last version or two. Maybe you&lt;br /&gt;could post a synopsis of the issue and we can tell you if we have a clue?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 13 Nov 2011 18:53:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55346</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Danix/55345) I do know a ladyfriend who could be considered an Access guru. S...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55345</link>
      <description>&lt;pre&gt;I do know a ladyfriend who could be considered an Access guru. Sadly, I have&lt;br /&gt;lost communication with her. :(&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 13 Nov 2011 17:54:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55345</guid>
      <author>Danix@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55344) Is there anyone reading this who considers themselves an Access ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55344</link>
      <description>&lt;pre&gt;Is there anyone reading this who considers themselves an Access guru?  I'm&lt;br /&gt;having a very obscure problem with Access and need help.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 13 Nov 2011 13:26:00 -0600</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55344</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55343) Cannot and should not what?</title>
      <link>http://rss.iscabbs.com/forums/61/read/55343</link>
      <description>&lt;pre&gt;Cannot and should not what?&lt;br /&gt;AUTO_INCREMENT starts at 1.&lt;br /&gt;You can set it to whatever you want via ALTER.&lt;br /&gt;You should set it if you need it to start at something other than 1.&lt;br /&gt;It will be reset to its starting value on a TRUNCATE.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 02 Nov 2011 05:38:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55343</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(River Rat/55342) In short, you cannot and should not. In MySQL, if you have a col...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55342</link>
      <description>&lt;pre&gt;In short, you cannot and should not. In MySQL, if you have a column that is&lt;br /&gt;assigned the AUTO_INCREMENT count, you can reset that count by using this&lt;br /&gt;statement (or check out the Operations tab in phpMyAdmin):&lt;br /&gt;&lt;br /&gt;ALTER TABLE tablename AUTO_INCREMENT=0&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 02 Nov 2011 05:25:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55342</guid>
      <author>River Rat@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(River Rat/55341) I believe it is zero when it starts out.  But turns into when as...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55341</link>
      <description>&lt;pre&gt;I believe it is zero when it starts out.  But turns into when as you are&lt;br /&gt;entering the first record?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 02 Nov 2011 05:24:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55341</guid>
      <author>River Rat@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55340) TRUNCATE TABLE t;</title>
      <link>http://rss.iscabbs.com/forums/61/read/55340</link>
      <description>&lt;pre&gt;TRUNCATE TABLE t;&lt;br /&gt;or,&lt;br /&gt;ALTER TABLE t AUTO_INCREMENT=1;  /* default is 1, not 0. */&lt;br /&gt;&lt;br /&gt;Notes: InnoDB won't let you change the sequence to be less than the current max&lt;br /&gt;value for that column. MyISAM will. TRUNCATE deletes all the rows, ALTER does&lt;br /&gt;not.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 02 Nov 2011 04:18:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55340</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(River Rat/55339) Is there any way to zero out the index value on MySql.</title>
      <link>http://rss.iscabbs.com/forums/61/read/55339</link>
      <description>&lt;pre&gt;Is there any way to zero out the index value on MySql.&lt;br /&gt;&lt;br /&gt;I have this table set up.&lt;br /&gt;&lt;br /&gt;id&lt;br /&gt;first name&lt;br /&gt;last name&lt;br /&gt;street address&lt;br /&gt;city&lt;br /&gt;state&lt;br /&gt;zip&lt;br /&gt;&lt;br /&gt;I added some records for testing purposes.&lt;br /&gt;Then deleted them.&lt;br /&gt;I would like to zero the id field like it was a clean database.&lt;br /&gt;There isn't any data in the database.  Just would like to start&lt;br /&gt;with an 1 in the id field.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 02 Nov 2011 00:56:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55339</guid>
      <author>River Rat@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55338) It's the size of the largest single BLOB (or TEXT). I don't thin...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55338</link>
      <description>&lt;pre&gt;It's the size of the largest single BLOB (or TEXT). I don't think setting it&lt;br /&gt;in mysqldump will do anything. Here's why. According to the docs, the only&lt;br /&gt;reasons you should hit that limit are:&lt;br /&gt;&lt;br /&gt;    1. You have a single LONGBLOB (or LONGTEXT) larger than 1 GB. This case is&lt;br /&gt;       unsolvable, AFAIU, since 1 GB is MySQL's communication protocol limit.&lt;br /&gt;&lt;br /&gt;    2. The server's `max_allowed_packet` setting is too low. This is most&lt;br /&gt;       likely the case in a normal setup.&lt;br /&gt;&lt;br /&gt;    3. The client's `max_allowed_packet` setting is artificially low. This is&lt;br /&gt;       not likely the problem in a normal setup, since the client default is&lt;br /&gt;       1GB. Someone (a DBA, or distro packager) would have had to deliberately&lt;br /&gt;       deflate that setting, which would serve no purpose.&lt;br /&gt;&lt;br /&gt;The upshot: Set the value to 1GB in the server's config, not the client's.&lt;br /&gt;The documented reason for the max_allowed_packet limit is to detect bugs or&lt;br /&gt;rogue packets that would blow memory. Seems like a well-intentioned but poorly&lt;br /&gt;designed measure, IMO.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 01 Nov 2011 03:37:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55338</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Raubvogel/55337) Mysql question: If I am exporting a db using mysqldump and am ge...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55337</link>
      <description>&lt;pre&gt;        Mysql question: If I am exporting a db using mysqldump and am getting&lt;br /&gt;the packet too large message, how to find out the right value for&lt;br /&gt;--max_allowed_packet?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 01 Nov 2011 02:17:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55337</guid>
      <author>Raubvogel@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55336) I'm not the ESRI guy but I will ask him about that, thanks. Righ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55336</link>
      <description>&lt;pre&gt;I'm not the ESRI guy but I will ask him about that, thanks. Right now he is&lt;br /&gt;sitting on Oracle but has done some testing with PostgreSQL. I honestly don't&lt;br /&gt;know if he is making use of the Oracle native types or not. As far as I know&lt;br /&gt;there is not a lot of editing and more serving up content, but he is very&lt;br /&gt;knowledgeable and very likely to have looked into it at some point.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 18 Oct 2011 14:32:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55336</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Marigolds/55335) PostGIS is by far the dominant FOSS4G database option. On the pa...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55335</link>
      <description>&lt;pre&gt;PostGIS is by far the dominant FOSS4G database option. On the pay side, it is&lt;br /&gt;ArcSDE on top of sql server or oracle with spatial objects.&lt;br /&gt;Make sure to use Geometry with projected data and geography with unprojected&lt;br /&gt;data.&lt;br /&gt;The other various FOSS4G database options are underdeveloped while the pay&lt;br /&gt;options other than ESRI are sometimes better, but without the market share and&lt;br /&gt;3rd party developers.&lt;br /&gt;If you are using ESRI, I highly recommend switching to using the native spatial&lt;br /&gt;types in the underlying database(though the ESRI file geodatabase is often the&lt;br /&gt;fastest option if you are not using versioned editing and long transactions).&lt;br /&gt;The bleeding edge for GIS right now though is NoSQl type options such as fusion&lt;br /&gt;tables with earth builder, tilemill, and tiled vectors.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 18 Oct 2011 05:46:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55335</guid>
      <author>Marigolds@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Darkhaven/55334) uh, last time i looked, geospacial fields in mysql were not in s...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55334</link>
      <description>&lt;pre&gt;uh, last time i looked, geospacial fields in mysql were not in stock either -&lt;br /&gt;they were plugins or some such and considered slow. it's why i convert my dms&lt;br /&gt;to lat/long. since opengis was mentioned in here, i might as well mention&lt;br /&gt;perl's PDL stuff which is quite nice for this type of thing and pretty fast&lt;br /&gt;(though i really don't have another source for comparison on the speed :) )&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 18 Oct 2011 04:52:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55334</guid>
      <author>Darkhaven@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55333) MSSQL and Oracle also support geospatial, at least in current ve...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55333</link>
      <description>&lt;pre&gt;MSSQL and Oracle also support geospatial, at least in current versions.&lt;br /&gt;PostgreSQL has a plug-in for it called PostGIS. I know PostgreSQL is supported&lt;br /&gt;by quite a few GIS vendors, not sure if they use PostGIS or not.&lt;br /&gt;&lt;br /&gt;Geospatial and data mapping is one of those hot topics in certain segments of&lt;br /&gt;IT at the moment. I have seen some neat demos and we are just starting to apply&lt;br /&gt;it in my work group (BI), in fact it is part of a current project. But we have&lt;br /&gt;an ESRI server so we are not really using any database features directly as our&lt;br /&gt;data is already geocoded within relevant tables.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 17 Oct 2011 11:16:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55333</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55332) Whoa!  That *is* cool.</title>
      <link>http://rss.iscabbs.com/forums/61/read/55332</link>
      <description>&lt;pre&gt;Whoa!  That *is* cool.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 17 Oct 2011 08:55:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55332</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55331) Faunus&gt; OpenGIS. It's pretty nifty. All it really is is a geomet...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55331</link>
      <description>&lt;pre&gt;Faunus&amp;gt; OpenGIS. It's pretty nifty. All it really is is a geometry library&lt;br /&gt;linked into the DB. They've been around forever, but suddenly became useful for&lt;br /&gt;map searches (&amp;quot;restaurants near Topeka&amp;quot;).&lt;br /&gt;http://www.opengeospatial.org/&lt;br /&gt;For MySQL, it means you get built-in spatial data types and operations on them.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 17 Oct 2011 08:50:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55331</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Danix/55330) CSV&gt; The poor man's EXPORT option?</title>
      <link>http://rss.iscabbs.com/forums/61/read/55330</link>
      <description>&lt;pre&gt;CSV&amp;gt; The poor man's EXPORT option?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 17 Oct 2011 07:28:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55330</guid>
      <author>Danix@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55329) "Geospatial data"??</title>
      <link>http://rss.iscabbs.com/forums/61/read/55329</link>
      <description>&lt;pre&gt;&amp;quot;Geospatial data&amp;quot;??&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 17 Oct 2011 07:21:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55329</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55328) Most of the engines are specialized for specific purposes and do...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55328</link>
      <description>&lt;pre&gt;Most of the engines are specialized for specific purposes and do not really&lt;br /&gt;&amp;quot;compete&amp;quot; with one another.&lt;br /&gt;&lt;br /&gt;GENERAL ENGINES:&lt;br /&gt;&lt;br /&gt;    MyISAM - Benefits: Speed. Delayed writes. Filesystem-level snapshots.&lt;br /&gt;             Encryption, compression, replication, geospatial data.&lt;br /&gt;             Drawbacks: No transactions. No FK constraint checks. Table-level&lt;br /&gt;             locking.&lt;br /&gt;&lt;br /&gt;    InnoDB - Benefits: Transactions. Row-level locking. FKs. Consistent reads.&lt;br /&gt;             Encryption, compression, replication, geospatial data.&lt;br /&gt;             Drawbacks: Slower, especially for batch inserts/updates or DB&lt;br /&gt;             restores. Constraint checks are not delayed.&lt;br /&gt;&lt;br /&gt;SPECIALIZED ENGINES:&lt;br /&gt;&lt;br /&gt;    Memory - Benefits: Exists only in RAM, so is hyperfast.&lt;br /&gt;             Drawbacks: Not stored. No transactions. Many features do not work&lt;br /&gt;             on memory tables.&lt;br /&gt;&lt;br /&gt;    Merge  - Benefits: A much simpler, faster form of partitioning.&lt;br /&gt;             Drawbacks:  Only works on MyISAM tables. Kinda weird.&lt;br /&gt;&lt;br /&gt;    Federated - These are what Microsoft would call &amp;quot;Linked Tables&amp;quot;.&lt;br /&gt;             Each table can exist on a remote machine. It's just a broker&lt;br /&gt;             between two tables. It operates on the TABLE level.&lt;br /&gt;&lt;br /&gt;    Archive - Compressed tables. No indexes.  MySQL now supports compression&lt;br /&gt;            directly, so this engine is becoming obsolete.&lt;br /&gt;&lt;br /&gt;    Blackhole - Storage is a no-op. Apparently invented for testing and&lt;br /&gt;                troubleshooting but they've since discovered cute tricks to&lt;br /&gt;                use it for.&lt;br /&gt;&lt;br /&gt;    CSV - Stores data in comma-separated files.  I have no idea WTF this is&lt;br /&gt;          good for.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 17 Oct 2011 06:32:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55328</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Faunus/55327) So what are the benefits/drawbacks of the various MySQL storage ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55327</link>
      <description>&lt;pre&gt;So what are the benefits/drawbacks of the various MySQL storage engines?&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 17 Oct 2011 06:03:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55327</guid>
      <author>Faunus@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55326) MyISAM is still the default.  I guess I don't see it as confusin...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55326</link>
      <description>&lt;pre&gt;MyISAM is still the default.  I guess I don't see it as confusing.  It's&lt;br /&gt;verbosely documented in MySQL that the DBA chooses which storage engine he&lt;br /&gt;wants. This is no different than other systems where you have to choose the&lt;br /&gt;internal index mechanism for INDEXES, or specify the storage layout. It seems&lt;br /&gt;to me like something the damn DB oughta &amp;quot;just do&amp;quot;.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 17 Oct 2011 05:50:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55326</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Danix/55325) JP&gt; When I did the big switch, MyISAM was still the default. In ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55325</link>
      <description>&lt;pre&gt;JP&amp;gt; When I did the big switch, MyISAM was still the default. In fact, one&lt;br /&gt;production database got fscked because the original dev had thought he had&lt;br /&gt;created InnoDB tables, that must've been sometime around 2006. In fact, that&lt;br /&gt;particular MySQL install had innodb disabled as a default setting. Why, oh why?&lt;br /&gt;&lt;br /&gt;It seems the good fixes came after I stopped using MySQL, though.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 17 Oct 2011 05:47:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55325</guid>
      <author>Danix@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55324) Doesn't it have circular dependency problems or something? I rec...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55324</link>
      <description>&lt;pre&gt;Doesn't it have circular dependency problems or something? I recall one of the&lt;br /&gt;DBAs telling me this recently. He saw some of my MySQL schema code and told me&lt;br /&gt;that SQL Server wants all the constraints in separate statements AFTER the&lt;br /&gt;CREATE TABLE statements. As in,&lt;br /&gt;&lt;br /&gt;        create table foo (....);&lt;br /&gt;        create table bar (....);&lt;br /&gt;&lt;br /&gt;        create constraint foreign key foo(bar_id) references bar(id);&lt;br /&gt;        create constraint foreign key bar(foo_id) references foo(id);&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 16 Oct 2011 19:06:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55324</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55323) Been there since at least SQL2000.</title>
      <link>http://rss.iscabbs.com/forums/61/read/55323</link>
      <description>&lt;pre&gt;Been there since at least SQL2000.&lt;br /&gt;http://msdn.microsoft.com/en-us/library/aa258255(v=sql.80).aspx&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 16 Oct 2011 19:01:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55323</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55322) Boogie&gt; The part that says it matters where the FK definition is...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55322</link>
      <description>&lt;pre&gt;Boogie&amp;gt; The part that says it matters where the FK definition is found in the&lt;br /&gt;CREATE TABLE statement. If the FK is defined in the same clause as the column&lt;br /&gt;itself, then InnoDB ignores it. If the FK is defined in its own clause, then&lt;br /&gt;the column constraint is applied.&lt;br /&gt;&lt;br /&gt;I thought about this some more. And, while it sucks completely, it is not&lt;br /&gt;likely to bite *me*, because for /years/ InnoDB's FK constraints only worked&lt;br /&gt;if you first defined an INDEX on the column. So the only way to actually&lt;br /&gt;create a FK was in a separate clause, after the clause that created the INDEX.&lt;br /&gt;i.e., you never coded a CREATE TABLE with FK clauses inline with the columns.&lt;br /&gt;&lt;br /&gt;fwiw, I *think* SQL Server still doesn't allow inline FK/PK clauses.&lt;br /&gt;&lt;br /&gt;Danix&amp;gt; Eh, that's more of a myth about MySQL than reality. In practice,&lt;br /&gt;everyone knows that InnoDB is the only engine that supports standard SQL&lt;br /&gt;constraints. So it's not like in practice somebody would create a MyISAM&lt;br /&gt;table, then wonder why the FKs aren't working.  (Don't get me wrong, there are&lt;br /&gt;plenty of gotchas and flaws in MySQL, but confusing the table engines isn't&lt;br /&gt;one of them. They are pretty obvious: InnoDB is used for real projects. MEMORY&lt;br /&gt;is used for transient data.  And MyISAM is used by PHP CMS's!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 16 Oct 2011 18:39:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55322</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55321) That and an unknown quantity of other "gotchas" is why I never e...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55321</link>
      <description>&lt;pre&gt;That and an unknown quantity of other &amp;quot;gotchas&amp;quot; is why I never even started&lt;br /&gt;using MySQL for anything other than a few non-transactional web sites. It&lt;br /&gt;is actually a lot more full-featured than it used to be. Still, I just don't&lt;br /&gt;trust that I will get results I have come to expect from every other database I&lt;br /&gt;use on a regular basis.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 15 Oct 2011 18:07:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55321</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Danix/55320) See, that's one of the reasons I switched back to Postgres. I go...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55320</link>
      <description>&lt;pre&gt;See, that's one of the reasons I switched back to Postgres. I got these &amp;quot;gems&amp;quot;&lt;br /&gt;to bite me:&lt;br /&gt;&lt;br /&gt;&amp;quot;For other storage engines, MySQL Server parses and ignores foreign key&lt;br /&gt;specifications.&amp;quot;&lt;br /&gt;&lt;br /&gt;You might start a transaction, do a crapton of things and then need a ROLLBACK,&lt;br /&gt;getting a success on that. Except it isn't, because one of the tables uses the&lt;br /&gt;transaction-less MyISAM. Same with creating Foreign Keys .... you don't get a&lt;br /&gt;warning if you don't use InnoDB as an engine.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 15 Oct 2011 16:46:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55320</guid>
      <author>Danix@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Boogie With Stu/55319) Which part made you spit your coffee?  The fact that FKs are onl...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55319</link>
      <description>&lt;pre&gt;Which part made you spit your coffee?  The fact that FKs are only possible on&lt;br /&gt;the InnoDB engine, or that the &amp;quot;inline REFERENCES specifications&amp;quot; are ignored&lt;br /&gt;despite the SQL standard?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 15 Oct 2011 16:33:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55319</guid>
      <author>Boogie With Stu@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55318) I've been using MySQL since the late 90's. I'd call myself an "e...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55318</link>
      <description>&lt;pre&gt;I've been using MySQL since the late 90's. I'd call myself an &amp;quot;expert&amp;quot; in&lt;br /&gt;MySQL, whatever that means. But I just read this little note, buried pages&lt;br /&gt;deep in MySQL's `CREATE TABLE` docs. I nearly spit out my coffee...&lt;br /&gt;&lt;br /&gt;    Furthermore, InnoDB does not recognize or support &amp;quot;inline REFERENCES&lt;br /&gt;    specifications&amp;quot; (as defined in the SQL standard) where the references are&lt;br /&gt;    defined as part of the column specification. InnoDB accepts REFERENCES&lt;br /&gt;    clauses only when specified as part of a separate FOREIGN KEY&lt;br /&gt;    specification. For other storage engines, MySQL Server parses and ignores&lt;br /&gt;    foreign key specifications.&lt;br /&gt;&lt;br /&gt;    Source: http://dev.mysql.com/doc/refman/5.5/en/create-table.html&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 13 Oct 2011 09:14:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55318</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Cyanide/55317) I dont know but Oracle Forms compatibility is on the top ten for...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55317</link>
      <description>&lt;pre&gt;I dont know but Oracle Forms compatibility is on the top ten for the FSF list.&lt;br /&gt;They -may- have a project started already that needs help.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 12 Oct 2011 07:20:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55317</guid>
      <author>Cyanide@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Darkhaven/55316) any recommendations for an oracle 'studio' besides their java th...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55316</link>
      <description>&lt;pre&gt;any recommendations for an oracle 'studio' besides their java thing and toad&lt;br /&gt;(which is $870 or $2k+ ) ? i'd prefer something open source but really just&lt;br /&gt;wondering what the options are as well.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 11 Oct 2011 13:26:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55316</guid>
      <author>Darkhaven@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Danix/55315) The SQL Server installer is *supposed* to open up port 1433. Exc...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55315</link>
      <description>&lt;pre&gt;The SQL Server installer is *supposed* to open up port 1433. Except when it&lt;br /&gt;doesn't, then you have to do it manually.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 10 Oct 2011 13:38:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55315</guid>
      <author>Danix@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Smoke Eater/55314) No, opening port 1433 is *the* way to do it.</title>
      <link>http://rss.iscabbs.com/forums/61/read/55314</link>
      <description>&lt;pre&gt;No, opening port 1433 is *the* way to do it.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 10 Oct 2011 12:10:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55314</guid>
      <author>Smoke Eater@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Raubvogel/55313) BDavis, you are right. I ended up just opening port 1433 in the</title>
      <link>http://rss.iscabbs.com/forums/61/read/55313</link>
      <description>&lt;pre&gt;        BDavis, you are right. I ended up just opening port 1433 in the&lt;br /&gt;firewall. There is probably a more elgant way to do it, but that did the trick&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 10 Oct 2011 11:54:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55313</guid>
      <author>Raubvogel@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Danix/55312) netstat -ba should give you info on listening ports as well, and...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55312</link>
      <description>&lt;pre&gt;netstat -ba should give you info on listening ports as well, and the -b option&lt;br /&gt;means that the process listening/using the socket will be printed as well.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 10 Oct 2011 10:47:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55312</guid>
      <author>Danix@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55311) It sounds like maybe the Windows Firewall is blocking it. Try di...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55311</link>
      <description>&lt;pre&gt;It sounds like maybe the Windows Firewall is blocking it. Try disabling the&lt;br /&gt;firewall. If it works, then you'll need to add a rule to the firewall. If&lt;br /&gt;not... not sure. Yes netstat exists on Windows, at a cmd prompt do a &amp;quot;netstat&lt;br /&gt;-?&amp;quot; for syntax help which as I recall is a bit different from say Linux.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 10 Oct 2011 10:44:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55311</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Raubvogel/55309) Easy sqlserver2008 in Windows 7 question: trying to enable tcp</title>
      <link>http://rss.iscabbs.com/forums/61/read/55309</link>
      <description>&lt;pre&gt;        Easy sqlserver2008 in Windows 7 question: trying to enable tcp&lt;br /&gt;on it. Based on http://msdn.microsoft.com/en-us/library/ms165 718.aspx I&lt;br /&gt;went to Server config Manager-&amp;gt;Server network config-&amp;gt;protocols for&lt;br /&gt;MSSQLSERVER and enabled tcp/IP. And then went to tcp/ip properties and&lt;br /&gt;enabled ip2, providing the host's ip address before restarting server.&lt;br /&gt;But I still cannot connect to the server; I am getting a&lt;br /&gt;&lt;br /&gt;SQLServer is unavailable or does not exist (20009)&lt;br /&gt;&lt;br /&gt;message when trying to connect to it also, nmap tells the port 1433 is&lt;br /&gt;filtered, not open, and telnet to the host port 1433 results in&lt;br /&gt;nothing; I expected it to actually connect &amp;quot;escape character=&amp;quot; instead&lt;br /&gt;of just haging at&lt;br /&gt;&lt;br /&gt;telnet delta 1433&lt;br /&gt;Trying 192.168.11.146...&lt;br /&gt;&lt;br /&gt;Which means it is not connecting. What could I be missing here? Can I&lt;br /&gt;netstat in windows 7?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 10 Oct 2011 10:31:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55309</guid>
      <author>Raubvogel@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Darphbobo/55308) Thanks BDavis. We are doing a lot of different ETL processes so ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55308</link>
      <description>&lt;pre&gt;Thanks BDavis. We are doing a lot of different ETL processes so I am trying to&lt;br /&gt;find a launchpad to start from. This looks like a good program thanks for the&lt;br /&gt;help!!!&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 10 Oct 2011 06:19:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55308</guid>
      <author>Darphbobo@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55307) You might find the Talend products interesting. There are lots o...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55307</link>
      <description>&lt;pre&gt;You might find the Talend products interesting. There are lots of tools for ETL&lt;br /&gt;and data quality, but what they do varies a lot so it depends on what you need.&lt;br /&gt;We are actually looking at getting something on the BI team I work on, as soon&lt;br /&gt;as we find some time to do the research. :-/&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 06 Oct 2011 14:52:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55307</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Darphbobo/55306) I am trying to do some automation with ETL testing. Are there an...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55306</link>
      <description>&lt;pre&gt;I am trying to do some automation with ETL testing. Are there any good&lt;br /&gt;frameworks out there? I have looked at Scriptella and TSQL. Any good ones&lt;br /&gt;specifically for incremental load and data validation?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Thu, 06 Oct 2011 09:16:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55306</guid>
      <author>Darphbobo@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Stilgar/55303) Free SQL Formatter...pretty cool:</title>
      <link>http://rss.iscabbs.com/forums/61/read/55303</link>
      <description>&lt;pre&gt;Free SQL Formatter...pretty cool:&lt;br /&gt; http://poorsql.com/&lt;br /&gt;&lt;br /&gt;Hmm, doesn't seem to be up right now, well here's a video of it in action...&lt;br /&gt; http://screencast.com/t/FX1aM1Ercg&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Sat, 10 Sep 2011 03:47:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55303</guid>
      <author>Stilgar@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55302) Depending on database, you can do something like</title>
      <link>http://rss.iscabbs.com/forums/61/read/55302</link>
      <description>&lt;pre&gt;Depending on database, you can do something like&lt;br /&gt;  insert into newtable&lt;br /&gt;  ( select somecolumn, cast(anotherone as integer), cast(third as varchar(12)&lt;br /&gt;    from oldtable )&lt;br /&gt;then use whatever selects you feel are needed for QA between old and new.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 06 Sep 2011 09:37:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55302</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(SilverEdge/55301) Would just changing numerics to integer cause a problem?  Or var...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55301</link>
      <description>&lt;pre&gt;Would just changing numerics to integer cause a problem?  Or varchar to int?&lt;br /&gt;obviously, I'd make a copy first, just in case.&lt;br /&gt;&lt;br /&gt;Or should I just make a copy of each table for comparison, create duplicate&lt;br /&gt;columns that are defined correctly, and copy them over using cast/convert.&lt;br /&gt;then remove the original columns, and then compare the revised table to the&lt;br /&gt;copy?&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 06 Sep 2011 09:00:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55301</guid>
      <author>SilverEdge@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(SilverEdge/55300) Well, referring back to my post #55286, would this be the time t...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55300</link>
      <description>&lt;pre&gt;Well, referring back to my post #55286, would this be the time to recreate the&lt;br /&gt;database correctly in SQL2005?  Also, what is the best way to back it up (again&lt;br /&gt;referring to #55286)?  I feel like I'm doing what I should do, but I also don't&lt;br /&gt;feel like it's working right.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 06 Sep 2011 06:51:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55300</guid>
      <author>SilverEdge@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55299) Create a new table, or copy the old one (six and one half dozen ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55299</link>
      <description>&lt;pre&gt;Create a new table, or copy the old one (six and one half dozen of the other),&lt;br /&gt;so you can compare the final table to the original after you have completed&lt;br /&gt;the conversion. Since your conversion is lossless, you simply have to verify&lt;br /&gt;that the outer join of the two tables is empty -- or that the inner join is&lt;br /&gt;identity.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 06 Sep 2011 06:19:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55299</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(SilverEdge/55298) It does sound complicated, but not undoable.  Seems easier than ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55298</link>
      <description>&lt;pre&gt;It does sound complicated, but not undoable.  Seems easier than creating a new&lt;br /&gt;set of tables entirely.  Basically it's the same thing, just one less&lt;br /&gt;complexity with the new table bit.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 06 Sep 2011 06:00:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55298</guid>
      <author>SilverEdge@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(BDavis/55297) I guess to me it would depend on how many columns in each table....</title>
      <link>http://rss.iscabbs.com/forums/61/read/55297</link>
      <description>&lt;pre&gt;I guess to me it would depend on how many columns in each table. You could&lt;br /&gt;create a new set of tables. That would be straightforward. But if it is only a&lt;br /&gt;couple of columns in each table, you could create new columns, copy the data&lt;br /&gt;into the new columns, drop the old columns, and rename the new with the old&lt;br /&gt;name. That sounds more complicated than it is, I think, and if you have no&lt;br /&gt;constraints it will be pretty simple.&lt;br /&gt;&lt;br /&gt;Alternatively, you could download a trial of one of the many database tools and&lt;br /&gt;let it do the heavy lifting. We use Sybase PowerDesigner, there are others.&lt;br /&gt;Just be sure to take a backup first. :)&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 06 Sep 2011 05:09:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55297</guid>
      <author>BDavis@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(SilverEdge/55296) I need advice on how to fix a database...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55296</link>
      <description>&lt;pre&gt;I need advice on how to fix a database...&lt;br /&gt;&lt;br /&gt;So, I have a custom database that is being populated primarily by information&lt;br /&gt;from another database.  When I originally made my custom one, I didn't have&lt;br /&gt;much experience with them.  I created the fields and lengths based on what I&lt;br /&gt;thought were reasonable, versus looking at what the other database used and&lt;br /&gt;creating them similarly.  Accordingly, I have some fields that are varchar(100)&lt;br /&gt;that only need to be varchar(30) and some that are varchar(10) that need to be&lt;br /&gt;varchar(12).  I also have some that are numeric that should be integers.  The&lt;br /&gt;custom database already has about 40,000 records in it, and we cannot lose this&lt;br /&gt;data.  How would I go about fixing this?&lt;br /&gt;&lt;br /&gt;I imagine, I cannot just go in and change the definitions.  Though, perhaps the&lt;br /&gt;varchar(10) to varchar(12) I can do like that.  I imagine the numeric to int&lt;br /&gt;isn't as simple?  What about a varchar changed into int?&lt;br /&gt;&lt;br /&gt;A friend of mine said he recommended creating an entire set of new tables (I&lt;br /&gt;was consistent with how I did it and so how it is messed up), and doing a&lt;br /&gt;cast/convert to migrate the data into the new tables.&lt;br /&gt;&lt;br /&gt;Another thing I'm lacking apparently is Foreign Keys, so that's not a concern&lt;br /&gt;coming from the existing table, though, once things are fixed I plan on&lt;br /&gt;specifying those.&lt;br /&gt;&lt;br /&gt;What are your thoughts?  I'm looking to do this right.  The least time the&lt;br /&gt;better of course, but it's more important to take the time to do it right.&lt;br /&gt;Thanks in advance!&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 06 Sep 2011 04:56:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55296</guid>
      <author>SilverEdge@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Egregious/55295) I did it in OOffice, too.  For all the complaints about the form...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55295</link>
      <description>&lt;pre&gt;I did it in OOffice, too.  For all the complaints about the format,&lt;br /&gt;I could edit the diagram with tools already on my computer, which&lt;br /&gt;ought to count for something.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 31 Aug 2011 07:33:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55295</guid>
      <author>Egregious@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55294) I opened it in OpenOffice.  It looks like a typical entity-attri...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55294</link>
      <description>&lt;pre&gt;I opened it in OpenOffice.  It looks like a typical entity-attribute diagram&lt;br /&gt;to me.  Is it a beautiful work of art? no, but I was able to make sense of it&lt;br /&gt;in a blink.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 31 Aug 2011 07:28:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55294</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Egregious/55293) I was wondering if it was something generating in-class by a</title>
      <link>http://rss.iscabbs.com/forums/61/read/55293</link>
      <description>&lt;pre&gt;&lt;br /&gt;I was wondering if it was something generating in-class by a&lt;br /&gt;brainstorming session of the students.&lt;br /&gt;&lt;br /&gt;Which lines are pictures of lines, BTW?  I tried about a dozen&lt;br /&gt;and then wondered why I was looking so hard.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 31 Aug 2011 06:55:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55293</guid>
      <author>Egregious@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55292) Oh, my bad.  I must have been hammered about the head by the tim...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55292</link>
      <description>&lt;pre&gt;Oh, my bad.  I must have been hammered about the head by the time I reached&lt;br /&gt;the 4th scare quote in the very first sentence.  When some scare-quotes the&lt;br /&gt;word &amp;quot;university&amp;quot;, you know they're a dick regardless of what the post is&lt;br /&gt;about! :)&lt;br /&gt;&lt;br /&gt;I dunno. I'd have to know what the real story is behind that ERD, *then*&lt;br /&gt;crucify the author! Heh.  Perhaps the ERD was intentionally vague about the&lt;br /&gt;meaning. Perhaps it was auto-generated by something. Perhaps the school didn't&lt;br /&gt;budget licensing for a real ERD tool.  Perhaps it was an exercise, and they&lt;br /&gt;will refine the diagram as the course progresses.&lt;br /&gt;&lt;br /&gt;Crack open a DB course textbook. It will strategically avoid notational-heavy&lt;br /&gt;diagrams for most of the book. That's because they don't want to imply that&lt;br /&gt;the relational model has anything to do with lines connecting boxes. They want&lt;br /&gt;to distance the students from anything remotely resembling ERDs and vendor&lt;br /&gt;implementations until the foundation is laid.  The first two-thirds of a DB&lt;br /&gt;course will probably focus on concepts such as tuples, relations, domains,&lt;br /&gt;attributes, functional dependencies, relational algebra, relational calculus,&lt;br /&gt;but never mention those dirty little things called &amp;quot;foreign keys&amp;quot; until far,&lt;br /&gt;far into the course, and even then only for lab homework.&lt;br /&gt;&lt;br /&gt;...Besides even good ERDs look like a total mess. Those things are write-only!&lt;br /&gt;;)&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 31 Aug 2011 06:32:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55292</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Dr Doctor/55291) John Public -&gt; You misread the article.  The ERD was provided to...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55291</link>
      <description>&lt;pre&gt;&lt;br /&gt;John Public -&amp;gt; You misread the article.  The ERD was provided to the class by&lt;br /&gt;the professor.  A student passed it to the guy who posted the blog entry.  It's&lt;br /&gt;not &amp;quot;less than professional homework&amp;quot; it's a &amp;quot;less than professional class hand&lt;br /&gt;out.&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 31 Aug 2011 06:20:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55291</guid>
      <author>Dr Doctor@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(John Public/55289) What a dick.  A student submits less-than-professional- quality ...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55289</link>
      <description>&lt;pre&gt;What a dick.  A student submits less-than-professional- quality homework, and&lt;br /&gt;this guy shits all over it. He suffers from an inflated sense of how important&lt;br /&gt;ERDs are in the real world. (How many professionals do you know who bother to&lt;br /&gt;create ERDs? How many students do you know who submit professional-quality&lt;br /&gt;*anything*?)&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 31 Aug 2011 05:18:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55289</guid>
      <author>John Public@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Stilgar/55288) This is pretty good:</title>
      <link>http://rss.iscabbs.com/forums/61/read/55288</link>
      <description>&lt;pre&gt;This is pretty good:&lt;br /&gt; http://weblogs.sqlteam.com/robv/archive/2011/08/30/acad-anemic.aspx&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 31 Aug 2011 04:38:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55288</guid>
      <author>Stilgar@rss.iscabbs.com</author>
    </item>
    <item>
      <title>(Kraven/55287) Im having a problem with Crystal reports and exporting to a text...</title>
      <link>http://rss.iscabbs.com/forums/61/read/55287</link>
      <description>&lt;pre&gt;Im having a problem with Crystal reports and exporting to a text file. Im&lt;br /&gt;working on an export from a sql 2005 db to a fixed lenght file format. It was&lt;br /&gt;working well but not when i export to txt the file is blank, if i export to rtf&lt;br /&gt;and then save from there to txt it works but my users wont like those extra&lt;br /&gt;steps. Any ideas whats gone wrong.&lt;br /&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 23 Aug 2011 09:47:00 -0500</pubDate>
      <guid>http://rss.iscabbs.com/forums/61/read/55287</guid>
      <author>Kraven@rss.iscabbs.com</author>
    </item>
  </channel>
</rss>

