<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Database &amp; SQL Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'Database &amp; SQL' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 09 Feb 2012 06:12:46 -0800</pubDate>
    <lastBuildDate>Thu, 09 Feb 2012 06:12:46 -0800</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Cannot open Excel File from VB2005 using SQL Server Stored Procedure</title>
      <link>http://www.programmersheaven.com/mb/database/427284/427284/cannot-open-excel-file-from-vb2005-using-sql-server-stored-procedure/</link>
      <description>Hi, I need help!!!&lt;br /&gt;
 &lt;br /&gt;
I developed a program in VB 2005 which opens an Excel file using Interop, and I call it from an SQL Stored Procedure using xp_cmdshell. Everything works fine when I am working under Windows 2003 Server. The problem is when I try to call my program the same way, but under Windows 2008 Server. It throws an exception at the moment my programs tries to open the Excel file. I assumed it was an authentication issue, so I changed the login for the SQL Server Service to an administrator account, and I granted Full Control to Everybody over the folder where the Excel file resides, but the problem persists.&lt;br /&gt;
 &lt;br /&gt;
The error message says that the Excel file cannot be accessed because either the file is in use by another program (which it isn't) or the user doesn't have enough privileges.&lt;br /&gt;
 &lt;br /&gt;
Same problem happens under Windows 7.&lt;br /&gt;
&lt;br /&gt;
I am using "Microsoft Excel 12.0 Object Library" in my Project.&lt;br /&gt;
&lt;br /&gt;
By the way, I tried to run my program with a double click in windows explorer and it opened the Excel file with no problem.  The problem is when I call my program from an SQL Server Stored Procedure using xp_cmdshell.&lt;br /&gt;
 &lt;br /&gt;
Any ideas?&lt;br /&gt;
 &lt;br /&gt;
Thanks in any advance for your help.&lt;br /&gt;
 &lt;br /&gt;
Giovanni @ Guatemala.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/427284/427284/cannot-open-excel-file-from-vb2005-using-sql-server-stored-procedure/</guid>
      <pubDate>Tue, 07 Feb 2012 17:27:46 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Help..church offering software</title>
      <link>http://www.programmersheaven.com/mb/database/427217/427217/helpchurch-offering-software/</link>
      <description>anybody want to share their talent to our church? we need simple program for our tithes and offering. Thanks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/427217/427217/helpchurch-offering-software/</guid>
      <pubDate>Sat, 04 Feb 2012 05:08:33 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Browse an Array In Visual FoxPro</title>
      <link>http://www.programmersheaven.com/mb/database/427120/427120/browse-an-array-in-visual-foxpro/</link>
      <description>Greetings all,&lt;br /&gt;
I'd like to know if there is any way to BROWSE an array in FoxPro like is possible when creating a cursor from sql?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/427120/427120/browse-an-array-in-visual-foxpro/</guid>
      <pubDate>Tue, 31 Jan 2012 09:29:19 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Amazing article about SQL!</title>
      <link>http://www.programmersheaven.com/mb/database/426982/426982/amazing-article-about-sql/</link>
      <description>Hey, fellas!&lt;br /&gt;
&lt;br /&gt;
Found out this SQL article: &lt;a href="http://en.sdjournal.org/nosql-to-newsql-fast-changes-in-database-world/"&gt;http://en.sdjournal.org/nosql-to-newsql-fast-changes-in-database-world/&lt;/a&gt; &lt;br /&gt;
It's worth reading. I strongly recommend it just as the whole SDJ magazine.&lt;br /&gt;
&lt;br /&gt;
Cheers!</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/426982/426982/amazing-article-about-sql/</guid>
      <pubDate>Wed, 25 Jan 2012 06:27:21 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/database/426055/426055/this-post-has-been-deleted/</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/426055/426055/this-post-has-been-deleted/</guid>
      <pubDate>Sat, 03 Dec 2011 11:47:29 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>DTD Bounds</title>
      <link>http://www.programmersheaven.com/mb/database/426054/426054/dtd-bounds/</link>
      <description>I'm creating a DTD and one of the restrictions I need to implement is that the value of an element has to be bounded by 2 numbers. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!ELEMENT Value (Number)&amp;gt;&lt;br /&gt;
    &amp;lt;!ATTLIST Value &lt;br /&gt;
          max CDATA #IMPLIED&lt;br /&gt;
          min CDATA #IMPLIED&lt;br /&gt;
    &amp;gt;&lt;br /&gt;
&amp;lt;!ELEMENT Number (#PCDATA)&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And the value of number has to be between min and max. Is this possible with a DTD?&lt;br /&gt;
I know this is possible with xmlschema but I'm wondering if this can be done with a DTD. Thanks.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/426054/426054/dtd-bounds/</guid>
      <pubDate>Sat, 03 Dec 2011 11:45:38 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Compare list in PL/SQL</title>
      <link>http://www.programmersheaven.com/mb/database/425792/425792/compare-list-in-plsql/</link>
      <description>Hi all,&lt;br /&gt;
I'm a java programmer but currently have a task to compare different list and output their common element in PL/SQL. In java this is very simple but i'm not sure how i would handle this in sql since i'm fairly new to it.&lt;br /&gt;
&lt;br /&gt;
ex &lt;br /&gt;
l1='A,B,C,D'&lt;br /&gt;
l2='B,C,D'&lt;br /&gt;
l3 ='A'&lt;br /&gt;
&lt;br /&gt;
l1+l2 = (B,C,D)&lt;br /&gt;
&lt;br /&gt;
l1+l3 = (A)&lt;br /&gt;
&lt;br /&gt;
l2+l3 = 0&lt;br /&gt;
&lt;br /&gt;
Has anyone ever done anything similar in sql? Would really appreciate any help on this.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/425792/425792/compare-list-in-plsql/</guid>
      <pubDate>Mon, 14 Nov 2011 15:48:44 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Need General Newbie Guidance</title>
      <link>http://www.programmersheaven.com/mb/database/424834/424834/need-general-newbie-guidance/</link>
      <description>Hello; &lt;br /&gt;
&lt;br /&gt;
This is my first post, so bear with me!  Wasn't sure which forum to post this to, but thought this might get me closest to my answer.&lt;br /&gt;
&lt;br /&gt;
Looking to build a website application.  I want to build an online scheduling application for a restaurant.&lt;br /&gt;
&lt;br /&gt;
I have some very rudimentary programming and database skills. (I mean extremely rudimentary!!)&lt;br /&gt;
&lt;br /&gt;
What Im wondering is, what language should I use to program this in?  I am a blank slate, and will be learning this language from scratch.&lt;br /&gt;
&lt;br /&gt;
My parameters are to keep the cost down to as little as possible.  Free and opensource is fine with me.  But if I needed to spend a little bit of money to have it current, I would do that.&lt;br /&gt;
&lt;br /&gt;
Questions:&lt;br /&gt;
&lt;br /&gt;
1)  Where should I host my website?&lt;br /&gt;
2)  What database should I use?&lt;br /&gt;
3)  Which web programming language should I use?&lt;br /&gt;
4)  Reasonable time frame to learn and get this online, considering I have average intelligence?&lt;br /&gt;
5)  Am I crazy?&lt;br /&gt;
&lt;br /&gt;
Basic Functionality:&lt;br /&gt;
1)  Back end administration for the schedule maker&lt;br /&gt;
2)  Employees should be able to log in and submit time off requests, see schedule.&lt;br /&gt;
3)  Enter and update shifts to be filled.&lt;br /&gt;
4)  The program to run a matching scheme, where by the employees get married up to the shifts based on their skill vs importance of shift.&lt;br /&gt;
5)  Produce a graphical output of schedule, which then could be emailed to the employees.&lt;br /&gt;
&lt;br /&gt;
Thanks to all replys! ps..if this should be in another forum, please let me know!&lt;br /&gt;
&lt;br /&gt;
Jason.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/424834/424834/need-general-newbie-guidance/</guid>
      <pubDate>Wed, 21 Sep 2011 10:16:49 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Calculated field producing possible 4 different results</title>
      <link>http://www.programmersheaven.com/mb/database/424510/424510/calculated-field-producing-possible-4-different-results/</link>
      <description>I need help with the syntax in a calculated field.  I will give you an example of what I am trying to accomplish. &lt;br /&gt;
&lt;br /&gt;
Yes and Out of State $9,000	result in field   $9,000&lt;br /&gt;
No and Out of State $6,500	result in field   $6,500&lt;br /&gt;
No and In State $5000		result in field   $5,000&lt;br /&gt;
Yes and In State $7,500		result in field   $7,500&lt;br /&gt;
&lt;br /&gt;
Result: IIf([y/nField]=-1,[InStateAndYes],[InStateAndNo]) And (IIf([y/nField]=0,[OutStateYes],[OutStateNo]))&lt;br /&gt;
&lt;br /&gt;
The [InStateAndYes] is a field in the table which contains 7500, similarly the other fields contain:&lt;br /&gt;
[InStateAndNo]=5000&lt;br /&gt;
[OutStateAndYes]=9000&lt;br /&gt;
[OutStateAndNo]=6500 &lt;br /&gt;
&lt;br /&gt;
Can this be done?&lt;br /&gt;
Thanks for your time.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/424510/424510/calculated-field-producing-possible-4-different-results/</guid>
      <pubDate>Fri, 12 Aug 2011 09:14:22 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Gathering Data From Database</title>
      <link>http://www.programmersheaven.com/mb/database/424446/424446/gathering-data-from-database/</link>
      <description>Hello guys,&lt;br /&gt;
&lt;br /&gt;
I have an application that uses a local database (oracle 10g) and on this application I created a huge project, it's all on my local database.&lt;br /&gt;
&lt;br /&gt;
This application does not export data in any way and I really need to recover my work from this app.&lt;br /&gt;
&lt;br /&gt;
There is any way I can get this data from the oracle database? Maybe some sort of reverse engeneering or something?&lt;br /&gt;
&lt;br /&gt;
I would really apreciatte any idea.&lt;br /&gt;
&lt;br /&gt;
Thanks a lot!&lt;br /&gt;
&lt;br /&gt;
Lucas&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/424446/424446/gathering-data-from-database/</guid>
      <pubDate>Wed, 03 Aug 2011 11:24:34 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Need help with SQL query</title>
      <link>http://www.programmersheaven.com/mb/database/423980/423980/need-help-with-sql-query/</link>
      <description>I am very new to SQL and not a programmer by trade.  I know enough to be dangerous.  I need a query (I'm using Toad for SQL) that extracts information when multiple conditions from the same table are met ... essentially pull data when it equals this AND equals this.  Example:&lt;br /&gt;
&lt;br /&gt;
Last	First	Order#	Item&lt;br /&gt;
Doe	John	1111	Candy&lt;br /&gt;
Doe	John	1111	Gum&lt;br /&gt;
Doe	John	1111	Chips&lt;br /&gt;
Doe	John	2222	Candy&lt;br /&gt;
Doe	John	2222	Chips&lt;br /&gt;
Smith	Jane	3333	Candy&lt;br /&gt;
Smith	Jane	4444	Candy&lt;br /&gt;
Smith	Jane	4444	Chips&lt;br /&gt;
Smith	Jane	5555	Gum&lt;br /&gt;
&lt;br /&gt;
Right now, my select statement is "Select Last, First, Order # when Item in ('Candy', 'Gum')".  I'm getting six returns since it is matching entries with either "Candy" or either "Gum".  However, I need a statement that pulls a value when both 'Candy' and 'Gum' are purchased by the same customer in the same order #.  Given the data above, I only want "Doe, John, 1111" returned.  Can anyone help?  And just for the record, this is not a homework assignment ... &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/423980/423980/need-help-with-sql-query/</guid>
      <pubDate>Mon, 06 Jun 2011 12:22:39 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Data Missing after a transaction is said "committed successfully"</title>
      <link>http://www.programmersheaven.com/mb/database/423972/423972/data-missing-after-a-transaction-is-said-committed-successfully/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
My application requires several clients (can be at the same time) to write the data to the SQL Server 2008 through the WEB Service.&lt;br /&gt;
&lt;br /&gt;
The Web Service is just a transaction and return "success" or "fail". I found that after a few hundreds or thousands of transactions, though the Web Service return "success", the data is missing after that transaction is said committed successfully.&lt;br /&gt;
&lt;br /&gt;
The followings is the piece of code that the Web Service will call.&lt;br /&gt;
&lt;br /&gt;
    public static int ExecSQL(string[] SQL)&lt;br /&gt;
    {&lt;br /&gt;
        int I = 0;&lt;br /&gt;
        int J = 0;&lt;br /&gt;
        string S = "";&lt;br /&gt;
        try {&lt;br /&gt;
            CN = GenConnection();&lt;br /&gt;
            CN.Open();&lt;br /&gt;
            SqlConnection.ClearPool((SqlConnection)CN);&lt;br /&gt;
            TR = CN.BeginTransaction();&lt;br /&gt;
&lt;br /&gt;
            CM = GenCommand();&lt;br /&gt;
            CM.Connection = CN;&lt;br /&gt;
            CM.Transaction = TR;&lt;br /&gt;
            CM.CommandTimeout = 600;&lt;br /&gt;
            for (J = SQL.GetLowerBound(0); J &amp;lt;= SQL.GetUpperBound(0); J++) {&lt;br /&gt;
                S = SQL[J].Trim();&lt;br /&gt;
                if (!string.IsNullOrEmpty(S)) {&lt;br /&gt;
                    CM.CommandText = S;&lt;br /&gt;
                    I = CM.ExecuteNonQuery();&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
            TR.Commit();&lt;br /&gt;
&lt;br /&gt;
            CN.Close();&lt;br /&gt;
            CN.Dispose();&lt;br /&gt;
            GC.Collect();&lt;br /&gt;
&lt;br /&gt;
            return 0;&lt;br /&gt;
        } catch (Exception E) {&lt;br /&gt;
            try {&lt;br /&gt;
                if ((TR != null)) {&lt;br /&gt;
                    if ((TR.Connection != null)) {&lt;br /&gt;
                        TR.Rollback();&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
            } catch  {&lt;br /&gt;
            }&lt;br /&gt;
            LogError(E, S);&lt;br /&gt;
&lt;br /&gt;
            CN.Close();&lt;br /&gt;
            CN.Dispose();&lt;br /&gt;
            GC.Collect();&lt;br /&gt;
            return 255;&lt;br /&gt;
&lt;br /&gt;
        } finally {&lt;br /&gt;
        }       &lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
I have log the data before calling this sub-routine and after this sub-routine. The data missing is found just after successfully committed. Please help.... it's been distributing me for several months.....&lt;br /&gt;
&lt;br /&gt;
Best regards</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/423972/423972/data-missing-after-a-transaction-is-said-committed-successfully/</guid>
      <pubDate>Sun, 05 Jun 2011 21:16:29 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>ER Diagram Help needed ! Please ...</title>
      <link>http://www.programmersheaven.com/mb/database/423479/423479/er-diagram-help-needed--please-/</link>
      <description>Hello ..this is my first post in her (and english is my second language so bare on me please ) &lt;br /&gt;
&lt;br /&gt;
i'm having some problems deciding if my ER diagram of a Dental Clinic Information system is correct &lt;br /&gt;
let me start of naming the Entitys that i have :&lt;br /&gt;
   -Pateint&lt;br /&gt;
-Payments&lt;br /&gt;
-Appoitments&lt;br /&gt;
-Diseases&lt;br /&gt;
-Diagnose/Treatment&lt;br /&gt;
-Prescription (medicine)&lt;br /&gt;
&lt;br /&gt;
i had many many relation connections between them ..really am lost &lt;br /&gt;
at the end i came up with a star-shaped er diagram ...pateint in the Center and all other Entitys are connected to it ...&lt;br /&gt;
is that correct ? in other words ..HOW can i know if my er diagram is correct ..&lt;br /&gt;
help apreciated &lt;br /&gt;
thanks in advance !&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/423479/423479/er-diagram-help-needed--please-/</guid>
      <pubDate>Tue, 26 Apr 2011 11:51:18 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>DbSchema - Database tool for managing database data and schema</title>
      <link>http://www.programmersheaven.com/mb/database/423149/423149/dbschema---database-tool-for-managing-database-data-and-schema/</link>
      <description>Database tool for managing database data and schema&lt;br /&gt;
&lt;br /&gt;
DbSchema provides you with a complete and powerful solution for databases. Our target is to bring both database schema and data in a single unified workflow. This provides an efficient and productive environment to work in, with improved awareness of application schema architecture and easy access to application data.&lt;br /&gt;
&lt;br /&gt;
Support for offline work and schema synchronization, make DbSchema an excelent tool for team work as well as a great tool for converting and merging database schemas.&lt;br /&gt;
&lt;br /&gt;
Here are some key features of "DbSchema":&lt;br /&gt;
&lt;br /&gt;
Import database schemas:&lt;br /&gt;
· Load JDBC driver&lt;br /&gt;
· Connect to any JDBC compatible database. Several DBMS have already been tested, but more will be added later.&lt;br /&gt;
· Currently tested DBMS include: Oracle, MySQL, PostgreSQL, DB2 for Windows/Linux, Cache, DaffodilDB, FrontBase, HSQLDB, Informix, JavaDB/Derby, Microsoft SQL Server, Mimer, Pervasive, PointBase, Sybase SQL Anywhere, Sybase ASE.&lt;br /&gt;
· Schema import includes: tables, views, foreign keys, procedures, triggers, sequences and comments.&lt;br /&gt;
&lt;br /&gt;
Edit database schema:&lt;br /&gt;
· Uses an abstraction level between internal database schema representation and any particular database.&lt;br /&gt;
· Edit tables, columns, indexes, foreign keys, procedures, triggers, sequences and comments.&lt;br /&gt;
· Edit your schemas Graphically using Layouts, including: tables, views, foreign keys, etc...&lt;br /&gt;
· Create and use multiple Layouts inside a project.&lt;br /&gt;
· Drag, pan and zoom Layouts using simple mouse movements.&lt;br /&gt;
· Supports Drag&amp;amp;Drop from project tree to graphical Layout.&lt;br /&gt;
· Highlight Foreign Keys for a given table, which trigger on delete events.&lt;br /&gt;
· Generate SQL statements directly from schema graphical Layout.&lt;br /&gt;
· Generate schema scripts to any particular database.&lt;br /&gt;
· Change schema data types from one database to another.&lt;br /&gt;
· Edit schema offline support.&lt;br /&gt;
&lt;br /&gt;
Browse database data:&lt;br /&gt;
· Browse data from multiple tables simultaneously.&lt;br /&gt;
· Set filters over browse data.&lt;br /&gt;
· Order browse data on one or more columns.&lt;br /&gt;
· Unlimited browse depth.&lt;br /&gt;
· Paginates browse data.&lt;br /&gt;
· Single or multiple record views.&lt;br /&gt;
· Insert, update, and delete records.&lt;br /&gt;
· View Large Objects (LOBs) fields as image, html, text or using an external application.&lt;br /&gt;
· Saves browse sessions in project file, which can later be browsed again.&lt;br /&gt;
&lt;br /&gt;
Edit and execute SQL:&lt;br /&gt;
· Edit SQL statements.&lt;br /&gt;
· Syntax highlight covering database keywords, functions, table and view names.&lt;br /&gt;
· Auto completion of table, view and column names.&lt;br /&gt;
· Quick Click&amp;amp;Show tables or columns in SQL pane and show them in Layout.&lt;br /&gt;
· Execute SQL statements individually or as scripts.&lt;br /&gt;
· Paginate and order SQL results, after query execution.&lt;br /&gt;
· Keep multiple SQL result panes, and refresh query results.&lt;br /&gt;
· Explain SQL execution plan.&lt;br /&gt;
· Saves SQL scripts working sessions in project file, which can later be continued.&lt;br /&gt;
&lt;br /&gt;
Schema Synchronization:&lt;br /&gt;
· Synchronize project schema with another project or database.&lt;br /&gt;
· List schema differences.&lt;br /&gt;
· Select which differences to keep, either on local or remote schema.&lt;br /&gt;
· Generate Merge SQL scripts based on schema differences.&lt;br /&gt;
· Upload differences on to database, with automatic step by step execution.&lt;br /&gt;
· Synchronize schemas offline, which enpowers team work.&lt;br /&gt;
&lt;br /&gt;
Scripts and documentation:&lt;br /&gt;
· Generates SQL schema creation scripts for any database.&lt;br /&gt;
· Document tables, columns, foreign keys, indexes, etc... by adding Comments&lt;br /&gt;
· Generates schema specification as an HTML document.&lt;br /&gt;
· Print schema Layouts with precise control on actual print size, using Zoom print feature.&lt;br /&gt;
· Generates schema Layout image files, in a few formats (PNG [raster] or SVG [vectorial])&lt;br /&gt;
· Provides a Database Template System, which allows to create, edit and maintain database templates&lt;br /&gt;
· Several Database Templates are already supplied, but new ones can be learned as well, by connecting to target database.&lt;br /&gt;
&lt;br /&gt;
Requirements:&lt;br /&gt;
&lt;br /&gt;
· Java 1.6&lt;br /&gt;
&lt;br /&gt;
www.dbschema.com</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/423149/423149/dbschema---database-tool-for-managing-database-data-and-schema/</guid>
      <pubDate>Sun, 10 Apr 2011 08:21:03 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>postgresql: USING CURSOR in extracting data in one database and insert</title>
      <link>http://www.programmersheaven.com/mb/database/422499/422499/postgresql-using-cursor-in-extracting-data-in-one-database-and-insert/</link>
      <description>here is another algorithm using cursor but im having a hard time fixing its error...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
    CREATE OR REPLACE FUNCTION extractstudent()
    RETURNS VOID AS 
    $BODY$
    DECLARE
    	studcur SCROLL cursor FOR SELECT fname, lname, mname, address FROM student;
    BEGIN    
    	open studcur; 
    	
    	Loop
    	--fetching 1 row at a time
    	FETCH First FROM studcur;
    	--every row fetched is being inserted to another database on the local site
    	--myconT is the name of the connection to the other database in the local site
    	execute 'SELECT * from dblink_exec(''myconT'', ''insert into temp_student values(studcur)'')';
    	--move to the next row and execute again
    	move next from studcur;
    	--exit when the row content is already empty
    	exit when studcur is null;
    	end loop;
    
    	close studcur;    
    	
    END;
    $BODY$
      LANGUAGE plpgsql VOLATILE
      COST 100;
    ALTER FUNCTION extractstudent() OWNER TO postgres;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
im just new in postgresql and i know this code has alot of error&lt;br /&gt;
hopefully someone can help me figure them out&lt;br /&gt;
&lt;br /&gt;
thanks for dropping by&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/422499/422499/postgresql-using-cursor-in-extracting-data-in-one-database-and-insert/</guid>
      <pubDate>Wed, 16 Mar 2011 20:45:14 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Access 2007 - Enable Field Query</title>
      <link>http://www.programmersheaven.com/mb/database/422494/422494/access-2007---enable-field-query/</link>
      <description>I have a form with a sub-form within.&lt;br /&gt;
&lt;br /&gt;
The main form consists of 3 fields.  The first is a combo box "Materials/Description of Work", the second is "Unit of Measure" and the third is "Quantity".&lt;br /&gt;
&lt;br /&gt;
I would like the combo box to disable itself once I tab to the sub-form - this is to prevent accidentally changing the selection in the combo box.&lt;br /&gt;
&lt;br /&gt;
When I go to a new record I would like the combo box to be re-enabled so I can make a new selection.&lt;br /&gt;
&lt;br /&gt;
I am only now learning how to write code so I need all the help I can get.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance for your input&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/422494/422494/access-2007---enable-field-query/</guid>
      <pubDate>Wed, 16 Mar 2011 11:05:27 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Please help with a small program/flash</title>
      <link>http://www.programmersheaven.com/mb/database/421861/421861/please-help-with-a-small-programflash/</link>
      <description>Hi!&lt;br /&gt;
&lt;br /&gt;
I need help with a certain program that does a few simple operations - it can be anything - a soft coded in any programming language, or in flash or anything you can think about.&lt;br /&gt;
And this is what this program does : &lt;br /&gt;
Input box - allows me to insert how many .txt lists I want to use, and depending on the number I chose (let's say 5), then 5 other buttons will appear (or become active) and each of them will let me browse for each list (the same list can be used for two or more of the buttons if I want).If you find too much creating an unlimited number of buttons, then I think 10 will suffice, arranged in a single row, one after another on a 1024 pixels wide window.&lt;br /&gt;
Each button will also have own value output box.&lt;br /&gt;
All the .txt lists contain values of any kind (alphabetical, numerical, special characters), and an individual value is everything contained on a single line - if the line breaks (ENTER), then that's another value and so on.The lists can contain any ammount of values (lists).&lt;br /&gt;
Randomize button - as you might have already guessed, this button will simply take one value at random from each list and display it in the corresponding output box for each button (list).So if a value is taken from the list asociated (browsed) with the third button, then the value will be displayed in the output box associated with that button.The output boxes should also be all arranged on a single line, just like the buttons, and the display font should be no bigger than 10 pts and not bold, as to as many characters can enter in the output box.&lt;br /&gt;
Generate list - this button will generate and save a list as another .txt with the name of 'Generated list' or something similar, and int this list will include combinatorics of all the terms from all the lists that I chose to include in the buttons that I chose to activate, for instance, if I have 5 buttons active, then the values will be taken from the 5 lists chosed, one under each browse button.&lt;br /&gt;
The lists might contain values like owl, apple, pizza, sport, fair.&lt;br /&gt;
And the result should be saved on a single line in the output .txt like this Owl apple pizza sport fair, then on the next line, the next combinatoric result.This is just a random example so you can understand better what I need.&lt;br /&gt;
That's all!&lt;br /&gt;
In conclusion is just a small program, or applet, or javascript, or flash that simply browses text lists with values separated into rows (each value on its own row) and then it does two things with them - creates a random output of values with one random value selected from each list at the press of a button and outputs a list of all the combinatorics from all the lists selected at the press of another button.&lt;br /&gt;
If you know any such program or a flash script/java script, or you can program it (it should not use more than the basics of programming in any language and certainly will not take more than 15 minutes from an experienced programmer), please let me know.&lt;br /&gt;
Thank you in advance!&lt;br /&gt;
&lt;br /&gt;
Best regards!&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/421861/421861/please-help-with-a-small-programflash/</guid>
      <pubDate>Sat, 19 Feb 2011 11:33:15 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>NCPDP D.0 layout</title>
      <link>http://www.programmersheaven.com/mb/database/421827/421827/ncpdp-d0-layout/</link>
      <description>I need the file record layout for NCPDP D.0 if anyone could post&lt;br /&gt;
or e-mail form me.&lt;br /&gt;
Thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/421827/421827/ncpdp-d0-layout/</guid>
      <pubDate>Fri, 18 Feb 2011 06:58:48 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Please Help Debug VBA</title>
      <link>http://www.programmersheaven.com/mb/database/421300/421300/please-help-debug-vba/</link>
      <description>Hi Everyone,&lt;br /&gt;
&lt;br /&gt;
When trying to run this vba i'm getting a Debug error. I'm new to VBA so any help is appresheated.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/421300/421300/please-help-debug-vba/</guid>
      <pubDate>Thu, 27 Jan 2011 11:30:51 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Eng-eng dictionary database is needed?</title>
      <link>http://www.programmersheaven.com/mb/database/421099/421099/eng-eng-dictionary-database-is-needed/</link>
      <description>where i can find the eng-eng dictionary database. if anyone have then plz send me at ansriazch@gmail.com. i needed it badly&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/421099/421099/eng-eng-dictionary-database-is-needed/</guid>
      <pubDate>Thu, 20 Jan 2011 10:59:39 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>Ranking The Standard Deviation</title>
      <link>http://www.programmersheaven.com/mb/database/421036/421036/ranking-the-standard-deviation/</link>
      <description>I’m hoping someone can help me with my newest rank issue. &lt;br /&gt;
I’m trying to get a rank my standard deviation so it will be a number below 1, the numbers I'm trying to rank are below&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
CODE&lt;br /&gt;
Rank1: 1+DCount("*","[Table1]","[standard deviation]&amp;lt;" &amp;amp; [standard deviation])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition, my rank comes out to "1" &lt;br /&gt;
&lt;br /&gt;
[quote]&lt;br /&gt;
-0.346475955413238&lt;br /&gt;
-0.393008929311432&lt;br /&gt;
-0.313430681489258&lt;br /&gt;
0&lt;br /&gt;
-0.408248290463863&lt;br /&gt;
-0.39972826427894&lt;br /&gt;
-0.379339734056029&lt;br /&gt;
-0.123600171413157&lt;br /&gt;
-0.365864893089862&lt;br /&gt;
-0.183973875868388&lt;br /&gt;
-0.371230105706986&lt;br /&gt;
-0.262369301094045&lt;br /&gt;
-0.321886521586874&lt;br /&gt;
-0.391106441996541&lt;br /&gt;
-0.137470711646278&lt;br /&gt;
-0.124342264640857&lt;br /&gt;
-0.228627545996961&lt;br /&gt;
-0.314589973831583&lt;br /&gt;
-0.217890019842972&lt;br /&gt;
-0.271519018007927&lt;br /&gt;
-0.251561710306367&lt;br /&gt;
-0.249946076975505&lt;br /&gt;
-0.269279732015007&lt;br /&gt;
[quote/]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks for all your help &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/421036/421036/ranking-the-standard-deviation/</guid>
      <pubDate>Tue, 18 Jan 2011 09:08:10 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>How to get the avg in two fields</title>
      <link>http://www.programmersheaven.com/mb/database/420921/420921/how-to-get-the-avg-in-two-fields/</link>
      <description>I’ve been searching the web and can’t find a straight answer.&lt;br /&gt;
&lt;br /&gt;
If I was to get an average of two fields in access how would I do it? I would think something like this&lt;br /&gt;
&lt;br /&gt;
Avg([3MRank]),([3MRank])&lt;br /&gt;
or&lt;br /&gt;
Avg([3MRank]) and ([3MRank])&lt;br /&gt;
or&lt;br /&gt;
=Avg([3MRank]) + ([3MRank])&lt;br /&gt;
&lt;br /&gt;
Could someone please just show me how I would do this?&lt;br /&gt;
&lt;br /&gt;
Thanks &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=1937"&gt;CV_test.zip&lt;/a&gt; (42981 bytes | downloaded 64 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/420921/420921/how-to-get-the-avg-in-two-fields/</guid>
      <pubDate>Thu, 13 Jan 2011 14:38:41 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>YAD - a new "NoSQL" library</title>
      <link>http://www.programmersheaven.com/mb/database/420481/420481/yad---a-new-nosql-library/</link>
      <description>YAD is a new library for creating and managing databases "NoSQL”. &lt;br /&gt;
It is written in C++0x and can be used by users of this language. &lt;br /&gt;
It is a very compact library which provides basic functionality for &lt;br /&gt;
managing the database. &lt;br /&gt;
Its main feature is that it is possible to assign a type to the &lt;br /&gt;
fields, so that data entry is validated directly from the functions of &lt;br /&gt;
the library. &lt;br /&gt;
Version 1.0 is currently available for Linux but can be ported to &lt;br /&gt;
other OS that support the C++0x. &lt;br /&gt;
It is distributed as freeware and is freely usable for personal work &lt;br /&gt;
(not commercial). &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.fjmsoftware.altervista.org"&gt;www.fjmsoftware.altervista.org&lt;/a&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/420481/420481/yad---a-new-nosql-library/</guid>
      <pubDate>Fri, 24 Dec 2010 08:44:38 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>NEED HELP MySQL :(</title>
      <link>http://www.programmersheaven.com/mb/database/420358/420358/need-help-mysql-/</link>
      <description>Can anyone help me how can I connect MySQL to C# Windows form application. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks in advance :)&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/420358/420358/need-help-mysql-/</guid>
      <pubDate>Sat, 18 Dec 2010 21:39:25 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
    <item>
      <title>SQL Server 2005 Express: Cannot connect to Server Name</title>
      <link>http://www.programmersheaven.com/mb/database/418861/418861/sql-server-2005-express-cannot-connect-to-server-name/</link>
      <description>Good day!&lt;br /&gt;
I am newly in SQL Server 2005 and now I encountered error when i try to login. This is some of the information:&lt;br /&gt;
&lt;br /&gt;
Microsoft SQL Server 2005 Express Edition&lt;br /&gt;
&lt;br /&gt;
Server Type: Database Engine&lt;br /&gt;
Servername:Servername\MSFW&lt;br /&gt;
Authentication:SQL Server Authentication&lt;br /&gt;
Login: sa&lt;br /&gt;
Password:xxxx&lt;br /&gt;
&lt;br /&gt;
and when i press the connect button the error appear:&lt;br /&gt;
&lt;br /&gt;
Error:&lt;br /&gt;
   Cannot connect to Servername\MSFW&lt;br /&gt;
&lt;br /&gt;
Additional Informations:&lt;br /&gt;
    An error has occured while establishing a connection to the server. When connecting to SQL Server 2005, this failure may becaused by the fact that under the default settings SQL Server does not allow remote connections.(Provider:SQL Network Interfaces error:26-Error Locating Server/Instance Specified) (Microsoft SQL Server).&lt;br /&gt;
&lt;br /&gt;
I have no idea where i can solve this problem..&lt;br /&gt;
&lt;br /&gt;
Any help is highly appreciated..&lt;br /&gt;
&lt;br /&gt;
Thank you in advance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/418861/418861/sql-server-2005-express-cannot-connect-to-server-name/</guid>
      <pubDate>Tue, 28 Sep 2010 02:32:58 -0800</pubDate>
      <category>Database &amp; SQL</category>
    </item>
  </channel>
</rss>
