SECONDARY TRANSFERS OF RESTRICTED
INTERESTS
This application is entitled to and claims the benefit of priority of United States Provisional Patent Applications serial number 60/437,817, filed January 3, 2003, serial number 60/438,200, filed January 6, 2003, and serial number 60/482,857, filed June 26, 2003, and United States Utility Patent Application 10/460,538, filed June 12, 2003, all of which are incorporated by reference in their entirety.
This application is accompanied by two duplicate compact disks (and paper copies) containing the following four files representing computer program listing appendices A, B, C, and D referenced in the specification, and incorporated here by reference:
File name Date created Size
pc_account.txt, Created 6/12/03 54.1KB
PT-George.txt Created 6/12/03 107.2 KB
pt_accounts.txt Created 6/12/03 52.3 KB
PC-George.txt Created 6/12/03 93.3 KB
BACKGROUND
This description relates to transfers of restricted interests, including secondary transfers.
Unlike securities that are listed for public trading on exchanges, interests in private companies, partnerships, and other ventures are typically not easily transferred from a seller to a buyer, The transfers may be restricted by governments (for example, through federal and state securities laws and regulations) or by the issuers of the interests (for example, through contract or the administrative control of the board of directors or a general partner). We intend the phrase "restricted interests" to be construed broadly to refer to stocks, bonds, securities, and all types of investment interests in, for example, companies, partnerships, or other ventures, in a context in which there are more restrictive
limitations on transferring the interests than would be the case for a publicly-traded security. A limited partnership interest or a limited liability company interest (which together we sometimes refer to as private partnerships) is one specific example. Restricted shares of stock in an unlisted company are another. Ventures issuing restricted securities could include private equity funds, leveraged buyout funds, mezzanine funds, real estate funds, oil and gas funds, and hedge funds, for example. Restiicted interests can include interests in issuers that are not listed on a stock exchange (such as the New York Stock Exchange, the American Stock Exchange, or NASDAQ in the United States or the London Stock Exchange, Tokyo Stock Exchange, and other exchanges outside the United States). Restricted interests also include interests in non-United States partnerships and private companies. The issuers maybe ones that report to the SEC and that have securities trading in the over the counter market or by pink sheets.
The values of restricted interests tend to be lower than they might otherwise be if traded on a public exchange, because the market for them is limited and the mechanisms for transfer are restiicted. In addition, information about the performance, plans, and operations of the issuer is normally disseminated only to, for example, the partners of a partnership or the shareholders of a private company. The information is considered confidential and its dissemination is carefully controlled, for example, by the general partner of a limited partnership or the company issuer of private company interests. The lack of publicly available information tends to reduce the transfer values of restiicted securities.
SUMMARY
In general, in one aspect, the invention features a method that includes receiving from users, buy or sell orders, each of the buy or sell orders being for an amount of an identified restricted interest to be subjected to a secondary transfer at a proposed value, and displaying the buy and sell orders for review by online or offline users.
Implementations of the invention may include one or more of the following features. The restricted interests comprise interests in limited partnerships. The restricted interests comprise interests in private companies. Information is displayed about an issuer of the restricted interest. Permission of the issuer of the restricted interest is obtained to display the information about the issuer. The proposed value is expressed relative to an asset value associated with the interest. The proposed value is expressed
as a percentage of the net asset value of the interest. The proposed value takes account of characteristics of the issuer of the interest. The proposed value takes account of historic information associated with the issuer or the interest. The proposed value takes account of market conditions. The amount of the identified restricted interest represents a funded commitment and an unfunded commitment. The online users comprise potential buyers and sellers of restricted interests. The online users comprise an issuer of the restricted interest.
The restricted interest is identified by a symbol that includes an abbreviation representing the issuer of the interest uniquely as among other interests of a same type and by an identifier of the type of the interest, There is a separator character between the abbreviation and the type. The symbol is of the form XXXXX.YYY_Z where XXXXX is an alphabetic string abbreviation of at least two characters, YYY is an alphabetic string identifier of a type, and Z is a sequential character. For example, Everlast Associates Limited Partnership may be an issuer of interests in a ninth fund in a series. Then the symbol for that interest could be EA.LP 9. For a private partnership, the type could be LP, while for a private company, the type could be PP. For a private company, the sequential character could designate the class. For example, TECHIE XT class C could have the symbol "TEC.PP C". The buy and sell orders are displayed only to online users who have demonstrated their compliance with regulatory or policy conditions to their being exposed to the orders. The symbols may be issued by a single market facilitator in order to provide a consistent set of globally unique symbols that would be recognized internationally.
In general, in another aspect, the invention features a method that includes receiving information related to the values of restricted interest in respective issuers, estimating values of the restricted interests based on the received information, and making the values accessible online to users. The estimated values could be, for example, fair market values determined by a valuation algorithm.
Implementations of the invention may include one or more of the following features. At least some of the information is received from the issuers. At least some of the information is received from the users. At least some of the information is received from public sources. At least some of the information is received from private sources,
The information includes data indicative of the reputations of the issuers. The infoπnation estimating is based on at least one of an historical record of generating superior returns versus comparable firms, noteworthy successful investments, and an assessment of institutional investor secondary market demand for the interests. The values are expressed relative to an asset value associated with the interest. The proposed value is expressed as a percentage of the net asset value of the interest.
In general, in another aspect, the invention features a method that includes maintaining digital data (in some implementations, fair market value estimates, or historical actual transfer prices, or current offering prices) representing valuations of previously issued restricted interests of respective issuers, and providing the digital data for presentation to users.
Implementations of the invention may include one or more of the following features. The digital data is maintained on a server. The valuations are expressed relative to asset values associated with the interests. The valuations are expressed as percentages of the net asset values of the interests. The digital data is provided in the form of a stream of digital data conveyed through a communication medium, displaying the digital data to a user, The digital data is displayed as a ticker. The ticker is displayed as a scrolling ticker or may be provided in response to an inquiry to a search engine. The digital data is displayed by a party other than the party that maintains the data. The digital data includes symbols representing issuers and numbers representing valuations. Each of the symbols includes an abbreviation representing the issuer of the interest uniquely as among other interests of a same type and includes an identifier of the type of the interest. The digital data also includes a separator character between each of the abbreviations and the types. Each of the symbols is of the form XXXXXNYY where XXXXX is an alphabetic string abbreviation of at least characters and YYY is an alphabetic string identifier of a type. The scrolling price ticker shows a fund symbol and a valuation or shows a company symbol and a valuation, e.g., a fair market valuation, A user can create a custom symbol for the purpose of entering non-public infoπnation about an interest for use in the value calculator.
In general, in another aspect, the invention features a method that includes maintaining infoπnation about progress of steps associated with a secondary transfer of a restricted
interest of an issuer, and enabling a user to review the progress electronically. In some implementations, the steps are standardized to permit a paper intensive process among multiple parties to be completely quickly and effectively.
Implementations may include one or more of the following features. Steps associated with the secondary transfer of a particular type of restricted interest are predefined, and information is maintained about progress based on the predefined steps. The predefined steps include steps to be perfonned by at least two different parties. The different parties include two of the following: a buyer, a seller, an issuer, a transfer agent, and an escrow agent. The steps include steps perfonned by at least two different parties. The two different parties include two of a buyer, a seller, an issuer, and an escrow agent. The method of claim in which enabling the user to review the progress electronically includes giving the user access to an online service that displays the progress. The steps of the progress are organized by the parties who are to perform the steps or by chronological stages, The progress is displayed in terms of the progress of each of at least two different parties in completing their respective steps. The user is enabled to view documents associated with at least some (or in some implementations all) of the steps. The steps are predefined at least partially by the issuer of the interest. Each party can view the steps completed by other parties. The concept of maintaining progress on the steps is not limited to a transfer of restricted interests but could also apply to other transactions, such as mortgage lending.
hi general, in another aspect, the invention features a method that includes receiving from a user of an online service a request for a valuation of an amount of a restricted interest that has been previously issued, and generating the valuation based in part on stored information about an issuer of the restricted interest, and providing the valuation online to the user.
Implementations of the invention may include one or more of the following features. The restricted interest includes a funded commitment and an unfunded commitment. The restricted interest includes an interest in a limited partnership, The restricted interest includes an interest in a private company. The valuation includes information about the value of swapping the interest for another restricted interest. The valuation is based in part on information received from the user about expected future performance
of the interest. The valuation is based upon a set of weighted factors. Among other techniques, some of the valuations are done using current data and some are done using separate funded and unfunded valuations. The user is an owner of the interest. The user is an agent acting on behalf of an owner of the interest. A request is received from a user for valuation of a portfolio of restricted interests, the valuation is generated based on valuations of each of the interests, and the portfolio valuation is provided online to the user.
hi general, in another aspect, the invention features a method that includes expressing an order to buy or sell a restricted interest that has been previously issued, in a digital format in which the identity of the interest is expressed as a predefined symbol, an amount of the interest is expressed in money (in some implementations as a dollar amount of a commitment to a fund, or a quantity of shares of a company in the case of equities, or a dollar amount of face amount of company's debt related securities, i.e., convertibles), and a price for the interest is expressed in relationship to an asset value of the interest.
Implementations of the invention may include one or more of the following features. The order is expressed in fields of an online form, e.g., an order ticket. The order expresses a funded aspect of the interest and an unfunded aspect of the interest.
In general, in another aspect, the invention features a method that includes receiving from an issuer of restricted interests that have previously been issued, policy information that defines the conditions under which the issuer will permit confidential infoπnation about the issuer or the restricted interests to be made available electronically to users, and preventing the users from gaining electronic access to the confidential infonnation except upon compliance with the conditions.
Implementations of the invention may include one or more of the following features. Preventing access includes requiring the user to register. The user is required to request permission to have access to the confidential information. The issuer is requested to approve access to the confidential infoπnation by the users based on infoπnation provided to the issuer. (Protecting an issuer's non-public information in the offering and transfer processes is important to issuers.)
In general, in another aspect, the invention features a method that includes predefining a set of documents to be made available to a user in connection with a transfer of a restricted interest that has been previously issued, the set of documents being predefined to satisfy applicable regulatory and policy requirements applicable to the transfer, and making the set of documents accessible to the user online in connection with the transfer.
Implementations of the invention may include one or more of the following features. The set is predefined in part by an issuer of the interest. The set includes a prior offering memorandum. The set includes a recent financial statement.
In general, in another aspect, the invention features a method that includes receiving from a user infoπnation concerning historical performance of a restricted interest that has been previously issued, and basing a valuation of interest in part on the historical performance information.
Implementations of the invention may include one or more of the following features. The historical performance information is confidential, The user is an owner of the restricted interest. The historical performance information comprises a sequence of return figures for a successive of periods of time.
In general, in another aspect, the invention features a method that includes receiving from a financial institution an online request to facilitate a transfer of a restiicted interest that has previously been issued, from a seller to a buyer, and serving the request by making an online market in restricted interests accessible to the seller and the buyer,
Implementations of the invention may include one or more of the following features. The seller is a customer of the financial institution.
In general, in another aspect, the invention features a method that includes receiving information about restricted interests that have previously been issued, the infoπnation being useful to buyers or sellers of the interests, and automatically generating research reports on the restricted interests based on the information.
In general, in another aspect, the invention features a method that includes displaying to an online user, information that describes a status of transfers of restricted interests with respect to steps to be completed in order to consummate orders for the transfers.
Implementations of the invention may include one or more of the following features. The information is organized by order. Orders related to a particular fund of restricted interests are shown together. The information is limited to funds of a single issuer. The infonnation is organized by transfer type.
The system can provide flexible offline and scalable online services to a wide range of users. Online implementations can be scaled to handle essentially 100% of the global transfer volume of restricted interests.
The invention may be implemented, for example, by generating web pages from data stored in a server database. Such a database could be of the kind described in the patent application cited above.
The techniques described above can be implemented in software or hardware or combinations of software and hardware using custom or commercial components. The communication among the parties that use the system can be through workstations, servers, handheld devices, or other devices, The communication may occur through the Internet or other publicly accessible network or through dialup lines or in other ways. User interaction may occur through browsers or through other kinds of interfaces.
Other advantages and features will become apparent from the following description and from the claims.
DESCRIPTION
Figure 1 is a block diagram.
Figures 2 through 55 are screen shots of web pages (certain possibly confidential infonnation has been blocked out),
Figures 56A and 56B and 57A and 57B are reports.
Figures 5SA and 58B are screen views,
As shown in figure 1, transfers of restncted interests can be made simpler, values of such interests in those transfers can be enhanced, and information can be disseminated more readily by a system 10 m which (a) issuers (or others) 12 can arrange for information 14 about particular restricted interests to be posted (and disseminated in a controlled way) on an online facility (e.g., a secure website) 16, (b research and other information 17 derived from issuers and other sources 19 about the interests can be posted on the online facility and used to generate automated reports for distribution in a variety of ways, (c) valuations of the interests 21 can be posted using a particular format in a continuous ticker on the online facility, (d) buyers 18 and sellers 20 can view posted information and make offers 22, 24 for transfers of restiicted interests on the online facility, (e) completion of transfers can be managed 26 and their progress reviewed on the online facility, (f) users can be registered 28 and their access to the online facility controlled, and (g) a feed of research, valuations, and other information can be provided to third parties for a fee 30, Other features and information related to restricted interests can also be provided on the online facility. For example, the users can have the values of restncted interests calculated 32, and a valuation algorithm 34 can be used to generate the valuations of restricted securities for a variety of purposes. A report generator 33 is capable of automatically generating research reports from available infonnation, The report generator can be used to generate reports on restricted interests and also for listed securities.
The functions of the system are designed to comply with all regulatory mles and issuer policies (with respect to non-public infoπnation), including the Securities and Exchange Commission Act of 1933, the National Association of Securities Dealers, state securities laws, IRS regulations 1,7704, and others.
The system described here anticipates the development of and is designed to provide a global private capital or securities market for distributing infoπnation about restricted interests and for transfening restiicted interests. The system includes all of the functionality needed to implement such a market including, among other things, standards for identifying issuers and restricted interests using symbols, methods for valuing such interests, methods for expressing such values, and methods for transferring such interests in compliance with the law.
The online facility can be associated with a database 40 (or other repository or storage) that contains the tables needed to store, maintain, and deliver infoπnation for performing the
functions of the online facility. The information could include a list of restiicted interests, lists of symbols for the restricted interests, valuations of the interests (current and historical), profiles and account information of registered users, transfer progress data, histories of transactions, research information and reports, and lists of compliance requirements for compliance with government regulations and policies of issuers. The infonnation could also include data required for generating real-time web pages to be served on the site.
The restricted interests handled by the system may include interests in equity and debt funds and securities representing equity and debt of a private company.
Users of the online facility can include buyers, sellers, investors who are not buying or selling, financial advisers, financial analysts, portfolio managers, financial institutions, lenders, and issuers, among others. In a typical implementation, the online facility could be a website controlled by a market facilitator 42 (such as New York Private Placement Exchange of Greenwich, Connecticut) and made available publicly, Users could access the site through the browsers and a network using workstations or portable devices, wired connections or wireless links. The users could include employees of law firms and dealers who could subscribe to the service provided by the website,
Some information and functions would be made available to any public user. Other infoπnation and functions would be available only to users who had registered and met certain standards (such as standards imposed by governmental regulators or issuers),
Trades could be restricted to users who had established accounts with the market facilitator, Available information and functions would also vary according to the user seeking access and possibly other factors. Some users may be referred to the site by entities who use the site and the facilitator as a way to outsource the transfer of restricted interests as a service to their customers.
As shown in figure 2, when a user first enters the website, he is given a chance to login as a shareholder 50 or as a staff member of the market facilitator 52, Invoking those links leads the user to a login screen for entering a name and a password. Other users (including unregistered members of the public) can enter the website with respect to either restiicted interests in the form of private partnerships 54 or restricted interests in the form of stock of private companies 56. The two forms of interest are handled separately because, although there are many similarities in the kinds of information and the kinds of functions that are
offered with respect to each of them, there are also differences, Other types of restricted interests could be handled separately also, and other combinations of interests could be set up.
In addition, the system can handle restricted interests in the form of portfolios of interests. A symbol may be assigned to the entire portfolio, for example, PORT.LP 53.
Invoking the enter button 54 for partnerships leads to the page shown in figure 3. The login button 58 then leads to a page shown m figure 4, in which a user who has previously registered can log into the site by entering his ID and password and selecting a start page, When he clicks the log-in button 60, he is shown his selected start page, for example, the page shown in figures 5 A and 5B.
For a user to be able to invoke the enter button 54 and therefore to access non-public portions of the website, he must register to become a member of the site and open an account, To register and open an account, he clicks the apply button 59 which leads to a display shown in figure 39. Clicking the continue button 53 on figure 39 leads to the forms shown in figures 49 and 50A and 50B, λvhich include fields in which a user enters information to establish himself as a qualified investor, register, and open an account. After the investor is registered, the market facilitator 42 manually reviews the information and then can approve the member and open the account. A fee can be charged for membership,
The main page shown in figures 5A and 5B provides general market infoπnation 60, a navigation bar of quick links 62, and two sections of current information.
The section called My Alerts 64 lists particular limited partnership interests 66 and shows the valuations 68 for the most recent transaction, the change 70 represented by each transaction, and current research information 72 about that interest.
The section called Featured Orders 74 features particular offers of restiicted interests identified by the sell order number 76, the name of the issuer and one of the interests of which it is the issuer 78 (in the figures, portions of the names and symbols of interests have been redacted for confidentiality reasons), the symbol 80, and the due date for bids S2, For each of the listed interests, buttons 84, 86, 88 enable three different member actions: obtain news and research information on the interest, view pending offers for the interest, and place order for the interest. Until the user has been approved by the issuer of the interest to
have access to the information that is available through buttons 84, 86, 88, the names of those buttons are shown in gray and cannot be invoked. If the user has been approved, the names are shown in black and the user can invoke them. A small green indicator 89 to the left of the three buttons for a given interest is displayed (and shown hypothetically in figure 5B) if the investor has been approved.
Approval to invoke the buttons for a particular interest must be given by or under the authority of the issuer of the interest. In the case of a limited partnership, for example, the general partner may have set rules and policies under which it will approve an investor to be able to invoke the buttons, The rules and policies could relate to the characteristics of the investor and to other factors. The general partner can provide the rules and policies to the market facilitator 42, which then applies them in order to give the investor permission. Or the general partner may give the market facilitator a list of information to be obtained from the investor and then passed to the general partner, who then makes the decision and communicates it back to the website. Or the market facilitator can obtain a list of standard infoπnation from the investor and pass it along to the general partner for approval.
Typically, the infoπnation passed to the general partner could simply be the infoπnation obtained from the user at the time he applied for an account.
The site uses the concept of permission under which the user must express an indication of interest in order to see non-public infonnation as a way to protect an the infoπnation of an issuer of a restricted interest (such as a general partner).
The issuer of the restricted interest, in advance, instincts the market facilitator how to approve or not approve each indication of interest and under what circumstances non- public infonnation can be released. For example, the issuer could indicate the characteristics of the buyers who may have permission, and might exclude, for example, municipalities.
Also, a transfer manager is designated for each transfer party -the seller, the buyer, and the issuer— as the person who can use a transfer password, to see what documents are required to be signed by each party and if each party has signed each document as indicated by a check next to the document name. Different names of documents and numbers of documents are assigned for each transfer,
The system also provides for the ability to designate a custom symbol for a restricted interest that enables a party to enter confidential data about a fund, for example, annual returns, such that only that party can access that symbol in the future and see his data. This enables the use of the calculators that generate return spread infoπnation and help the issuer or portfolio managers understand performance of their funds relative to others.
To get permission to invoke the buttons of figure 5B, the user can click on the name of the issuer 78, which leads to a window in which the user provides information needed to establish him as a qualified investor. Figure 10 is shown to the user when he invokes the name of the issuer 78. A dialog box 79 enables the user to provide a message to the issuer in connection with the request for permission.
After the user clicks the "get permission" button 81 on figure 10, he is shown the confirmation screen of figure 11.
When the user invokes the view offer button 86 of figure 5 A, the fund summary page of figures 6A and 6B is displayed. At the top of the page are five buttons 87 that enable navigation within the portion of the site that provides information about the particular interest that has been selected by the user. Each of the pages of that portion of the site includes the same five navigation buttons, (Each of those pages also includes two buttons 84 and 88 that have the same functions as the same numbered buttons on figure 5 A.) The fund summary button 93 always leads to the page of figures 6A and 6B.
The offering summary button 95 always leads to the page shown in figure 7. That page contains the details of the offered interest. In the case of a limited partnership, the details include the commitment amount 90 of the offered interest, the amount of the commitment that has not yet been drawn down or funded 92 and the amount of the commitment that has been funded 94, The net asset value 96 represents the proportion of the total commitment amount of the underlying portfolio that is associated with the interest that is being offered. For example, a commitment of $1 million may comprise a funded portion of 3800,000 and an unfunded portion of $200,000, the net asset value could be 3600,000 and the valuation could be 30% of the net asset value. The offering price is expressed as a percentage of the net asset value 98. The percentage may be determined in a valuation process described later.
The offering materials button 97 invokes the page shown in figure 8. The listed offering materials 99 have been selected to represent exactly the set of materials that have been determined to be required for presentation to a potential buyer to permit him, under relevant regulations and policies, to place an order. Thus, the exact list of offering materials that are presented depends on the type of interest being offered and in some cases on the identity and characteristics of the user. In the example shown, the offering materials for an interest in a particular limited partnership include a quarterly report 110, a private placement memorandum 112, and the partnership agreement 114. The list of required documents can be deteπnined by the market facilitator or another party based on a specific sell order ticket, on prior similar transfers, and on direct inquiry to the issuer of the interest. The documents do not necessarily include a new private placement memorandum (PPM). Rather, existing financial reports and memoranda can serve the purpose. Thus, because the cost of having to create a new PPM can be avoided in many cases, the restricted interests become more liquid. In addition, it becomes feasible for the market facilitator to profitably handle relatively small tiansfers, e.g. less than 31,000,000, Previously issued documents are supplemented by recent documents such as financial statements (for companies) or quarterly reports (for funds) so that the investor can evaluate the interest and the current information about the issuer.
The highlights button 101 leads to a page (not shown) that can include high-level or special information about the issuer or the interest, and the road show button 103 leads to a streaming video presentation by a representative of the issuer, for example, its general partner.
When the research button 86 is clicked, the user is presented with pages (not shown) of detailed available research infoπnation about the issuer or the interest. The research information can be derived from a variety of sources and presented in a variety of ways. Independent research providers could be used to generate research information for restiicted interests. Additional infoπnation about the generation of research reports is set- forth later.
When the place order button 88 is invoked, the page shown on figure 9 is presented, Many of the items of information required by the form have been pre-filled based on the interest identified in the page (figure 8) from which the user arrived at figure 9. Box 116 is completed with the user's account number. The user can change any of the pre-filled
infonnation, and can also change the type of order 118 to be a market order, a limit order, a dollar amount order, or an order at a specified percentage of net asset value. The user can also set the period 120 during which the order remains in effect and can enter a specific message in dialog box 122.
In addition to the other buttons described above, the page shown on figures 5A and 5B includes four buttons 120, 122, 124, and 126, called quick links.
The order ticket button 120 leads to the general order ticket page shown in figures 12A and 12B, This is similar to the order ticket of figure 9 but has not been pre-filled except with the account number, On this page, the user can enter an order having any desired features for consideration. The quick links also appear on the order ticket page. The order ticket can be a buy order ticket for a user of the kind shown in figure 9 or can be a sell order ticket that provides information about an interest that is to be offered for sale. When either a buy order ticket or a sell order ticket is created by a user, the user is given a chance to review the order. Once the user has confirmed the terms of the order, it is added to the list of offers, and may be posted on the website along with other offers.
When the order status button 124 is clicked, the page shown in figure 13 is presented. The upper part of the page 125 lists all interests that are subject to a buy order ticket or a sell order ticket by that user for an issuer and an interest to be bought or sold. The infoπnation includes, for each line, the member action, the seller order number, the interest symbol, the name of the issuer, the commitment amount on the bid side and the bid price (in teπns of a percentage of net asset value) or the commitment amount on the offer side and the offer price (as a percentage), the status of the order, the order date, the settlement date, and the steps completed,
At the bottom of that section are buttons that can be invoked for each of the interests when the radio button to the left of that interest is checked (and assuming that the user has been granted permission). Button 130 enables the user to buy additional funds from the portfolio. Button 132 enables the user to cancel the order, and button 134 enables the user to switch to the Limited Partnership Transfer Management System, described below.
In the lower part of the page 127 shown in figure 13, the user is shown interests as to which he has previously expressed an interest. An interest is included in this list after the user has indicated an interest on the order book page described below. If the user wishes to
withdraw his indication of interest, he can invoke button 136. An indication of interest is not a buy order ticket.
When all private funds button 126 (see, for example, figure 11 and other figures) is clicked, the all private funds page shown in figure 14 appears. The order book page shows all restricted issuers that are listed on the website. The list can be navigated by previous and next buttons at the bottom of the section, or by alphabetic indicators, or by a search. Each of the items listed shows the name, fund symbol, fund type (e.g., LBO means leveraged buyout), bid indication as a percentage, offer indication, last price, and three member actions that can be invoked by buttons 130, 132, 134. Button 130 invokes research that may be available for the interest or issuer. The news button 132 provides news about the interest or issuer, The place indication button 134 enables the user to place an indication of interest in the item, If the words on a button 130 or 134 are grayed there is no research or news available.
When the place indication button is clicked, the user is presented with an Indication of Interest Ticket that enables him to indicate an interest in buying or selling an amount that he specifies for an issue that he identifies. Fie can also enter comments in a dialog box. The Ticket is pre-filled, but the user can ovenide the pre-filled text as desired to indicate any kind of interest. The indication of interest feature enables sellers to be put in a queue to sell interests. Regulations may require a 2% limit on the amount of transfers that may be effected each year for a fund. Thus, it is useful for a prospective seller of a restricted interest to post an indication of interest as early as possible, On the buyer side, the indication of interest alerts the market facilitator of a wish by the user to buy a certain interest. Because the number of buyers to whom an offer can be made may be limited by the issuer, it is useful for the buyers to be able to indicate their interests in advance.
When the order book button 124 is invoiced, the featured orders page shown in figure 15 is presented. The featured orders page shows, for each interest available for sale, the sell order number, the fund name, the symbol, the commitment amount and best bid price or the commitment amount and the best offer price, the bid due date, the last price, and the net change represented by the last price, Each item provides the same three buttons (research, view offer, place order) as appeared in figure 5 (only the research button is shown, the other two buttons are obscured).
Navigation buttons 150, 152, 154, 126, and 158 at the tops of figures 14, 15, and other figures described below, enable navigation among pages for featured orders (figure 15), firm orders (figure 16), pipeline orders (figure 17), all private funds (figure 14), and FMV estimate (figure 51).
The firm orders page is shown in figure 16. For each firm sell order number (e.g., Order 54), all of the items included in the order are listed line by line.
The pipeline orders page is shown m figure 17. Pipeline orders are pending sell orders that have not been matched yet. Buyers are able to express an indication of interest in a pipeline order, However, for regulatory reasons, an issuer may need to limit the number of buyers to whom an interest is offered at a given time. The system enables an offer to not be posted and for buyers to be invited by phone call or email to be permitted to view the offering.
The system also assists the market facilitator to act as a qualified matching service (QMS) under IRS regulation 1.7704. Acting as a QMS enables the completion of transfers up to 10% of outstanding interests of a fund in a taxable year, rather than a standard 2%, if the issuer designates the transferred interests as falling withm the safe harbor of the IRS re ^geu1- lation,
Invoking the FMV estimate button 158 leads to the page shown in figure 51, which is like figure 18 but does not include the data under the heading FMV Estimate. The user can enter the name or symbol of an interest in box 161, and by clicking on the FMV Estimate button 159 be provided with the page shown in figure 18 that includes the bid and offer- indications and last price.
A section of the website in which the user can manage his account is called My Accounts and can be invoked from the top level menu on the home page and other pages.
When the My Accounts menu button is clicked, the transaction history page of figure 19 appears. Although none appear in the example shown, the page would list the transactions of the user that are pending or completed,
The user's account could also be linked to custodial accounts so that the user of such custodial accounts can see an account statement showing balances. Of example, the user could have a checking account that provides a monthly statement showing cash balances and also showing balances of restricted interests. As interests are bought and sold, the
monthly statements would reflect the transactions and the resulting balances, The system includes the provision of a pricing service to enable users to transfer their portfolios of restricted interests to other parties, such as a custodian bank with the valuations of the interests being determined by the valuations made using the algorithms described here. In other words, because accepted current valuations can be generated and updated frequently for restricted interests, owners of those interests can transfer them, pledge them, and deal with them in ways that have not before been possible,
The pages shown in figures 20, 21, and 22 can be used to change the user's password and log-in ID and to update the member's profile.
The alerts section 64 of figure 5 A lists information about interests as to which the user has indicated that he wishes to be kept updated on news. The user chooses which interests for which he is to be alerted on the page shown in figure 23.
The website provides calculators for a user to determine the values of engaging in certain proposed transactions in restricted interests, thus enabling the user to make decisions about the proposed transactions. The calculator functions can be invoked from the main menu item called "calculators." The functions of the calculator are performed by underlying algorithms discussed later. The algorithms can be invoked by a user for specific calculations and are also used to generate valuations for all restiicted interests or for specific ones that are to be displayed to the user on various pages of the website.
When the calculators menu item is invoked, the explanatory pages shown in figures 24A and 24B are displayed. As shown, among the calculator functions that can be invoked are a quick calculator, a price calculator, and a swap calculator. Custom inputs to the calculator functions can also be entered, which takes advantage of the fact that much of the information about a fund is not public and only known to the fund or its investors.
The quick calculator estimates the secondary transfer price and cash proceeds for a partially- funded or fully- funded restricted interest. The price calculator estimates the secondary transfer price and cash proceeds for a partially-funded (or fully- funded) restricted interest by separately evaluating the funded and unfunded commitment amounts. The swap calculator estimates the benefits of swapping one restricted interest for another.
The information required by the quick price calculator is entered on the page shown in figure 25 and includes the fund name, the symbol, whether the interest is to be bought or sold, the commitment amount, the unfunded commitment amount, the funded commitment amount, the net asset value, and the fully funded price. When the information has been entered, the go button 200 is clicked and the results section 202 then appears, The results section shows the funded ratio (the ratio of the funded commitment amount and the commitment amount), the quick price (which is the value of the funded commitment amount expressed as a percentage, calculated by multiplying the fully funded price times the funded ratio), the gross cash proceeds (which is the net asset value times the quick pnce), and the value, which is the sum of the gross cash proceeds plus the unfunded commitment.
The information required by the price LP calculator appears in figure 26. Because the calculation is based in part on estimates of values over time, the page requires the user to enter a start date 204. The fund name or symbol, whether the transaction is a buy or sell transaction and the commitment amount of the interest are entered next. The remainder of the form takes account of the funded commitment and the unfunded commitinent in separate sections.'
In the funded commitment section, the user can enter the funded amount of the interest, the stated net asset value of the interest, and estimates of the future net asset value on a certain date and the annual internal rate of return percentage. The calculator uses the values, interest rate, and dates to do a conventional present value calculation to obtain the estimated present net asset value, The calculator multiplies the price entered by the user times the estimated present value to get the cash proceeds (in the case of a buy order, the price to be paid) for the funded portion of the interest.
In the unfunded commitment section 206, the user enters the unfunded commitment amount and the estimated future value at a certain date with an estimated internal rate of return (IRR). The calculator then generates the estimated present net asset value using conventional discounting computations. Using a price percentage entered by the user and the estimated present value, the calculator also determines the cash value of the unfunded commitment. In the example, the cash value is less than the unfunded commitment of $250,000, so the purchase price must be con'ected downward by a cash adjustment of $184,629,
In the results section 208, the website shows the gross cash proceeds of $124,839 (in this case the cash purchase price of the interest), the unfunded commitment, and the total of the two, representing the value of the interest. The gross cash proceeds is the cash proceeds for the funded commitment minus the cash adjustment attributed to the unfunded commitment, The price is the percentage (8.9171% in the example) of the stated net asset value represented by the gross cash proceeds.
Figure 27 shows the page that is presented when the Swap LP Calculator is invoked. The question to be answered by the analysis is the economic impact of a possible decision to swap a first restiicted interest with a second restricted interest (represented by the two columns 210, 212). The sections of the form titled funded commitment and unfunded commitment have text boxes that are similar to the ones shown on figure 26. The information provided at the top in the section titled fund information includes a type, a sector, and a vintage year, which are entered by the user for reference purposes but do not affect the computation. At the bottom, the user enters the period over which the calculation should be done.
The results are provided on the page shown in figure 28. The entries in the first two columns are similar to the ones shown in figure 26. The third column indicates the net result of a swap and the fourth column indicates the present value of the first restiicted interest for comparison with the net swap results.
The section titled historical analysis is empty in this example, but would contain infoπnation about the historical return spread, A spread is the difference between a fund's return and usually a benchmark fund's return. Say Bain Capital 7 generated a 50% gross IRR in 2002 and the LBO index (of all LBO funds in the United States) generated a 28% gross IRR. The spread would be -"-22% for Bain to LBO index. The spread information is useful, for example, when years of return data are made available to a portfolio manager who wants to actively manage his private equity portfolios, For example, if the time period start date is 12/31/1990 and the end date is 12/31/2002, and if the fund to be sold is Baker Telecom II and the fund to be bought is Bain Capital 7, the result shown on figure 28 would be a graph and return data for each year showing, say, that Baker's average annual IRR was 90% while Bain's was 25% for a historical spread of 65% per year. Flowever, upon further analysis, Bain averaged, say, 25% for the period 2000-2002 while Baker lost
30% on average for a spread of -55% (Bain vs Baker) (25% less minus 30% or minus 55%).
A portfolio manager may conclude that the market period 2000-2002 will be similar to what he projects for 2002-2005, and therefore may conclude that he should now sell his holdings in Baker and buy more of Bain. The swap calculator will generate a report showing detail of the above and be kept by the portfolio manager so that in the future if his swap did not work out, he can demonstrate his logical basis for rebalancing his portfolio in this way, The calculator report could also be used by a portfolio manager, say, to present to his investment committee the reasoning for making a swap, The committee's decision may be largely a function of the trend that the report illustrates, in this hypothetical case, that Baker's Telecom venture capital funds are falling out of favor in the market and that LBO funds like Bam are coming more into favor, so a pension fund, for example, should seek to own more Bain LBO funds.
Historical return data is typically difficult to obtain, non-public infoπnation, But large pension funds, for example, often store the return data internally, for example, on Baker and Bain m the hypothetical case. Yet they do not have the road map that the s\\ ap calculator software provides. The swap calculator enables their raw return data to be tiansfonned into a useful portfolio management tool based on their own return data inputs into our software. Thus, the system enables the marketplace for restricted securities to use non-public infoπnation that they ma}' possess for decision making regarding transfers of restricted securities,
The infonnation, once loaded, may be used by the market facilitator or the investor in performing tier ranking for a fund, The analysis made available by the swap calculator to users should enable more active management and trading of restricted interests.
The website and system described in this specification, when used, for example, by banks, brokerages, and law firms (representing, e.g., general partners, companies, estates) through their employees at workstations, enables them to advise their clients and customers regarding restiicted interests and to facilitate transfers through the market facilitator.
When the custom inputs menu item 220 is invoked, the page shown in figure 29 is presented, The page enables a user to enter information known to him about the actual returns for a particular restricted interest. For example, if the user is a limited partner in a
venture and knows confidential information distributed by the partnership about the annual returns, he may enter it for use by the calculator in making estimates for purposes of valuations of interests or of swaps.
The user can set the period for historical returns to be entered and the frequency of the available information (e.g., annually). By clicking the go button 222 he is taken to the page shown in figure 30 on which he can enter the name of the fund and its symbol and the returns for the periods indicated on the prior page.
When the user invokes the research and news menu item 230 (figure 5 A) of the website, he is taken to the page shown in figures 3 IA and 3 IB. The research section 232 of figure 3 IA identifies research that is available with respect to a particular issuer. The user can identify the issuers or other topics for which he is interested in research in the text box 234 above the research section.
The sections of the page provide links to items of research, news, and news headlines as shown.
The pages that have been described above allow a buyer and a seller to enter orders for restiicted interests. The negotiation of an agreement to buy, sell, or swap a particular restricted interest may be completed in a variety of ways. An initial concern in the transaction is setting a transfer value in a market in which it is difficult for anyone other than the issuer to have information sufficient to establish a fair market value. A good solution is to express the value as a percentage of the issuer's (e.g., the general partner's) stated net asset value, without knowing what exactly is the net asset value and without having access to the non-public information about the portfolio. Based on various factors (such as the reputation of the general partner or the vintage of the fund) it can be possible to express value as a percentage of the net asset value even without knowing the net asset value, Thus, the ti-ansfer price can be understood and evaluated when the value is expressed as such a percentage. The actual percentage at which the deal is struck may be between bid and ask percentages, or could be the exact percentage previously determined in a valuation process.
Teπns other than price may also be important to one or the other of the parties to the transfer, Proposals for the other terms can be expressed in dialog box 122 (figure 9). For
example, a seller could ask that only half of his restiicted interest in a limited partnership be sold.
The actual pricing and tenns of private secondary transfer may be negotiated by the market facilitator or another party. The market facilitator may observe the postings of buy and sell tickets on the website and undertake to find matching sellers or buyers and then help to negotiate the deals. Alternatively it may be possible to arrange for the deal to be struck automatically or electronically, or for a broker or other party to be involved in aπanging the price and other terms for the transaction.
The market facilitator could be construed as representing the seller if he is working from a confirmed sell order ticket or for the buyer if he is working from a confirmed buy order ticket.
Once the market facilitator is able to match a buyer's bid against a seller's ask value, the two parties and the issuer are notified using a transfer confirmation letter that identifies the interest, the price, and a settlement date. A standard settlement would be two weeks hence.
Prior to settlement, the market facilitator arranges for approval of the buyer by the issuer, signature of the appropriate issuer documents by the buyer and the seller, and the setting up of an escrow arrangement. The escrow arrangement permits a simultaneous settlement by assuring that all documents have been completed and signed and cleared funds are in the escrow account prior to settlement.
Once a deal for purchase and sale of a restricted security has been stnick, the steps involved in the completing the transfer can be monitored using the LP Transfer Management System page shown in figures 32A and 32B. This page is invoked when, for example, the view LP transfer management button on figure 13 is clicked. The website provides a mechanism for tracking the steps and degree of completion of a transfer of an interest between a buyer and a seller. In the case of a partnership interest, the transfer typically involves the seller, the buyer, the issuer (e.g., the general partner), and an escrow agent, Each of the parties typically must go through a sequence of steps to complete the transfer. The number and nature of the steps will vary with the nature of the restiicted interest being transferred. The exact set of steps required for each party for a particular interest can be defined in advance and stored for use in operating the Transfer Management System.
Those steps are displayed in the box 240 on figures 32A and 32B for an example transfer of a particular interest. The order number, issuer name, symbol, and commitment amount are shown at the top of the page, as well as the settlement date, if set, On the top right of the page, each of the parties is identified with an indication 242 of the number of required steps that have been completed by that party. In the steps box, the steps are organized according to sequence into pre-offering steps 244, pre-purchase steps, and pre-closing steps. Within each category, the steps are organized by the party performing the steps, For example, the fifth step 246 to be performed by the seller during the pre-offering phase is to be presented with and review the original private placement memorandum. Some of the transaction steps show a view button 24S, which enables viewing of the underlying document online, Wlαen a step has been completed, the party who is required to take that step is able to enter a mark in the associated box 166.
The system also provides standard documents such as the buy/sell order tickets, transfer documents, and an escrow agreement, and documents to be signed by seller, buyer, and issuer to obtain a price match, to get the issuer's approval of the buyer, and to arrange a simultaneous settlement and closing,
The simultaneous settlement provided in the escrow agreement uses a commercial bank that does not charge either party, in exchange for meeting the parties for future business, The simultaneous settlement, where no documents are released to other party or the issuer until ALL docs are completed properly and cleared funds are received is the highest settlement standard.
The system uses standard documents and processes for each step of the transfer process, which changes the traditional approach in which highly priced investment bankers or legal counsel customize each document for each transaction. The use of standardized documents and process steps reduces the cost and time for a transfer, makes the transfer more reliable, and improves the confidence level of buyers and sellers in the process, thus improving the liquidity of the market. This now enables small restricted securities tiansfers to occur (say, under 35 million commitment which is a large part of the market for individual investors and many smaller institutional investors) because the economics of a transfer now can make sense for each party. No upfront retainer is required which enables the market facilitator to charge on a transfer fee only upon a successful transfer.
The issuer's documents and transfer instructions are kept on file by the market facilitator so future sellers and buyers can quickly execute transfers,
The market facilitator will inventory many issuer's non-public information and transfer instructions and documents.
Thus, the system can serve a market need and role for a central global exchange for restncted interests, In addition the system and website and use of the system and website may be licensed to financial institutions, law firms, and others and can be private-labeled with the name and brand of the using organization. The operator of the system and site then provides the functionality, documents, and processes that are offered through the privately branded website to customers and representatives of the organization.
Additional pages available on the website contain information and guidance on the methods and benefits of using the site and are shown in figures 33, 34A, 34B, 35A through 35E, 36, 37, 38A, 3SB, 39, 40, 41, 42, 43, 44, 45, 46A, 46B, 47 A, 47B, 48A, and 48B.
The website may also include a continuous ticker that moves from left to right across the screen and includes indications of valuations (e.g., current valuations) of respective restiicted interests. The ticker could either indicate the most recent individual transactions at specified prices or could indicate estimated valuations not directly associated with particular transactions. In any case, the ticker includes a stream of items 250, each of which includes a symbol 252 and a number 254. The symbol identifies the restricted interest uniquely and the number represents a value stated as a decimal proportion of the net asset value of the interest as represented by the assets on the books of the issuer (e.g., .30 means 30% of the net asset value), The number is shown in bold and is slightly lower than the symbol. The symbol can be selected by the market facilitator or by the issuer, provided that each symbol is unique.
The symbol is expressed as a string of characters followed by a decimal separation character followed by a second string. The first string identifies the interest in letters that may abbreviate the full name. The second string identifies the type of interest, for example, LP means limited partnership.
For private partnerships, the ticker values could be fair market value estimates of the market facilitator determined by a valuation algorithm based on the market facilitator's secondary market demand and supply.
For private company interests, the prices are fair market estimates that represent the lowest value among several different approaches: (a) the valuation for the company's most recent capital raising transaction, (b) the intrinsic value of the company based on comparable valuations, or (c) values implied by recent acquisition prices. In the case of intrinsic value, for example, if the valuation metric for banks is price to book value, the average ratio is 3.4x, and a particular bank is an "average" bank, the estimate would be at 3.4 times the book value of the bank. The valuation could then be adjusted for positive or negative factors associated with the particular bank.
A private company often has several classes of securities with different values (prices). The ticker symbol for a private company reflects the values of the different interests. For example, NYPPE. PP-D would represent NYPPE's D class of stock, Using the lowest of the values of different valuation techniques is desirable for investors who want a conservative valuation service for their portfolio investments.
By providing a central, well-respected approach to valuation, and a publicly available website for conveying the information (subject to password protection for non-public information), a market facilitator can become an industry standard for valuations and for establishing commonly used symbols for restiicted interests. In this way, the market facilitator may operate as an on-line market for trading of restricted interests much as existing stock markets operate.
A common activity in securities businesses is the generation and delivery of reports about issuers of securities and about the securities themselves. Traditionally the research has been generated manually by analysis of a wide range of publicly available information sources. Custom reports are then generated and circulated to securities brokers and dealers and to customers. Research about issuers of securities (including, but not limited to restricted interests) can be generated quickly and essentially automatically from available sources, especially from the financial statements of the issuer. By generating the reports automatically, the bias of securities analysts and their employers do not form part of the report. The rapid delivery of the research improves the liquidity and fairness of the marketplace. Key features of the report generator include the following:
The research reports are generated automatically by software that searches the financial reports for specific types of information and writes sentences about them automatically.
The text is written automatically using a series of if/then triggers. For instance, the program analyses the electronic versions of the available reports, such as an on-line version of a Form 10Q report, to identify the sales during a recent quarter, compares the sales with the same quarter in the previous year, and writes that the sales were up or down versus that quarter, The program also uses thresholds to trigger the insertion of adjectives ("up sharply" or "up slightly", or "practically unchanged") to describe different levels of revenue increases, for instance. The report generator also can, for example, compare year-to-date (YTD) sales with a previous year's YTD sales, if available. The program locates whatever data is available (because different companies report with different levels of detail), and analyzes that detail,
Among the items that may be analyzed are accounts receivable days, accounts payable days, gross margin, and inventory turns. The program may also compare the figures to other companies in the same sector. If a company's figures are substantially different from the average or median of the comparable companies, the program writes an English language sentence, which is a template based on the condition. Numbers, product line names, quarters, and certain descriptive adjectives are inserted as appropriate. Certain kinds of events may be bolded (e.g., "The Company had a negative gross margin in 4Q02.")
The program also can reconstruct earnings by subtracting out extraordinary items or computing earnings assuming a normal tax rate (as many companies get tax rebates, etc.). The program also makes other computations and generates an appropriate English sentence if the situation waπants (for example, for low inventory turnover, high bum rate, low cash, aging payables, aging receivables, low stock market volume, low P/E ratio, or low P/Sales ratio).
Reports are generated automatically by software and can have manual modifications, A manual review is useful to make sure the data and logic are correct. A first report can be written in 3 minutes, Future reports can take as little time as 10 seconds (if not much complex input) or up to 3 minutes.
The report is based, for example, on news or data available on the Internet or on financial statements provided by the issuer, Because the reports can be generated within a few
minutes, automatically, it is possible to generate reports rapidly in response to specific requests of users. Once a first report for a given issuer has been generated, subsequent reports for the issuer can be generated in seconds,
As news or data changes throughout a trading day and is identified on the Internet by the software, a user (for example, a trader or an active portfolio manager) can request a fresh research report every few seconds if he wishes, The reports contain information that is independent of any policies or positions of any company or institution that generates them or uses them. That independence can be certified to readers. The source of the report can develop a reputation for objectivity in the certified reports.
The research report generator for private companies determines an intrinsic value of a security by comparing the target company to other companies in the same sector and calculating, for example, average, high, and low price-to-eamings multiples. The comparison with other companies in the sector leads to fair valuations. The report generator also automatically determines an appropriate metric to be used in valuation. Thus, in one sector the metric may be price-to-eamings, while in another it may be price-to-book value.
The automatic report generator is helpful for investors who do not want to get overly optimistic projections by a research department, but rather want a current snapshot of a company's historical performance and the market's current valuation multiples for comparable companies to determine the right price for the security,
The reports generated by the automated report generator could be distributed in a variety of ways. The reports could be on paper, sent by email, or posted on a website. The reports could be distributed free or a charge per report could be made. Or a monthly license fee could be charged for an unlimited number of reports.
Because the reports will be easily available, brokerage research analysts would be able to cover much larger numbers of companies instead of just the normal 20. The automatically generated reports would cover the core information and the analysts could add other- information if desired.
The automated report writer could be configured to write different sentences in different styles for each of many different customers, for example, brokerage firms, and the brokerage firms can put their own names on the research report. An additional licensing fee
may be charged for that privilege. The revenue model under which the report is generated could be altered to suit the firm's intemal view of the appropriate revenue model.
The report generator takes information from a database that is populated with information about the company in question. For example, one of the tables holds income statement data-sales, cost of goods sold, research and development expense, sales and marketing expense, etc- for the various line items that appear on financial statements. These are drawn automatically from electronic versions of available financial reports. Another table stores balance sheet data, and a third table includes basic company data such as the company's address, its officers, and its line of business.
The database can be populated in a number of ways, For publicly- traded companies and funds, and private companies and funds the program can obtain in real-time information from the Internet. Possible sources include (a) SEC filings, (b) news, (b) subscriptions to services, (c) other third party service providers, (d) a commercial database, (e) manual input using input forms that include an ability for modification to aspects of the program, say, to a revenue projection model, as entered, for example, by a research analyst, or (f) a combination of the above,
When the user of the research report writer selects a company or a fund, the program accesses the database and reads the infonnation about the company or fund, It then analyzes trends in various fields of the data such as an income statement for a company over time (Have sales increased? Has the gross margin improved?) and the balance sheet, which is analyzed for certain items such as accounts receivable days and accounts payable days.
The report generator software automatically prepares a descriptive narrative without human input using English language text, including use of adverbs as appropriate. If financial data has changed drastically or something is out of normal bounds (e.g., over 90 days accounts payable) then the program automatically generates a sentence to report that fact,
For instance, suppose XYZ company is chosen by the user. Suppose that, in the most recent quarter for XYZ, sales were $5,3 million, but in the same quarter a year ago, sales were 34.9 million. The program would compare these two figures, and write a sentence along the lines of: "Sales in the third quarter of 2003 were 35.3 million, an increase of 8.2% versus
the third quarter of 2002," If sales were 315.3, the program would write "a sharp increase of instead of merely "an increase",
The program also compares data for the selected issuer to other similar or comparable companies, A text description field can be used to find similar companies. SIC Codes could be used especially for older industries. The program retrieves data about similar companies, and compares their sales growth rates, gross margins, profit margins, R&D expenditures as a % of sales, and so on. The program also stores historical stock prices, and it compares stock performance of the company in question with other publicly traded companies. For private companies, the program computes implied valuations based on comparable public companies.
The English sentences are generated by a series of if/then statements. Certain if/then statements add a single adverb, other if/then statements determine if there's enough data to work with (for instance, if the report was looking at a retailer, the program probably wouldn't compute R&D ratios since retailers don't spend anything on R&D typically),
Examples of reports are shown in figures 56A and B (listed company-stock report), and figures 57A and 57B (listed company— credit report)..
The data required to maintain and operate the online facility 16 is stored in one or more tables of one or more databases 40. The data can be organized in a wide variety of ways and include a wide variety of data elements. The schemas of databases used in the system are set forth in Appendices A, B, C, and D.
The data can include information about restricted interests in existence in the marketplace. These would include, but need not be limited to, restricted interests that are subject to pending buy order tickets or sell order tickets, restiicted interests that are subject to indications of interest, restricted interests that are included with the cooperation of the issuers of those interests, and other restiicted interests that are included without the cooperation of the issuers,
With respect to each restiicted interest, the database may include the name of the issuer, the date of issuance of the interest, the type of interest, the class or series of the interest, and a link to valuation information about the interest.
The valuation infonnation for an interest may include a cuπent estimated valuation, historical information about prior valuations of the interest, an identification of an algorithm that was used in making the valuation, data that underlies the valuation, and an identification of other related valuations.
The database schemas can be used to recreate the database tables, table relationships, views of the data, stored procedures and triggers that maintain the relational integrity of the data of the system for the Microsoft SQL Server 2000 running on a Dell workstation having dual processors and running Windows 2000 Advanced Server. The following includes more backg6rAound information on the schemas:
The database is logically and physically organized into two main types of restricted interests trading and restiicted interests trade processing areas: secondary trading of private funds (PT); and secondary trading of private companies (PC). Each of the functionality areas are logically and physically organized into 3 main areas of functionality: login/authentication; account related information including positions and holdings; and tradin *g& and transaction related information.
All of the above functionality is contained in the two main databases for each type of restricted interest. For example, PT_Accounts and PC-Accounts are the databases where all client account infoπnation is maintained for applicants and members with access to functionality to trade private funds or private companies, respectively. A client can have multiple accounts. Account information also includes the following data: the areas and functionality within the site that the user has access to; the infoimation that the user can see in these areas; the areas where confidential offering information is housed and whether the issuer has peπnitted the user to see this infoimation; customized messages targeted to all client accounts or specific messages targeted to specific client accounts; client contact infoπnation (phone, work, address, fax etc.); client personal and confidential information (ss#, user name, password).
PT-GEORGE and PC-GEORGE are the databases where all trading and trade processing infoimation is maintained for private funds and private securities respectively, The main data areas housed in this database include: sell orders (featured, firm orders and pipeline orders); buy orders associated with each sell order; indications of interest (to buy or sell funds or securities that are cuπently not being offered); fund Infoimation including details for the fund including: NYPPE symbol, the main holdings, issuer infoimation, fair market
value information, bid, offer, trade price, last price, news, news headlines, fund type. Users can also enter and store historical return information that can be used by the calculator functions on the web site; trade processing status notebook which keeps track of the number of steps completed to date in for transfer process; positions by client account; emails (formats and definitions) to be sent upon receipt of orders or indications; and trade which is the match of a buy and sell order.
The calculators described elsewhere retrieve and use historical returns entered by users for the charts. All other information used in the calculators is typed in manually by the user. Results are not stored in the database.
Fair market value is tied to the tier of the fund and is stored in a table called fund returns.
Research and news are also included in fund infoimation and are stored in tables called fund news and fund news headlines.
The valuation algorithm estimates a real-time fair market value of restricted interests in a secondary transfer based on factors that include (1) an assessment of cuπent buyer demand for a fund based on lαiown buy lists of buyers of restricted interests, (2) market knowledge of actual historic transfer prices for specific interests, (3) assessment of a fund's most recent quarterly return performance versus comparable interests in a same or similar sector (a sector could be, for example, early stage biotechnology funds), and (4) a profile of the issuer of the interest.
The profile of the issuer could include (a) its vintage year (e.g., 1999 and 2000 vintage funds may be less attractive because fund investments were likely made at above market company valuations), (b) its geographic location (e.g., South America funds may be less attractive than US funds), (c) its unfunded commitment as a percentage of the total commitment (the larger the unfunded percentage the lower the demand), (d) its sector (e.g., telecom may be less attractive at a particular time), and (e) the size of an offering (less than 31 million commitment amounts may be considered odd lots have less buyer demand),
The factors of the algorithm maybe combined in the following way to estimate a fair market value of a fully- funded restricted interest on the secondary market:
Step 1: DETERMINE FUND'S TYPE. The transfer agent (e.g., the market facilitator) determines the type of fund by examining the fund prospectus or a database of private fund
data: the categories are those where the ti-ansfer agent has fair market value benchmarks categorized by the tier rank of the fund. The types may include leveraged buyout (LBO), venture capital, private debt, mezzanine, real estate, and oil & gas.
Step 2A: DETERMINE MARKET'S NET DEMAND FOR FUND. The ti-ansfer agent assesses the secondaiy market's (a) total buy demand and weighted average bid price for the fund and (b) total sell supply and weighted average offer price for the fund, the difference of which is the market's net demand and price for the fund.
For example, an unranked LBO fund is assessed by the transfer agent as having 31 billion of current buy demand (expressed in dollar commitment amount) at a weighted average bid price of 90% of NAV and 320 million in cuπent sell supply at a weighted average price of 100% of NAV, for net market demand of S980 million at a weighted average price of 90.196% ofNAV (i.e. [90% x ($1,000,000,000/31,020,000,000)] less [100% x (320,000,000/$ 1 ,020,000,000]).
Step 2B: RANK IN TIER
If the net market demand is greater than 3100 million, the fund is ranked based on the weighted average price. In the above example, if tier 1 LBO funds are cuπently in a range of 90~% of NAV and the weighted average price of the fund being analyzed is 90.196%, the LBO fund would be categorized as a tier 1 LBO fund, No further scoring of this fund is required, The premise is that the greatest factor in accurately determining the likely price at which a fund's interest will transfer is the assessment of the secondary market's net demand and weighted average price for the fund, provided that a minimum critical mass of demand and supply is assessed.
Thus, the tier ranking is tier I and the weighting of that rank is 100%. If net market demand is greater than 3100 million then, as explained, no further analysis is done in the algorithm.
If the net market demand is less than 3100 million, then the other steps explained below are applied and the weighting of the tier ranking in this step 2B would be 30%. For purposes of illustrating how the steps below are considered, we will assume the weighting for step 2B is 30%, The score of 1 for step 2B then must be multiplied by the weighting of 30% for a score in this step of 0.3.
Note: The tier rank was 1 because the weighted average price was 90.196% of NAV, which is, in this example, categorized in the tier 1 LBO range of 90% of NAV or greater. A tier 2 LBO fund range could be one in which the weighted average price is 80% to less than 90% of NAV. A tier 3 LBO fund range would be, in this example, 70% to less than 80% of NAV, and so forth. The actual percentages could be different for different kinds of interests and for other reasons.
Step 3: ASSESS HISTORICAL TRANSFER PRICES OF THE FUND
The transfer agent assesses the fund's most recent transfers based on (a) net price to seller, (b) dollar amount, and (c) buyer and seller profile,
For example, if an unranked LBO fund has had one transfer in each of the prior 12 months (for a total of twelve transfers) and in each case (a) the price was 50% of NAV, (b) the dollar amount was $1,000,000 in teπns of commitment amount, (c) the buyer was a secondary pnvate equity fund ( a professional buyer), and (d) the seller was an individual investor that was delinquent in its capital call, then the transfer agent's weightings of each non-price field could, in one example, be:
Dollar Amount: $1,000,000 Rank: 4% (As $1,000,000 is considered an odd lot and is assigned a low credibility weight of 4% with the range being 1-10% and 10% being the highest credibility weighting.)
Buyer profile: Rank: 3% (Buyer is a professional, so a low credibility weight is assigned of 3% (with 10% being the highest)
Seller profile: Rank: 3% (Seller is distressed, so a low credibility weight of 3% is applied,)
Thus, the outcome of step 3 is a Tier Rank: 5 with a Weighting: 10% (the sum of the three percentages of the three factors above).
The highest possible weighting for this step is 30% (10% plus 10% plus 10%).
A tier 5 LBO fund range is, in one example, at 50% to less than 60% of NAV.
The score is calculated by the tier 5 ranking times a 10% weighting for a weighted score of 0.5.
Step 4: ASSESS HISTORICAL RELATIVE RETURNS OF TFIE FUND
WEIGHTING: The total weight for Step 2 and Step 3, called the Weight Total (i.e., 30% for step 2 and 10% for step 3) is 40% leaving a weight amount of 60% to be divided between steps 4 and 5 in equal weights. Here that would be 60% divided by 2 or 30% weight for step 4 and 30% for step 5.
If the fund ranked in the top 20% among its peers in the prior twelve months, then it would be placed in tier 1 with a weighting of 30%. If the fund ranked in the second 20% it would be placed in tier 2 with a weighting of 30%, and so on.
If the fund here were placed in tier 1, its score of 1 would be multiplied by the weighting of 30% to get a weighted score for this step of 0.3.
Step 5: ASSESS PROFILE OF FUND
The final 30% of weight is attributed to a tier level determined on the basis of a variety of factors that include the following:
Vintage year (for the year 1997, for example, the tier could be tier 1)
Dollar amount committed to fund (if $1 billion, for example, the fund is large and might be placed in tier 1 ,)
Dollar amount committed to the issuer's family of funds (if $5 billion, indicating lots of visibility among investors, the rank might be tier 1 ,)
The percentage of limited partners that are institutional investors (if 75% or more, the rank could be tier 1.)
Sector: (if the sector is biotech, which is cuπently favorable, the rank could be tier 1.)
Geographic: (If USA, Europe, Asia, which are cuπently considered desirable, the rank could be tier 1. )
Each of the factors above is given an appropriate weight, for example, equal weight, Suppose the weights are such that the weighted average of the tier rankings of the factors is 1.0. This score must then be weighted by 30% for a weighted score of 0.3.
Step 6: DETERMINE FUND'S TIER RANK. The transfer agent then determines the overall "tier rank" of the fund, which will result from a weighted average score derived from the steps above. In this example, steps 2B had a score of 0.3, step 3 a score of 0.5, step 4 a score of 0.3, and step 5 a score of 0.3 for a total of 1 ,4, If the total score is between 1 and 1.5, the score is rounded down to 1.
The algorithm is an assessment of the level of secondary market demand for a particular fund.
For example, a Tier 1 ranked LBO fund may be assigned a cuπent fair market value estimate of 90% of it's stated net asset value (NAV) where (a) the NAV is provided by the issuer of the fund and (b) the interest in that fund is assumed to be fully funded (that is, the amount funded by the fund's investor equals the investor's commitment amount to that
On the other hand, a Tier 1 ranked Venture Capital fund may be assigned a cuπent fair market value of 70% of NAV, implying that the secondaiy market is currently paying more for LBO funds than Venture Capital funds.
If an interest to be valued is 'partially funded', then the fair market value estimate above is adjusted by multiplying the interest's 'funded ratio'. For example, a tier 1 LBO fund with a 60% funded ratio (funded ratio equals the investor's amount funded in the fund to date divided by the investor's commitment amount to the fund) which is initially assigned a 90% of NAV fair market value estimate is adjusted by multiplying the 90% by 60% for a revised fair market value of 54% of NAV for an interest m that fund,
Other examples of the use of the system include the following:
Example 1. If a private partnership (issuer) seeks to raise capital for a new fund and wants to know what should be the price and terms of its new issue, the issuer can look up prices posted on the ticker for interests in its other funds as an estimate of an appropriate fair market value for the new issue. The new issue fund price may then be increased by 10-50% versus its secondary fair market prices and terms such as the amount of carry (incentive fee) percentage to the general partners can be altered.
Example 2. Suppose a prospective investor seeks to make a purchase of a secondary interest or a newly issued interest in an ABC Fund, and wants to know what is a fair
purchase price for such an interest. As the investor must make an independent evaluation of the purchase of interest, the investor can use the prices posted for ABC Fund secondary interests on the ticker for an independent estimate of cuπent fair market value of interests in an ABC Fund.
Investors generally must make a written representation that they made an independent evaluation in a purchaser's subscription application in order to purchase restiicted interests. However, because the only offering document available to a prospective investor often is a private placement memorandum (PPM) (which is written by the issuer) and then edited by the fund's legal counsel, there is only limited useful information available to prospective investors to make a reasonable evaluation of the fair market value of secondary or newly issued interests of an ABC Fund.
Example 3. If a limited partner (investor) in an ABC Fund wants to sell and needs to deteπnine at what price to sell his interest, the limited partner can look up the price posted on the ticker for an independent estimate of the cuπent fair market value of such an interest.
Example 4. If an institutional investor, portfolio manager, investment advisor, or individual holder of interests in ABC Fund wishes to report an historical fair market value of its portfolio's holdings to clients or shareholders, say for annual return performance purposes, it can look up the price posted on the ticker for an independent estimate of the historical and current fair market value of that interest. This would yield fairer and more independent reporting and also protection to portfolio managers,
Example 5, If the valuation of interests in an estate is sought, due to death, divorce, or taxes, for example, a fair market price is needed, and the trustee can look up the price posted on the ticker for an independent estimate of the current fair market value of the interests,
Example 6. If an investment advisor wishes to provide a client with a recent price quote of the fair market value of interests in ABC Fund, the portfolio manager use the price posted on the ticker for an independent estimate of the prior and cuπent fair market value of such interests.
Example 7. If a financial intermediary such as a broker dealer, alternative trading system, or exchange— hether conducted offline or online or in another electronic manner such as wireless-seeks to provide its clients with a price estimate of the fair market value of the interests of ABC Fund, whether to support a recommendation for purchase or to quote a price for market to market purposes, the price can be looked up on the ticker for an independent estimate of the fair market value of such interest, This would help provide consistent standards and pricing in this market.
Example 8. If a firm seeks to provide its subscribers or readers estimates of the fair market value of interests of ABC Fund, the firm could access the ticker for such fair market values, The price estimates provided by such a finn may include derivative works or similar- replications of the fair market values as stated on the ticker. Such films may include non- broker dealers such as software firms, search engines, database films, or technology driven fnms that may offer various delivery channels to its customers. The channels could include but not be limited to its own price quote system, a search engine, trading software, or private transfer system made available through lease, subscription, or other contract or non- contract to its users. These cases may include situations where the fair market values are derived from the ticker and are offered free of charge to such firm's users in exchange for say leasing its software or for potential views of advertisements on its web site.
Example 9. If a research analysis or news delivery firm seeks historical and cuπent fair market prices for the interests of ABC Fund to provide its readers or subscribers with a research report or news story about the performance of an investment in the ABC Fund, such firms could look up the price posted on the ticker for an independent estimate of historical and current fair market values. This would help provide consistent standards, pricing, and evaluations regarding interests in ABC Fund in the market,
The maintenance of the pricing database and the distribution of the price information will help businesses grow by providing easier access to fair prices and therefore, private capital investment, all within regulatory guidelines. Enabling and providing liquidity and independent information helps investors to become more comfortable with investing in private assets, yielding significantly higher volumes of transfers. Higher volumes of transfers and a liquid market will, as for other markets, lead to job grown and economic growth,
Turning to the use of the system for interests in private companies, e.g., stock, options, convertibles, and bonds, the existence of the website and the ticker will enable institutional and individual investors to make an independent evaluation of the fair market value of such securities, an important requirement of the NASD before a party can sell or buy such securities, and will enable them to meet their own fair reporting requirements to holders of their portfolios.
The system will also permit a significant dollar amount of transfers of ownership to provide liquidity for sellers and the ability to rebalance portfolios and add value to maximize returns.
The algorithm for estimating fair market value of restricted interests (m the following example, common stock) in the case of private company issuers (say, ABC Company) can include the following steps:
Step 1. Identify comparable companies, either private or public, typically in the same sector- as ABC Company.
Step 2. Learn the most recent company valuations of the comparable companies based on the terms of (a) most recent capital raises and^or (b) the terms under which the company was acquired. Valuations of comparable companies that are public are reduced by 25% on average (and depending on sector) as pnvate companies typically have lower valuations than otherwise comparable publicly traded companies because of reduced liquidity of their securities.
Step 3. Assign an appropπate valuation metric to the comparable companies and calculate the average valuation ratio among the comparable companies. For example, for banks, the price-to-book value may be the valuation metric and 2.5x may be the average valuation ratio among the comparables. For manufacturing companies, price-to-last 12 month earnings may be the valuation metric and 1 2x may be the average valuation ratio among the comparables. For technology companies, price-to-last 12 month revenue may be the valuation metric and 5.3x may be the average valuation ratio among the comparables. For biotechnology companies, price-to-clinical trial phase I, II, III may be the valuation metric and a SI 00 million company valuation for completing Phase I trials may be the average valuation ratio among the comparables.
Step 4. Apply the average valuation ratio to the profile of the ABC Company for a fair market valuation of ABC.
Step 5. Make adjustments to the fair market value of ABC based on unique characteristics of ABC by adjusting the valuation ratio applied to ABC. For example, negative adjustments would be used if ABC's cash balance is less than its last 12 month negative cash flow plus capital expenditures amount, or depending on an estimated amount and probability of pending legal or other claims against ABC. A positive adjustment could be made for assets not valued at market such as intellectual property.
Step 6. Divide the fair market value of ABC by the number of fully diluted shares outstanding assuming the conversion to common stock of all options, waπants, and convertible securities. The result is the fair market price estimate per share of the common stock of ABC.
Step 7, To create the price per share that is posted on the ticker, which is the fair market value for ABC's common stock, apply the following weighting algorithm:
50% weighting to the most recent price per share of common stock issued by ABC or sold (in an appropriate dollar amount) in an aπns length transaction between a cuπent shareholder and a new investor,
25% weighting to buyer demand for ABC Company common stock based on:
(a) Dollar amount and price indications of buyer demand for ABC common stock (a factor that may also be considered for partnership interests in the examples given earlier)
(b) Estimated fair market value for ABC
(c) Projected price per share at exit event and the holding period until exit event
(d) Market leadership position and size of market sector
(e) Scalability of business
(f) Direction of creditworthiness (e.g., a weakening credit because ABC is running out of cash)
(g) Access to raising capital
(h) Geographic region
(i) Average annual growth of revenue and earnings
(j) other factors as appropriate on a case by case basis
25% weighting to seller supply of ABC Company common stock based on dollar amount and price indications of offerings ABC common stock (a factor that can also be used in valuing partnership interests), size per offering (oddlot or round lot), and other factors as appropriate. If no information is available on the most recent price per share issued or sold by ABC company, the other weightings are adjusted as appropriate on a case by case basis, (This adjustment is also possible for valuing partnership interests.)
The prior two factors could be considered as simply a 50% weighting of the net demand (demand minus supply).
The following scenarios illustrate how the valuation made be used (similar scenarios apply to use of valuations of partnership interests, and the scenarios drscussed above for partnership interests could also apply to private company interests and at least some of them are not repeated here, for simplicity):
Example 1: If a private company seeks to raise capital and wants to know what should be the price of the new issue, the company could look up the price posted on the ticker for an estimate of fair market value. This price would then typically be further discounted by 10- 30% to make the new issue security attractive to investors who seek to buy at a discount below fair value,
Example 2. If the management of a private company wishes to discuss the increase or decrease in the company's stock price for the prior year in an annual report to shareholders, the company can use the price posted on the ticker for an independent estimate of the prior and cuπent fair market value. This would help provide for more fair and independent reporting to shareholders and also protection to managers.
As shown in Figures 58A and 5 SB, the transfer management system can be enhanced by a feature that summarizes the transfer status for orders for restricted interests associated with a particular issuer 10 and particular funds of that issuer 12, 14.
The page is divided by fund and the following infoimation is presented for each fund:
1. A percentage 15 of the fund's interests transferred up to a date 16 (non-exemption only).
2. A percentage 18 of the fund's interests eligible for transfer 20 (maximum 8%) as QMS transfers, as standard tiansfers 22, 24 (maximum 2%), and as exempted tiansfers 26, 28.
3. For each order being tracked by the system, an order number 30, a date of most recent updating 32, a type of transfer (exempted, QMS, or standard), a representative of the buyer, the seller, and the issuer, outstanding interests in dollars 38, commitment amount in millions of dollars 40, commitment as a percentage of outstanding interests 42.
4. For each order being tracked, status information that includes whether a nondisclosure agreement has been signed 44, whether an order ticket has been signed 46, whether an offering document has been received 48, the status of the offering (active, price matched, or disapproved) 50, whether a price match order ticket has been signed 52, whether a transfer document has been signed 54, whether an escrow agreement has been signed 56, the net proceeds amount 58, the capital call amount due to the issuer 60, the projected settlement date 62, whether transfer documents have been mailed 64, whether funds have been wired 66 and the next steps to be completed 68.
The selection of the columns that appear on the table will depend on policies and processes defined by the issuer and based on regulatory requirements, The pages illustrated on figures 58A and 58B provide an easy view for an issuer to see the status of all transactions for a g toi1ven fund at one time,
The invention may be implemented, for example, by generating web pages from data stored in a server database, Such a database could be of the kind described in the patent application cited above.
The techniques described above can be implemented in software or hardware or combinations of software and hardware using custom or commercial components. The communication among the parties that use the system can be through workstations, servers, handheld devices, or other devices. The communication may occur through the Internet or other publicly accessible network or through dialup lines or in other ways. User interaction may occur through browsers or through other kinds of interfaces.
Although certain implementations have been discussed above, other implementations are also within the scope of the claims.
For example, in the case of restricted interests in private companies, the displayed web pages and the information and features included in them could be somewhat different from the ones discussed earlier with respect to partnership interests.
For example, as shown in figure 53 A, in the case of the symbol used for a given interest may include an indicator of PE representing a private equity issuer, And the PE may be followed by an indicator, e.g., "A", of the class of restricted interest associated with that private equity issuer.
With respect to the featured orders section 272, the information presented includes a quantity 274, a best bid indication 276, a best offer indication 278, and a quantity offered 280. The bid indications are expressed in dollars or face.
The order ticket, as shown in figures 54A and 54B is similarly expressed in shares or face amount rather than as a percentage. In other pagers of the website associated with private companies, the bid and offer indications are also expressed as 3 per share or face value. As shown in figure 55, however, the page on which estimated fair market value is expressed as a percentage of face value or $ per share.
pcaccounts.txt /****** object: Database pc_accounts Script Date: 6/9/2003 10:43:03 AM ******/ IF EXISTS (SELECT name FROM master. dbo.sysdatabases WHERE name = N'pcaccounts')
DROP DATABASE [pc_accounts] GO
CREATE DATABASE [pc_accounts] ON (NAME = N ' pcacCOUntS„Data' , FILENAME = N' C:\WebSites\data\MSSQL\Data\pc_accounts_Data.MDF' , SIZE = 34, FILEGROWTH - 10%) LOG ON (NAME = N' pc_accountS_Log ' , FILENAME =
N1 C:\ ebs tes\data\MSSQL\Data\pc_accounts_log.LDF' , SIZE = 2, FILEGROWTH = 1090 COLLATE SQL_Latinl_General_cPl_cι_AS
GO exec sp_dboption N'pc_accounts' , N'autoclose' , N'false' GO exec sp_dboption N'pc_accounts' , N'bulkcopy', N'false' GO exec sp_dbopt on N'pc_accounts' , N'trunc. log', N'false' GO exec sp_dboption N'pc_accounts' , N'torn page detection', N'true' GO exec sp_dboption N'pc_accounts' , N'read only', N'false' GO exec sp_dbopt on N'pc_accounts' , N'dbo use', N'false' GO exec sp_dboption N'pcaccounts', N'single', N'false' GO exec sp_dboption N'pc_accounts' , N'autoshrink' , N'false' GO exec sp_dboption N'pc_accounts' , N'ANSI null default', N'false' GO exec sp_dboption N'pc_accounts' , N'recursive triggers', N'false' GO exec sp_dboption N'pc_accounts' , 'ANSI nulls', N'false' GO exec sp_dboption N'pcaccounts' , N'concat null yields null', N'false' GO exec sp_dboption N'pcaccounts', N'cursor close on commit', N'false' GO exec sp_dboption N'pcaccounts1, N'default to local cursor', N'false' GO exec sp_dboption N'pcaccounts' , N'quoted identifier', N'false' GO exec sp_dboption N'pcaccounts' , N'ANSI warnings', N'false' GO exec sp_dboption N'pcaccounts' , N'auto create statistics', N'true' GO
pcaccounts.txt exec sp_dboption N'pcaccounts' , N'auto update statistics', N'true' GO use [pcaccounts] GO
/****** Object: Stored Procedure dbo.sp_modifyAccount script Date: 6/9/2003
10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [sp_modifyAccount]') and OBDECTPROPERTYCid, N'lsProcedure') = 1) drop procedure [dbo] . [sp_modifyAccount]
GO
/****** Object: Stored Procedure dbo.sp_putMyAlerts Script Date: 6/9/2003
10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [sp_putMyAlerts]'1) and OBDECTPROPERTY(id, N'lsProcedure') = 1) drop procedure [dbo] . [sp_putMyAlerts]
GO
/****** object: Table [dbboo]] .. [[AACCCCOOUUNNTT]] Script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dd'bo.sysobjects where id = object_id(N' [dbo] . [ACCOUNT] ') and OBZ!ECTPROPERTY(id, N'lsuseenable *) = 1) drop table [dbo] . [ACCOUNT] GO
/****** object: Table [dbo] . [ACCOUNTACCESS] Script Date: 6/9/2003 10:43:08 AM if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [ACCOUNTACCESS] ') and OB ECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [ACCOUNTACCESS]
GO
/****** object: Table [dbo] . [ACCOUNTADDRESS] Script Date: 6/9/2003 10:43:08 AM if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [ACCOUNTADDRESS]1) and OBJECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [ACCOUNTADDRESS]
GO
/****** object: Table [dbo] . [ADDRESS] Script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [ADDRESS] ') and OB ECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [ADDRESS] GO 6/9/2003 10:43:08
'lsuserTable') =
/****** object: Table [dbo] . [EMAILCONTACT] Script Date: 6/9/2003 10:43:08 AM ****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [EMAILCONTACT] ') and OB:ECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [EMAILCONTACT]
GO
/****** object: Table [dbo] . [ENTITY] Script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_ d(N' [dbo] . [ENTITY] ') and
pcaccounts.txt 0BjECTPR0PERTY(id, N'lsuserTable') = 1) drop table [dbo] . [ENTITY] GO
/****** object: Table [dbo] . [ENUMS] Script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [ENUMS] ') and OBJECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [ENUMS] GO
/****** object: Table [dbo] . [HOMEPAGEMESSAGE] script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [HOMEPAGEMESSAGE] ') and OBJECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [HOMEPAGEMESSAGE]
GO
/****** object: Table [dbo] . [INDIVIDUAL] Script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [INDIVIDUAL] ') and OB3ECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [INDIVIDUAL] GO
/****** object: Table [dbo] . [INDIVIDUALACCOUNT] Script Date: 6/9/2003 10:43:08
ΛU ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [INDIVIDUALACCOUNT]') and OBJECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo]. [INDIVIDUALACCOUNT]
GO ****** object: Table [dbo] . [INDIVIDUALHOMEPAGEMESSAGE] script Date: 6/9/2003
10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N" [dbo] . [INDIVIDUALHOMEPAGEMESSAGE] ') and OBDECTPROPERTY(id,
N'lsuserTable') = 1) drop table [dbo] . [INDIVIDUALHOMEPAGEMESSAGE]
GO
/****** object: Table [dbo] . [INDIVIDUALINVESTOR] Script Date: 6/9/2003 10:43:08
ΛM ****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [INDIVIDUALINVESTOR] ') and OB:ECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [INDIVIDUALINVESTOR]
GO
)
/****** object: Table [dbo] . [INDIVIDUALPROFILE] Script Date: 6/9/2003 10:43:08
AM ******/
pcaccounts.txt if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[iNDiviDUALPROFiLE]') and OBjECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [INDIVIDUALPROFILE] GO
/****** object: Table [dbo] . [INVESTORACCOUNT] script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [INVESTORACCOUNT]') and OBDECTPR0PERTY(id, N'lsuserTable') = 1) drop table [dbo] . [INVESTORACCOUNT]
GO
/****** object: Table [dbo] . [MEMBERCONTACT] script Date: 6/9/2003 10:43:08 AM ****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [MEMBERCONTACT] ') and OBDECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [MEMBERCONTACT]
GO
/****** object: Table [dbo] . [NEWS] Script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_i (N' [dbo] . [NEWS] ') and OB-iECTPROPERTY(id, N ' isuserrabl e') = 1) drop table [dbo] . [ EWS] GO
/****** object: Table [dbo] . [ORGANIZATION] Script Date: 6/9/2003 10:43:08 AM ****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [ORGANIZATION]') and OBDECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [ORGANIZATION]
GO
/****** object: Table [dbo] . [OUSER] Script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [OUSER] ') and OBZiECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [OUSER] GO
/****** object: Table [dbo] . [PORTFOLIO] Script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [PORTFOLIO] ') and OBDECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [PORTFOLIO]
GO
/****** object: Table [dbo] . [PORTFOLIO_VIEW] Script Date: 6/9/2003 10:43:08 AM ****** if exists (select * from dbo.sysobjects where id = obiect_id(N'[dbo].[PORTFOLlO_v EW]'') and OB ECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [PORTFOLIO_VIEW] GO
^z****** object: Tabl.e [dbo] . [QUOTES] Script Daattee: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = ob ect_id(N' [dbo]. [QUOTES] ") and OBJECTPROPERTY(id, N'lsuserTabl e') = 1) drop table [dbo] . [QUOTES]
pcaccounts.txt
GO
/****** object: Table [dbo] . [SEQNUM] Script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [SEQNUM] ') and OB3ECTPROPERTY(id, N' isuserTab le') = 1) drop table [dbo] . [SEQNUM] GO
/****** object: Table [dbo] . [groupme bers] Script Date: 6/9/2003 10:43:08 AM
****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [groupmembers] ') and OB:ECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [groupmembers]
GO
****** object: Table [dbo] . [myalerts] Script Date: 6/9/2003 10:43:08 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [myalerts] ') and OB ECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [myalerts] GO
/****** object: Table [dbo] . [myalertsmessages] Script Date: 6/9/2003 10:43:08 AM
****** if exists (select * from dbo.sysobjects where id = obiect_id(N' [dbo] . [myalertsmessages] ') and OBDECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [myalertsmessages]
GO ****** object: Table [dbo] . [usergroups] Script Date: 6/9/2003 10:43:08 AM
******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [usergroups] ') and OB ECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [usergroups]
GO
/****** object: Login ACWEBPRO\cs Script Date: 6/9/2003 10:43:03 AM ******/ if not exists (select * from master. dbo. syslogins where loginna e = N'ACWEBPRO\cs') exec sp_grantlogin N'ACWEBPRO\cs' exec sp_defaultdb N'ACWEBPRO\cs' , N'PT-George' exec sp_defaultlanguage N'ACWEBPRO\cs' , N'us_english' GO
: 43 :03 AM
nd
/****** object: User dbo Script Date: 6/9/2003 10:43:03 AM ******/
/****** object: user ACWEBPR0\IUSR_ACWEBPR0 script Date: 6/9/2003 10:43:03 AM
******/ exec sp_addrolemember N'db_datareader' , N'ACWEBPR0\lUSR_ACWEBPR0' GO
/****** object: User ACWEBPRO\IUSR_ACWEBPRO Script Date: 6/9/2003 10:43:03 AM ******/ exec sp_addrolemember N'db_datawriter' , N'ACWEBPRO\IUSR_ACWEBPRO'
GO
/****** object : User AC EBPR0\IUSR_ACWEBPR0 scri pt Date : 6/9/2003 10 : 43 : 03 AM ****** exec sp_addrol emember N ' db_owner ' , N ' ACWEBPRO\IUSR_ACWEBPRO '
GO ****** obj ect : Tabl e [dbo' . [ACCOUNT] scri pt Date : 6/9/2003 10 :43 : 09 AM ******/ CREATE TABLE [dbo] . [ACCOUNT [ACCOUNTID] [bi gi nt NOT NULL ,
[ACCOUNTNUMBER" [char] (64) COLLATE SQL -ati nl_General_CP_-_CI_AS NULL ,
ACCOUNTTYPE] tint] NOT ULL ,
ACCOUNTNAME [char] (120) COLLATE SQL_Lati nl_General_CPl_ci_AS NULL ,
DATECREATED [dateti me] NOT NULL , BALANCE] [money] NULL ,
BEGINEFFECTIVEDATE] [datetime] NULL ,
ENDEFFECTIVEDATE] [datetime] NULL , LLASTCHANGEDBY] [bigint] NULL , "HISTORYID] [bigint] NULL , "DATECLOSED] [datetime] NULL ,
CLOSEDBY] [bigint] NULL ,
ACCOUNTMANAGERID] [bigint] NOT NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [ACCOUNTACCESS] Script Date: 6/9/2003 10:43:10 AM ******/
CREATE TABLE [dbo] . [ACCOUNTACCESS] (
[INDIVIDUALS] [bigint] NOT NULL , [ACCOUNTID] [bigint] NOT NULL , [ACCESSTYPE] [int] NOT NULL , Ε2ECATEGORY] [int] NULL , :E2ERELATIONSHIPTYPE] [int] NULL , "ENTITYID] [bigint] NULL , "STARTDATE] [datetime] NULL , [ENDDATE] [datetime] NULL , ^LASTCHANGEDBY] [bigint] NULL ,
[OVERRIDE] [int] NULL
pcaccounts.txt
) ON [PRIMARY] GO
/****** object: Table [dbo] . [ACCOUNTADDRESS] Script Date: 6/9/2003 10:43:10 AM ******/
CREATE TABLE [dbo] . [ACCOUNTADDRESS] (
ACCOUNTID] [bigint] NULL ,
FIRSTNAME] [char] (80) COLLATE SQL_Lati nl_General_CPl_c _AS NULL , MIDDLENAME] [char] (80) COLLATE SQL_Lati nl_General_CPl_cι_AS NULL , LASTNAME] [char] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NOT NULL LEGALADDRESSID] [bigint] NULL , MAILINGADDRESSID] [Bigint] NULL ,
[ACCOUNTNAME] [char] (9) COLLATE SQL_Lati nLGeneral_CPl_Cl_AS NULL
) ON [PRIMARY] GO
0
/****** Object: Table [dbo] . [EMAILCONTACT] script Date: 6/9/2003 10:43:11 AM
******/
CREATE TABLE [dbo] . [EMAILCONTACT] (
pcaccounts.txt
APPLICATIONNAME] [char] (80) COLLATE SQL_Latin:i-_General_CPl_Cl_AS NULL .
;EMAILTO] [char] (80) COLLATE SQL_Latinl_General_CPl_Ci_As ULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [ENTITY] script Date: 6/9/2003 10:43:11 AM ******/ CREATE TABLE [dbo] . [ENTITY] (
ΈNTITYID] [bigint] NOT NULL ,
"ENTΓTΎTΎPE] [int] NOT NULL ,
'CREATEDWHEN] [datetime] NOT ULL ,
'STARTDATE] [datetime] NOT NULL ,
ΕNDDATE] [datetime] NULL ,
'LASTCHANGEDBY] [bigint] NULL ,
"NAME] [char] (255) COLLATE SQL_Latinl_General_CPl_.Cl._AS NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [ENTITYACCOUNT] script Date: 6/9/2003 10:43:11 AM
******
CREATE' TABLE [dbo [ENTITYACCOUNT] (
[ENTITYID] "bigint _] ,.- NO . T NULL
ACCOUNTID] _ [ .bi iggiini t] NOT NULL
'RELATIONSHIP] [int] NOT NULL
[STARTDATE] [datetime] NOT NULL [ENDDATE] [datetime] NULL , [LASTCHANGEDBY] [bigint] NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [ENUMS] Script Date: 6/9/2003 10:43:11 AM ******/
CREATE TABLE [dbo] . [ENUMS ( [TABLENAME] __ [ _char _ (80) COLLATE SQL_Latinl_General_CPl_CI_AS NOT NULL ,
COLUMNNAME] [char] (80) COLLATE SQL_Lati nl_General_CPl_CI_AS NOT NULL ,
ENUMCODE] [int] NOT NULL ,
ENUMSTRING] [char] (80) COLLATE SQL_Latinl_General_CPl_CI_AS NOT NULL ,
DISPLAYORDER] [int] NULL ) ON [PRIMARY] GO 11 AM
/****** object: Table [dbo] . [INDIVIDUAL] script Date: 6/9/2003 10:43:11 AM ******
CREATE TABLE [dbo] . [INDIVIDUAL] (
[BUSINESSADDRESSID] [bigint] NULL ,
[HOMEADDRESSID] [bigint] NULL ,
[COMPANY] [char] (80) COLLATE SQL_Lati nl_General_CPl_ci_AS NULL
[DOBTITLE] [char] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , [NICKNAME] [char (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ,
[SECONDARYEMAILADDRESS] [char] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS
NULL
EMAILPREFERENCE] [int] NULL ,
[LASTLOGIN] [datetime] NULL ,
[NONCUSTOMER] [int] NOT NULL , VIP] [int] NULL , SPECIALINSTRUCTIONS] [char] (255) COLLATE SQL_Latinl_General_cPLci_AS NULL
,BELLWETHER] [int] NULL , =COMPANYHIREYEAR] [bigint] NULL , :INSTITUTIONALINVESTOR] [int] NULL ,
USERFUNCTION] [char] (40) COLLATE SQL_Lati nl_General_CPl_cl_AS NULL ,
pcaccounts.txt "OCCUPATION] [varchar] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , "EMPLOYER] [varchar] (80) COLLATE SQL_Latinl_General_cpl_ci_AS NULL , [TITLE] [varchar] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [INDIVIDUALACCOUNT] Script Date: 6/9/2003 10:43:12
ΛM ******
CREATE TABLE [dbo] . [INDIVIDUALACCOUNT] (
[INDIVIDUALS] [bigint] OT ULL ,
[ACCOUNTID] [bigint] NOT NULL ,
[RELATIONSHIP] [int] NOT NULL ) ON [PRIMARY] GO script Date: 6/9/2003
/****** object: Table [dbo] . [INDIVIDUALINVESTOR] Script Date: 6/9/2003 10:43:12
ΛM ******
CREATE TABLE [dbo] . [INDIVIDUALINVESTOR] ( 'INDIVIDUALS] [bigint] NOT NULL , "STATUS] [int] NOT NULL , :PREFERREDLANGUAGE] [int] NULL , 'USCITIZEN] [int] NULL , 'STATEMENTOFACCREDITATION] [char] (255) COLLATE SQL_Latinl_General_cPl_Ci_AS
NULL
BANKINGREFERENCE] [char] (255) COLLATE SQL_Lat nl_General_CPl_ci_AS NULL , DATEREGISTERED] [datetime] NOT NULL ,
ASSETRANGE] [char] (40) COLLATE SQL_Lati nl_General_CPl_ci_AS NULL ,
HOUSEHOLDINCOME] [float] NULL ,
INVESTIBLENETWORTH] [float] NULL , [REALSTATENETWORTH] [float] NULL , ~BIRTHDATE] [datetime] NULL , MOTHERSMAIDENNAME] [char] (80) COLLATE SQL_Lati nl_General_CPl_ci_AS NULL , ~SSN] [char] (10) COLLATE SQL_Latinl_General_CPl_ci_AS NULL ,
GIEXPERIENCEYEARS] [int] NULL ,
GIANNUALAMOUNT] [float] NULL ,
AIEXPERIENCEYEARS] [int] NULL ,
AIANNUALAMOUNT] [float] NULL ,
INVESTMENTOBDECTIVES] [int] NULL ,
REFERREDBY] [bigint] NULL , [LASTCHANGEDBY] [bigint] NULL , "LASTCHANGEDWHEN] [datetime] NULL ,
SSNSTRING] [char] (80) COLLATE SQL_Latinl_General_CPl_CI_AS NULL ,
DRIVERSLICENSERSTATE] [char] (80) COLLATE SQL_Latinl_General_CPl_CI_AS ULL
[DRIVERSLICENSECOUNTRY] [char] (80) COLLATE SQL_Latinl_General_CPl_cι_AS
NULL [DRIVERSLICENSENUMBER] [char] (80) COLLATE SQL_Latinl_General_CPl_cι_AS ULL DRIVERSLICENSEEXPIRE] [datetime] NULL ,
NONDRIVER] [int] NULL ,
pcaccounts . txt
TIN] [char] (32) COLLATE SQL_Lati πl_General_CPl_ci_AS NULL , NONUSCITIZENSHI P] [char] (80) COLLATE SQL_Lati nl_General_cpl_cι_AS NULL "NONUSRESIDENCE] [char] (80) COLLATE SQL_Lati nl_General_CPl_Cl_AS NULL ,
PRIMARYBANKNAME] [char] (80) COLLATE SQL_Lat nl_General_CPl_Cl_AS NULL ,
ADHUSTEDGROSSINCOME] [i nt] NULL ,
FEDERALTAXBRACKET] [i nt] NULL ,
APPROXIMATENETWORTH] [i nt] NULL , [APPROXIMATELIQUIDNETWORTH] [i nt] NULL "PRIMARYBANKACCOUNTNUMBER] [char (80) COLLATE SQL_Lati nl_General_CPl_ci_AS
NULL [PRIMARYBROKERINSTITUTION] [char] (80) COLLATE SQL_Lati nl_General_CPl_cι_AS
NULL ,
[PRIMARYBROKERACCOUNTNUMBER] [char] (80) COLLATE
SQL_Latinl_General_CPl_CI_AS NULL ,
[TENPERCENTCOMPANY] [char] (80) COLLATE SQL_Lati nl_General_CPl_ci_AS NULL , [AFFILIATESECURITIESFIRM] [char] (80) COLLATE SQL_Lati nl_General_CPl_ci_AS
NULL
[PRIMARYINCOMESOURCE] [char] (80) COLLATE SQL_Lati nl_General_CPl_Ci_AS NULL
[LICENSEDBYNASD] [i nt] NULL , [DUPLICATESTATEMENT] [i nt] NULL , [PRIMARYBROKERINSTITUTIONOTHER] [char] (80) COLLATE
SQL_Latinl_General_CPl_CI_AS NULL ,
[TENPERCENTCOMPANYTEXT] [char] (80) COLLATE SQL_Lati nl_General_CPl_ci_AS NULL ,
[WEBSITE] [char] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ) ON [PRIMARY] GO
Scri pt Date : 6/9/2003 10 : 43 : 12
pcaccounts.txt [EMPLOYMENTSECTOROTHER] [char] (255) COLLATE SQL_Lati nl_General_CP:Lcι_AS
NULL ,
[SECTOREXPERTISEOTHER] [char] (255) COLLATE SQL_Lati nl_General_CPl_cι_AS NULL ,
[SECTORINTERESTOTHER] [char] (255) COLLATE SQL_Latinl_General_cpl_cι_AS ULL
[COMMENTARY] [char] (4000) COLLATE SQL_Lati n--_General_CPl_Cl_AS NULL , ΆPPLICATIONDATE] [datetime] NULL ,
"LASTCHANGEDBY] [b gint] NULL ,
"LASTCHANGEDWHEN] [datetime] NULL ,
[HEARDABOUTOFFROAD] [char] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NULL ,
"NOQUESTIONNAIRES] [int] NULL ,
'BONDSEXPERIENCE] [int] NULL ,
!COMMODITIESEXPERIENCE] [int] NULL ,
'STOCKEXPERIENCE] [int] NULL ,
"MUTUALFUNDEXPERIENCE] [int] NULL ,
!OPTIONSEXPERIENCE] [int] NULL ,
"PRIVATEPLACEMENTEXPERIENCE] [int] NULL ,
■REALESTATEEXPERIENCE] [int] NULL ,
ΈMAILALLDEALS] [int] NULL ,
ΈMAILSIGNEDNDADEALS] [int] NULL ,
'EMAILNEWFEATURES] [int] NULL ,
ΉIDECITYSTATE] [int] NULL ,
[OCCUPATION] [char] (255) COLLATE SQL_Latinl_General_CPl_ci_AS NULL ,
"NOTACCREDITEDINVESTOR] [int] NULL , [NOTACCREDITEDINVDATE] [datetime] NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [INVESTORSTATUS] Script Date: 6/9/2003 10:43:13 AM ******
CREATE TABLE [dbo] . [INVESTORSTATUS] (
[individual Id] [bigint] NOT NULL ,
pcaccounts.txt [checkedltem] [char] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [MEMBERCONTACT] Script Date: 6/9/2003 10 -43 -13 ******/ AM
CREATE TABLE [dbo] . [MEMBERCONTACT] (
'MEMBERCONTACTID] [numeric] (10, 0) NOT NULL ,
ΈNTITΎID] [numeric] (10, 0) NOT NULL ,
'CONTACTEDBY] [numeric] (10, 0) NULL ,
'CONTACTEDWHEN] [datetime] NULL ,
[CONTACTBODY] [text] COLLATE SQL_Latinl_General_CPl_ci_AS NULL ,
'CONTACTMETHOD] [numer c] (5, 0) NULL ,
'DEALS] [numeric] (10, 0) NULL ,
ΑCTIONSET] [numeric] (1, 0) NULL ,
ΑCTIONSETBY] [numeric] (10, 0) NULL ,
ACTIONS ETWH EN] datetime] NULL
ACTIONUNSETBY] [numeric] (10, 0) NULL , ACTIONUNSETWHEN] [datetime] NULL , INCOMING] [numeric] (1, 0) NULL
PHONECALLLENGTH] numeric] (5, 2) NULL ,
PHONECALLSTATUS] [numeric] (5, 0) NULL ,
NEWACCOUNTTOPIC] "numeric] (5, 0) NULL ,
MAINTENANCETOPIC' [numeric] (5, 0) NULL
DEALINQUIRYTOPIC [numeric] (5, 0) NULL
'DEALRELATEDITEMTόSEND] [numeric] (5, 0) NULL 'NEWACCOUNTITEMTOSEND] [numeric] (5, 0) NULL , 'SPECIALHANDLING] [numeri C] (5 , 0) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO
/***** * Object: Table [dbo] . [ORGANIZATION] Script Date: 6/9/2003 10:43:13
****** AM
CREATE TABLE [dbo] . [ORGANIZATION ( [ORGANIZATIONS] _ [bi gi nt NOT NULL , NAME] [char] (255) COLLATE SQL_Latinl_General_CPl_Ci_AS NOT NULL ,
ORGANIZATIONTYPE] [int] NOT NULL , INDUSTRYSECTOR] [int] NULL , ADDRESSID] [bigint] NOT NULL ,
"MAINPHONENUMBER] [char] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NULL WEBSITE] [char] (255) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , LASTCHANGEDBY] [bigint] NULL , LASTCHANGEDWHEN] [datetime] NULL
FAXNUMBER] char] (80) COLLATE SQL_Lat n-L_General_CPl_CI_AS NULL MAHORSTATUS [int] NULL , MINORSTATUS, [int] NULL , CREATEDWHEN ..]_ [datetime] NULL , NICKNAME] [char] (20) COLLATE SQL_Latinl_General_CPl_cι_AS NULL , [FULLNAME] [char] (255) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
pcaccounts.txt EMAILADDRESS] [char] (80) COLLATE SQL_Latinl_General_cPl_Cl_AS NULL
'ACTIVITY, char' (40) COLLATE SQL_Latinl_General_CPl_ci_AS NULL "PRODUCTS char (40) COLLATE SQL_Latιnl_General_CPl_cι_AS NULL 'DEPARTMENT [char] (40) COLLATE SQL_Latinl_General_cpl_ci_AS NULL
) ON [PRIMARY]
GO ****** object: Table [dbo] . [OUSER] Script Date: 6/9/2003 10:43:13 AM ******/ CREATE TABLE [dbo] . [OUSER] (
'INDIVIDUALS] [bigint] NOT NULL ,
'LASTCHANGEDBY] [bigint] NULL ,
"ENCRYPTEDPASSWORD] [char] (80) COLLATE SQL_Latinl_General_CPl_CI_AS NOT
NULL
'USERS] [char] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NOT NULL ,
ACCESSTYPE] [int] NOT NULL ,
LASTCHANGEDWHEN] [datetime] NULL ,
SCREENNAME] [char] (80) COLLATE SQL_Lat πl_Geπeral_CPl_ci_AS NULL ,
CACHESEQ] [bigint] OT ULL ,
ENCRYPTIONCODE] [char] (10) COLLATE SQL_Latinl_General_CP-L_Cl_AS NULL
"LASTLOGIN datetime] NULL 'STARTPAGE, char] (256) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [QUOTES] Script Date: 6/9/2003 10:43:14 AM ******/ CREATE TABLE [dbo] . [QUOTES] (
[Offeringcode] [varchar] (25) COLLATE SQL_Latinl_General_CPl_ci_AS NOT NULL
pcaccounts.txt
[LASTDATE] [datetime] NULL
[LASTPRICE] money] NULL
BID money. NULL
ASK; .money NULL
'VOLUME] [int] NULL ,
"TICKS] [varchar] (25) COLLATE SQL_Latinl_General_CPl_ci_AS NULL
'CHANGE] [numeric] (18, 0) NULL ,
"DAY_LOW] [money] NULL ,
"DAY_HIGH] [money] NULL ,
ΥEAR_LOW] [money] NULL ,
"YEAR_HIGH] [money] NULL ,
"0PEN_PRICE] [money] NULL ,
"CL0SED_PRICE] [money] NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [SEQNUM] script Date: 6/9/2003 10:43:14 AM ******/ CREATE TABLE [dbo] . [SEQNUM] (
"sequence_num] [bigint] NOT NULL ,
"sequence_type] [char] (40) COLLATE SQL_Latinl_General_CPl_CI_AS NOT NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [accountcharge] Script Date: 6/9/2003 10:43:14 AM ******/
CREATE TABLE [dbo] . [accountcharge] ( [individual id] [bigint] NULL , accountid] [big pinntτ[ NULL
■payment_type] . nt] NULL
"paypal_account] [varchar] (80) COLLATE SQL_Latinl_General_CPl_CI_AS NULL "chanσedate] [datetime] NULL ) ON [PRIMARY]
GO
/***** * object Table [dbo] . [accounthistory] Script Date: 6/9/2003 10:43:14 AM
******
CREATE TABLE [dbo] . [accounthi story] ( 'individual id] [bigint] NULL , "accountid] [bigint] NULL , pre_title] [int] NULL ,
■pre_fname] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL "pre_mi] [varchar] (80) COLLATE SQL_Lat nl_General_CPl_CI_AS NULL , pre_lname] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL pre_suffix] [int] NULL , ipre_nickname] varchar] (80) COLLATE SQL_Lat nl_General_CPl_CI_AS NULL , rpre_position] varchar] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , =pre_userid] [varchar] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , !pre_screenname] [varchar] (80) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , rpre_phone] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , pre_fax] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , ■pre_cell] [varchar] (80) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , "pre_email] [varchar] (80) COLLATE SQL_Lat nl_General_CPl_Ci_AS NULL , "pre_company] [varchar] (80) COLLATE 5QL_Latinl_General_CPl_Cl_AS NULL , rpre_addressid] [bigint] NULL , pre_informat on] [varchar] (80) COLLATE SQL_Latinl_General_CPl_CI_AS NULL [pre_deliveryaddress] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS
NULL
'pre_city] [varchar] (80) COLLATE SQL_Latinl_General_CPl_CI_AS NULL ,
"pre_state] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ,
"pre zip] [varchar] (80) COLLATE SQL_Latiπl_General_CPl_CI_AS NULL , pre_country] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , pre birthdate] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ,
[post_deliveryaddress] [varchar] (80) COLLATE SQL_Latinl_General_CPl_CI_AS
NULL post_city] [varchar] (80") COLLATE SQL_Lat nl_General_CP]_Cl_AS NULL , post_state] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , [post_zip] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , "post country] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , post_birthdate] varchar (80) COLLATE SQL_Latinl_General_CPl_Cl_^S NULL poscssnstring"1 varchar' (80) COLLATE SQL_Latinl_General_CPl_cι_AS NULL post_taxid] [varchar] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NULL
pcaccounts.txt
[post url] [varchar] (80) COLLATE SQL_Latinl_General_cPl_Ci_AS NULL
[post .webaccess [int] NULL
[post brokerage [int] NULL
[post _payment_type] [int] NULL ,
[post .paypal] [varchar] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NULL ,
[post .status] [int] NULL ,
[post..type] [int] NULL ,
[post, _view_featuredorders] [int] NULL ,
[post..view_firmorders] [int] NULL ,
[post, _view_p pel i neorders] [int] NULL ,
[post..view_consolidatedorders] [int] NULL ,
[post..v ew-allprivatefunds] [int] NULL ,
[post..ordernet] [int] NULL ,
[post..view_bid] [int] NULL ,
[post..view_offer] [int] NULL ,
[post..view_last] [int] NULL ,
-post..features_bid] [int] NULL ,
[post..features_offer] [int] NULL ,
[post..features_last] [int] NULL ,
[post..firπ bid] [int] NULL ,
[post. ,firm_offer] [int] NULL ,
[post. iππJast] [int] NULL ,
[post. pipeline-bid] [int] NULL ,
[post. pipeline_offer] [int] NULL ,
[post. p pel ne_last] [int] NULL ,
[post_ private-bid] [int] NULL ,
[post, private_offer] [int] NULL ,
[post_ private last] [int] NULL ,
[post- consolidated-bid] [int] NULL ,
[post- consolidated_offer] [int] NULL ,
[posC ordecbid] [int] NULL ,
[posC ,order_offer] [int] NULL ,
[pOSt_> occupation] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
[post_' employer] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , [post .worktitle] [varchar] (80) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , [chang edwhen] [datetime] NULL , [chang edby] [bigint] NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [groupmembers] Script Date: 6/9/2003 10:43:14 AM ******
CREATE TABLE [dbo] . [groupmembers] ( [groupid] [bigint] NOT NULL , [mdividualidj [bigint] NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [individualaccess] script Date: 6/9/2003 10:43:14 AM ******/
CREATE TABLE [dbo] . [individualaccess] ( r [indivi -d_ jua Jl 1 id r] [bigint] NULL ,
[accountid] -. _ ._--i ..... . ' bigint] NULL [webaccess] int] NULL
[eagreement] [int] NULL , "agreement] [int] NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [myalerts] Script Date: 6/9/2003 10:43:15 AM ******/ CREATE TABLE [dbo] . [myalerts] (
[individual Id] [bigint] NOT NULL [symbol 1] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
pcaccounts . txt [symbol 2] [varchar] (80) COLLATE SQL_Lati nl_General_CPl_ci_AS NULL , [symbol 3] [varchar] (80) COLLATE SQL_Lat nl_General_CPl_ci_AS NULL
) ON [PRIMARY]
GO
/****** object : Tabl e [dbo] . [myal ertsmessages] Scri pt Date : 6/9/2003 10 : 43 : 15 AM ******
CREATE TABLE [dbo] . [myal ertsmessages] (
"i d] [bi gi nt] IDENTITY (1 , 1) NOT NULL , symbol ] [varchar] (80) COLLATE SQL_Lati nl_General_CP- ci_AS NULL ,
'rep norrttrdlaatteel f [HdaattoettTimmoel] N MUULML , Veportl i nk [varchar] (256) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [usergroups] Script Date: 6/9/2003 10:43:15 AM ******/
CREATE TABLE [dbo] . [usergroups] (
"id] [bigint] IDENTITY (1, 1) NOT NULL ,
"groupdescription] [char] (80) COLLATE SQL_Latinl_General_cPl_cι_AS NULL ) ON [PRIMARY] GO
ALTER TABLE [dbo] . [INDIVIDUAL] WITH NOCHECK ADD
CONSTRAINT [DF_INDIVIDUAL_VIEW_FEATUREDORDERS] DEFAULT (0) FOR [VIEW_FEATUREDORDERS] ,
CONSTRAINT [DF_INDIVIDUAL_VIEW_FIRMORDERS] DEFAULT (0) FOR [VIEW_FIRMORDERS] ,
CONSTRAINT [DF_INDIVIDUAL_VIEW_PIPELINEORDERS] DEFAULT (0) FOR [VIEW_PIPELINEORDERS] ,
CONSTRAINT [DF_INDIVIDUAL_VIEW_CONSOLIDATEDORDERS] DEFAULT (0) FOR [VIEW-CONSOLIDATEDORDERS] ,
CONSTRAINT [DF_INDIVIDUAL_VIEW_ALLPRIVATEFUNDS] DEFAULT (0) FOR [VIEW_ALLPRIVATEFUNDS] ,
CONSTRAINT DF_INDIVIDUAL_ORDERNET] DEFAULT (0) FOR [ORDERNET] , CONSTRAINT [DF_INDIVIDUAL_VIEW_BID] DEFAULT (0) FOR [VIEW_BID] , CONSTRAINT "DF_INDIVIDUAL_VIEW_OFFER] DEFAULT (0) FOR [VIEW_OFFER] , CONSTRAINT DF_INDIVIDUAL_VIEW_LAST] DEFAULT (0) FOR [VIEW_LAST] , CONSTRAINT DF_INDIVIDUAL_FEATURES_BID] DEFAULT (0) FOR [FEATURES_BS] , CONSTRAINT DF_INDIVSUAL_FEATURES_OFFER] DEFAULT (0) FOR [FEATURES_OFFER] , CONSTRAINT DF_INDIVIDUAL_FEATURES_LAST] DEFAULT (0) FOR [FEATURES_LAST] , CONSTRAINT DF_INDIVIDUAL_FIRM_BID] DEFAULT (0) FOR [FIRM_BID] , CONSTRAINT DF_INDIVIDUAL_FIRM_OFFER] DEFAULT (0) FOR [FIRM_OFFER] , CONSTRAINT [DF_INDIVIDUAL_FIRM_LAST] DEFAULT (0) FOR [FIRM_LAST] , CONSTRAINT [DF_INDIVIDUAL_PIPELINE_BID] DEFAULT (0) FOR [PIPELINE_BS] , CONSTRAINT rDF_INDIVIDUAL_PIPELINE_OFFER] DEFAULT (0) FOR [PIPELINE_OFFER] , CONSTRAINT DF_INDIVIDUAL_PIPELINE_LAST] DEFAULT (0) FOR [PIPELINE_LAST] , CONSTRAINT DF_INDIVIDUAL_PRIVATE_BID] DEFAULT (0) FOR [PRIVATE_BID] , CONSTRAINT DF_INDIVIDUAL_PRIVATE_OFFER] DEFAULT (0) FOR [PRIVATE_OFFER] , CONSTRAINT DF_INDIVIDUAL_PRIVATE_LAST] DEFAULT (0) FOR [PRIVATE-LAST] ,
CONSTRAINT DF_INDIVIDUAL_CONSOLIDATED_BID] DEFAULT (0) FOR [CONSOLIDATED_BS] ,
CONSTRAINT [DF_INDIVIDUAL_CONSOLIDATED_OFFER] DEFAULT (0) FOR [CONSOLIDATED_OFFER] ,
CONSTRAINT [DF_INDIVIDUAL_ORDER_BID] DEFAULT (0) FOR [ORDER_BS] ,
CONSTRAINT [DF_INDIVIDUAL_0RDER_OFFER] DEFAULT (0) FOR [ORDER_OFFER] GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GO
pcaccounts.txt /****** object: Stored Procedure dbo.sp_modifyAccount Script Date: 6/9/2003 10:43:15 AM ******/ CREATE PROCEDURE sp_mod fyAccount (©individualid bigint, ©accountid bigint,
©pre_title int, @pre_fname varchar(80), ©pre_mι varchar(δθ), ©pre_lname varchar(δθ), ©pre_suffix int,
©pre_nickπame varchar(80), @pre_position varchar(80), ©pre userid varchar(80), @pre_screenname varchar(80),
©pre_phone varchar(δθ), @pre_fax varchar(80), ©pre_cell varchar(δθ), @pre_email varchar(80), @pre_company varchar(80},
@pre_addressid bigint, ©pre_information varchar (80), ©pre_deliveryaddress varchar(80), ©pre_city varchar(δθ),
@pre_state varchar(δθ), ©pre_zip varchar(δθ), ©pre_country varchar(80), ©pre_birthdate varchar(δθ),
©pre_ssnstring varchar(SO), @pre_taxid varchar(80), ©pre_url varchar(δθ), ©pre_webaccess int, @pre_brokerage int,
@pre_payment_type int, @pre_paypal varchar(δθ), @pre_status int, ©pre_type int,
©pre_view-featuredorders int, ©pre_view_firmorders int, @pre_view_pipelineorders int, ©pre_view_consolidatedorders int,
@pre_view_allprivatefunds int, ©pre_ordernet int,
©pre_view_bid int, ©pre_view_offer int,
@pre_view_last int, @pre_features_bid int, ©pre_features_offer int, @pre_features_last int, ©pre_f rm_bid int,
"~ ©p re_firm_offer int, ©pre_fi rm_last int, ©pre_pipeline_bid int, @pre_pipeline_offer int, ©pre_p pel ne_last int, ©pre_private_bid int,
©pre_private_offer int, ©pre_private_last int, @pre_consolidated_.bid int, @pre_consolidated-θffer int, ©pre_order_bid int, @pre_order_offer int,
@pre_occupation varchar(SO), ©pre_employer varchar(80), @pre_worktitle varchar(δθ),
©title int, ©fna e varchar(80), ©mi varchar(SO),
©Ina e varchar(SO), ©suffix int, ©nickname varchar(80), ©position varchar(80), ©userid varchar(SO),
©screenna e varchar(SO), ©phone varchar(SO), ©fax varchar(δθ), ©cell varchar(80), ©email varchar(δθ), ©company varchar(δθ) ,
©addressid bigint, ©information varchar (60), ©deliveryaddress varchar(δθ), ©city varchar(SO), ©state varchar(δθ),
©zip varchar(δθ), ©country varchar(δθ), ©birthdate varchar(δθ), ©ssnstring varchar(80), ©taxid varchar(δθ), ©url varchar(δθ),
©webaccess int, ©brokerage int, @payment_type int, ©paypal varchar (δO), ©status int, ©type int,
©v ew_featuredorders int, ©view_fi r orders int,
©view_p pel neorders int, ©view_consolιdatedorders int,
©v ew_al Iprivatefunds int, ©ordernet int,
@view_bid int, ©view_offer int, ©view_last int, @features_bid int, ©features_offer int, ©features_last int,
©firm_bid int, @f rm_offer int, @firm_last int, ©p peline_bid int, ©pipeliπe_offer int, ©pipeline_last int,
©private_bid int, ©private_offer int, ©private_last int, @consolidated_bid int, ©consolidated_offer int,
©order_bid int, @order_offer int, ©changedby bigint,
©occupation varchar(SO), ©employer varchar(δθ), ©worktitle varchar(δθ)
) as
BEGIN TRAN
Update individual Set firstname = ©fname, middlena e = ©mi, lastname = ©Iname, honorificortitle = ©title, lastnamesuffix = ©suffix, view_featuredorders = ©v ew_featuredorders, view_fi rmorders = @view_fi rmorders, " ViIew_pipel neorders = ©view_pipel neorders, vi ew_consolidatedorders = ©view_consol datedorders,
VI ew_al Iprivatefunds = ©view_al Iprivatefunds,
pcaccounts.txt occupation = ©occupation, employer = ©employer, title = ©worktitle, ordernet = ©ordernet, view_bid = ©view_bid, view_offer = ©view_offer, view_last = ©view_last, features_bιd = ©features_bid, features_offer - ©features_offer, features_last = @features_last, firm_bid = ©firm_bid, firm_offer = ©firm_offer, firrn ast = ©firm_l st, pipeline_bid = ©p peline_bid, pi eline_offer = ©pipeline_offer, p peline last = ©pipeline_last, private_bid = ©private_bid, private_offer = ©private_offer, private_last = ©private. last, consolidated_bid = ©consolidated-bid, consol dated_offer = ©consol i dated_of f er , order_bid = ©order_bid, order_offer = ©order_offer, officephonenumber = ©phone, faxnumber = ©fax, cellularphonenu ber = ©cell, lastchangedwhen = getdateO, lastchangedby = ©changedby, emailaddress = ©email, company = ©company, jobtitle = ©position, nickname = ©nickname Where ndividualid = ©indiv dualid update individualaccess Set webaccess = ©webaccess, eagreement =©brokerage
Where indiv dualid = ©indiv dual d and accountid = ©accountid
Update ouser set userid = ©userid, scre'enname = ©screenname, lastchangedby = ©changedby, lastchangedwhen = getdate() Where indiv dualid = ©individualid
Update address set information = ©information, deliveryaddress = ©deliveryaddress, city = ©city, state = ©state, zip - ©zip, country = ©country Where addressid = ©addressid
Update ndividualinvestor set birthdate = ©birthdate, ssnstring = ©ssnstring, tin = ©taxid, website = ©url, lastchangedby = ©changedby, l stchangedwhen = getdateO
Where individualid = © ndividualid
Update accountcharge set payment-type = ©payment_type, paypal_account = ©paypal , changedate - getdateO where individualid = ©individualid and accountid = ©accountid
Update brokerdealeraccount set status = ©status, accounttype = ©type, lastchangedby = ©changedby, lastchangedwhen = getdateO where accountid = ©accountid insert into accounthistory ( individualid, accountid, pre_title, pre_fname, pre_m , pre_lname, pre_suffiχ, pre_nickname, pre_posit on, pre_userid, pre_screenname, pre_phone, pre_fax,
©c angedby
COMMIT
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
SET QUOTED_SENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo. sp_putMyAl erts Script Date: 6/9/2003 10:43:15 AM ******/
CREATE PROCEDURE sp_putMyAl erts (©Id bigint, ©symboll varchar(δθ), ©symbo!2 varchar(δθ), @symbol3 varchar(δθ)) . as Declare © ndividualid bigint BEGIN TRAN
Select ©individualid = individualid From myalerts where individualid = ©id
If ©individualid is Null insert into myalerts ( individualid, symboll, symbo!2, symbo!3 ) Values(©Id, ©symboll, ©symbol 2, @symbol3) Else
Update myalerts Set symboll = ©symboll, symbol 2 = ©symbol 2, symbol! = @symbol3 where individualid = ©individualid
COMMIT
GO
pcaccounts .txt
SET QUOT£D_IDENTIFIER OFF
GO
SET AN5I_NULL-5 ON
GO
PT-George. txt /****** object: Database PT-George script Date: 6/9/2003 10:42:08 AM ******/ IF EXISTS (SELECT name FROM master. dbo.sysdatabases WHERE name - N'PT-Georαe'1 DROP DATABASE [PT-George] M J
GO
G ON
exec sp_dbopt on N'PT-George
1, N'autoclose' , N'false' GO exec sp_dboption N'PT-George', N'bulkcopy', N'true' GO exec sp_dboption N'PT-George', N'trunc. log', N'true' GO exec sp_dboption N'PT-George', N'torn page detection', N'true' GO exec sp_dboption N'PT-George', N'read only', N'false' GO exec sp_dboption N'PT-George', N'dbo use', N'false' GO exec sp_dboption N'PT-George', N' single', N'false' GO exec sp_dboption N'PT-George', N'autoshrink' , N'false' GO exec sp_dboption N'PT-George', N'ANSI null default', N'false' GO exec sp_dboption N'PT-George', N' recursive triggers', N'false' GO exec sp_dboption N'PT-George', N'ANSI nulls', N'false' GO exec sp_dboption N'PT-George', N'concat null yields null', N'false' GO exec sp_dboption N'PT-George', N'cursor close on commit', N'false
1 GO exec sp_dboption N'PT-George', N'default to local cursor', N'false
1 GO exec sp_dboption N'PT-George', N' quoted identifier', N'false
1 GO exec sp_dboption N'PT-George', N'ANSI warnings', N'false
1 GO exec sp_dboption N'PT-George', N'auto create statistics', N'true' GO
APPENDIX
PT-George. txt exec sp_dboption N'PT-George1, N'auto update statistics', N'true' GO use [PT-George] GO
/****** object: Trigger dbo.lNS_updatePortfolioNumber Script Date: 6/9/2003
10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = ob j ect_i d (N ' [dbo] . [lNS_UpdatePortf ol i oNumber] ' ) and OBJ ECTPR0PERTY(I" d , ' IsTri gger ' ) drop trigger [dbo] . [lNS_updatePortfoli oNumber] GO
/****** object: user Defined Function dbo.fn_GetFundReturnQt Script Date:
6/9/2003 10:42:14 AM ******/ v M if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [fn_GetFundReturπQt] ') and xtype in (N'FN\ N'IF' , N'TF')) drop function [dbo] . [fn_GetFundReturnQt]
GO
/****** object: User Defined Function dbo.fn_GetFundReturnYr Script Date:
6/9/2003 10:42:14 AM ******/ F if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [fn_GetFundReturnYr] ') and xtype in (N'FN1, N'IF', N'TF')) drop function [dbo] . [fn_GetFundReturnYr]
GO
/****** object: User Defined Function dbo.fn_GetFundReturnSpread Script Date:
6/9/2003 10:42:14 AM ******/ μ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [fn_GetFundReturπSpread] ') and xtype in (N'FN', N'IF', N'TF')) drop function [dbo] . [fn_GetFundReturnSpread]
GO
/****** object: Stored Procedure dbo.sp_CheckFundsymbol Script Date: 6/9/2003
10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id - object_id(N' [dbo]. [sp-CheckFundsymbol] ') and OBJECTPROPERTY(id, N'lsProcedure") = 1) drop procedure [dbo] . [sp_CheckFundSymbol]
GO
/****** Object: Stored Procedure dbo.sp_GetANumber Script Date: 6/9/2003
10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id - object_id(N' [dbo] . [sp_GetANumber] ') and OBJECTPROPERTY(id, N'lsProcedure') = 1) drop procedure [dbo] . [sp_GetANumber]
GO
drop procedure [dbo] . [sp_GetFundsReturnQt]
PT-George. txt GO
/****** object: Stored Procedure dbo.sp_GetθrderBook Script Date: 6/9/2003
10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [sp_GetθrderBook] ') and OBJECTPROPERTY(id, N'lsProcedure') = 1) drop procedure [dbo] . [sp_GetθrderBook]
GO pt Date: 6/9/2003
N'lsProcedure') -
/****** object: Stored Procedure dbo.sp_Matchθrders Script Date: 6/9/2003
10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [sp_Matchorders]'t) and OB-iECTPROPERTY(id, N'lsProcedure') = 1) drop procedure [dbo] . [sp_Matchθrders]
GO
/****** object: Stored Procedure dbo.sp_RenameSymbol Script Date: 6/9/2003
10:42:14 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo], [sp_RenameSymbol] ') and OB ECTPROPERTY(id, N'lsProcedure') = 1) drop procedure [dbo] . [sp_RenameSymbol]
GO
/****** object: Stored Procedure dbo. sp_updateBi doffer Script Date: 6/9/2003 10:42:14 AM ******/
PT-George. txt if exists (select * from dbo.sysobjects where id = obj ect_id(N' [dbo]. [sp-UpdateBi doff er]') and 0B:ECTPR0PERTY(id, N'lsProcedure1) = 1) drop procedure [dbo] . [sp_updateBi dof er] GO
/****** object: Stored Procedure dbo.sp_CreateNotebook script Date: 6/9/2003
10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [sp-CreateNotebook] ') and OBJECTPROPERTYζid, N'lsProcedure') - l) drop procedure [dbo] . [sp_createNotebook]
GO
/****** object: Stored procedure dbo.sp_GetstepCount Script Date: 6/9/2003
10:42:14 AM ******/ if exists (select * from dbo.sysobiects where id - object_id(N' [dbo] . [sp-GetStepCount] ') and OBDECTPROPERTY(id, N'lsProcedure') = 1) drop procedure [dbo] . [sp_GetStepCount]
GO
/****** object: Stored Procedure dbo.sp_updateFundSymbol script Date: 6/9/2003
N'lsProcedure') =
/****** object: view dbo.BidOfferCount_View script Date: 6/9/2003 10:42:14 AM ****** if exists (select * from dbo.sysobjects where id - object_id(N' [dbo] . [B doff erCount_View] ') and OB-JECTPROPERTY(id, N'lsView') - 1) drop view [dbo] . [Bi doff ercount_view]
GO
/****** object: View dbo. COMPOSITE Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [COMPOSITE] ') and OBJECTPROPERTY(id, N'lsview') = 1) drop view [dbo] . [COMPOSITE] GO
/****** object: View dbo.ORDERSTATUS_ViEW Script Date: 6/9/2003 10:42:14 AM
******/ if exists (select * from dbo.sysobjects where id = object_id(N'[dbo]. [ORDERSTATUS_viEW]') and OBJECTPROPERTY(id, N'IsView') = 1) drop view [dbo] . [ORDERSTATUS_viEW]
GO
/****** object: view dbo.ORDER_MATCH script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [0RDER_MATCH] ') and oε ECTPRθPERTY(id, N'isview') = 1) drop view [dbo] . [ORDER_MATCH] GO
/****** object: view dbo. Order List Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = obj ect_id(N' [dbo] . [Order List]') and OBJECTPROPERTY(id, N'isview') - 1) drop view [dbo] . [Order List]
GO
/****** object: View dbo. Temp Symbols Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [Temp symbols]') and OB3ECTPROPERTY(id, N'isview') = 1) drop view [dbo] . [Temp Symbols] GO
/****** object: view dbo.V_ORDERS Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [V_ORDERS] ') and OBDECTPROPERTY(id, N'isview') = 1) drop view [dbo] . [V_ORDERS] GO
/****** object: view dbo.BestBid_View Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [BestBid_View] ') and OBDECTPROPERTY(id, N'isview') = 1) drop view [dbo] . [BestBid_View]
GO
/****** object: view dbo.Bestoffer_View Script Date: 6/9/2003 10:42:14 AM
****** if exists (select * from dbo.sysobiects where id = object_id(N' [dbo] .[Bestoffer-View]1) and OB3ECTPROPERTY(id, N'isview') = 1) drop view [dbo] . [BestOffer_View]
GO
/****** object: View dbo.ORDER-MATCHold Script Date: 6/9/2003 10:42:14 AM
****** if exists (select * from dbo.sysobiects where id = object_ d(N' [dbo].[ORDER_MATCHold]1) and OBDECTPROPERTY(id, N'isview') = 1) drop view [dbo] . [ORDER_MATCHold]
GO
/****** object: view dbo. order List old Script Date: 6/9/2003 10:42:14 AM
****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [order List old]') and 0B:ECTPR0PERTY(id, N'isview') = 1) drop view [dbo]. [Order List old]
PT-George. txt GO
/****** object: View dbo.θrders_View Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [θrders_View] ') and OBDECTPROPERTYO'd, N'isview') = 1) drop view [dbo] . [orders_view] GO
/****** object: View dbo.SYMBOLS_viEW script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object id(N' [dbo] . [SYMBOLS-VIEW]') and 0B3ECTPR0PERTY(id, N'isview') = 1) drop vϊew [dbo] . [SYMBOLS_VIEW]
GO
/****** object: Table [dbo] . [Agents] Script Date: 6/9/2003 10:42:1 AM ******/ if exists (select * from dbo.sysobjects where id = obj ect_id(N' [dbo] . [Agents] ') and OBJECTPROPERTY(id, N ' isuserTabl e' ) = 1) drop table [dbo] . [Agents] GO
/****** object: Table [dbo] . [Comments] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo] . [Comments] ') and OBDECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [Comments] GO
/****** object: Table [dbo] . [EMAIL_TAGS] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [EMAIL_TAGS] ') and OB:ECTPROPERTY(id, N'lsuserTable') = 1) drop table [dbo] . [EMAIL_TAGS] GO AM
/****** object: Table [dbo] . [EMAIL_TEMPLATES_OLD] Script Date: 6/9/2003 10:42:14
ΛM ******/
N'lsuserTable') =
/****** object: Table [dbo] . [FundReturns] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [FundReturns] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [FundReturns] GO
/****** object: Table [dbo] . [GE EQUITY] Script Date: 6/9/2003 10:42:14 AM ****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [GE EQUITY] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [GE EQUITY] GO
/****** object: Table [dbo] . [Neworders] Script Date: 6/9/2003 10:42:14 AM ****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [Neworders] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [Neworders]
GO
/****** object: Table [dbo] . [OfferingMaterials] Script Date: 6/9/2003 10:42:14
ΛM ****** if exists (select * from dbo.sysobiects where id = object_id(N' [dbo] . [OfferingMaterials] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [OfferingMaterials]
GO :42:14
') =
/****** object: Table [dbo] . [Trades] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [Trades] ') and OBJECTPROPERTYd'd, N ' IsuserTabl e ' ) - 1) drop table [dbo] . [Trades] GO
/****** object: Table [dbo] . [all funds] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [allfunds] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [allfunds] GO
/****** object: Table [dbo] . [allfundsxx] Script Date: 6/9/2003 10:42:14 AM ******/
PT-George. txt if exists (select * from dbo.sysobjects where id = ob]ect_id(N' [dbo] . [allfundsxxl ') and OBJECTPROPERTYdd, N'lsuserTable') = 1) J drop table [dbo] . [allfundsxx] GO
/****** object: Table [dbo] . [companiesforsale] Script Date: 6/9/2003 10:42:14 AM ****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [companiesforsale] ') and OBJECTPROPERTY d, N'lsuserTable') = 1) drop table [dbo] . [companiesforsale]
GO
/****** object: Table [dbo] . [dbo_industry] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [dbo_industry] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [dbo_industry]
GO
/****** object: Table [dbo] . [fund_ ndustry] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = obj ect_id(N' [dbo]. [fund-industry]') and 0BJECTPR0PERTY(id, N'lsuserTable') = 1) drop table [dbo] . [fund-industry]
GO
/****** object: Table [dbo] . [fund_org_type] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [fund_org_type] ') and OBJECTPROPERTYd'd, N'lsuserTable') - 1) drop table [dbo] . [fund_org_type]
GO
/****** object: Table [dbo] . [fundnews] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N* [dbo] . [fundnewsl ') and OBJECTPROPERTYdd, N'lsuserTable') = 1) J drop table [dbo] . [fundnews]
GO
/****** object: Table [dbo] . [fundnewsheadlines] Script Date: 6/9/2003 10:42-14 AM ******/ if exists (select * from dbo.sysobjects where id - object_id(N' [dbo]. [fundnewsheadlines] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [fundnewsheadlines]
GO
/****** object: Table [dbo] . [fundtypes] Script Date: 6/9/2003 10:42:14 AM
****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [fundtvoesT) and OBJECTPROPERTYdd, N'lsuserTable') = 1) J . uur
.u
t μ-s
j j drop table [dbo] . [fundtypes] GO Script Date: 6/9/2003 10:42:14 AM
if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [indications] ')
PT-George. txt and OBJECTPROPERTY d, N'lsuserTable') « l) drop table [dbo] . [indications] GO
/****** object: Table [dbo] . [industry] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [industry] ') and OBJECTPROPERTYdd, N'lsuserTable') = 1) drop table [dbo] . [industry] GO
/****** object: Table [dbo] . [instruction] script Date: 6/9/2003 10:42:14 AM ****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [instruction!') and OBJECTPROPERTYdd, N'lsuserTable') = 1) n-iuπj J drop table [dbo] . [instruction] GO
/****** object: Table [dbo] . [Ipinvestors] script Date: 6/9/2003 10:42:14 AM ****** if exists (select * from dbo.sysob ects where id = object_id(N' [dbo] . [lpinvestorsT) and OBJECTPROPERTYdd, N'lsuserTable') = 1) J drop table [dbo] . [Ipinvestors]
/****** object: Table [dbo] . [notebook] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [notebook] ') and OBJECTPROPERTYdd, N'lsuserTable') = 1) J J drop table [dbo] . [notebook]
GO 2003
erTable*) =
/****** object: Table [dbo] . [notebook-types] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [notebook-types]1) and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [notebook-types]
GO
/****** object: Table [dbo] . [orders] script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [orders!') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [orders] GO
/****** object: Table [dbo] . [org_type] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [orq tvoeV) and OBJECTPROPERTYdd, N'lsuserTable') = 1) w~ μ J J drop table [dbo] . [org_type]
PT-George. txt GO
/****** object: Table [dbo] . [permissions] Script Date: 6/9/2003 10:42:14 AM ick it itit it j if exists (select * from dbo.sysobjects where id - object_id(N' [dbo] . [permissions]') and OBJECTPROPERTYdd, N'lsuserTable") = l) J L J ^'"".".oπsj J drop table [dbo] . [permissions] GO
/****** object: Table [dbo] , [positions] Script Date: 6/9/2003 10:42:14 AM
•&•&•& it it it / if exists (select * from dbo.sysobjects where id = object_ιd(N' [dbo] . [positions!') and OBJECTPROPERTYdd, N'lsuserTable') = 1) μ J J drop table [dbo] . [positions] GO
/****** object: Table [dbo] . [potential buyers] Script Date: 6/9/2003 10:42:14 AM itit it it it it / if exists (select * from dbo.sysob ects where id = object id(N' [dbo]. [potentialbuyers]') and OBJECTPROPERTYd'd, N'lsuserTable') - 1) drop table [dbo] . [potentialbuyers] J
GO
/****** Object: Table [dbo] . [pπ'vatecompanies] Script Date: 6/9/2003 10:42:14 AM it it it it it it / if exists (select * from dbo.sysobjects where id - object_id(N'[dbo].[pπNatecompanies]') and OBJECTPROPERTYd'd, N'lsuserTable') - 1) drop table [dbo] . [pπvatecompames] J
GO
/****** object: Table [dbo] . [quotes] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [quotes] ') and OBJECTPROPERTYdd, N ' IsuserTable ' ) = 1) H J J drop table [dbo] . [quotes] GO
/****** object: Table [dbo] . [rep] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N" [dbo] . [rep] ') and OBJECTPROPERTYdd, N' IsuserTable ' ) = 1) HJ J drop table [dbo] .[rep] GO
/****** object: Table [dbo] . [symbols] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [symbols] ') and OBJECTPROPERTYdd, N 'IsuserTable') e l) L * J J drop table [dbo] . [symbols]
GO
/****** object: Table [dbo] . [xx] Script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [xx] ') and OBJECTPROPERTYdd, N'lsuserTable ') = 1) L J drop table [dbo] . [xx] GO
/****** object: Table [dbo] . [xxxxx] script Date: 6/9/2003 10:42:14 AM ******/ if exists (select * from dbo.sysobjects where id = obj ect_id(N' [dbo] . [xxxxx] ') and OBJECTPROPERTYdd, N' IsuserTable ') = 1)
J J drop table [dbo] . [xxxxx] GO : 6/9/2003 10:42:08 AM ******/ where loginna e - N'ACWEBPROVCS"'.
N J
:42:08 AM
2:08 AM ******/ /2003 10:42:08 AM ******/ N'lUSR_ACWEBPRθ' and uid < , N'IUSR_ACWEBPRO'
/****** object: DatabaseRole nyppe_users Script Date: 6/9/2003 10:42:08 AM ****** if not exists (select * from dbo.sysusers where name = N'nyppe_users' and uid > 16399)
EXEC sp_addrole N'nyppe_users'
GO
/****** object: User
Script Date: 6/9/2003 10:42:08 AM ******/ exec sp_addrolemember N'db_owner', N'ACWEBPRO\CS'
GO
/****** object: user IUSR_ACWEBPRO Script Date: 6/9/2003 10:42:08 AM ******/ exec sp_addrolemember N'db_owner', N'IUSR_ACWEBPR0'
GO 9/2003 10:42:08 AM ******/
/****** object : Tabl e [dbo] . [Agents] Scri pt Date : 6/9/2003 10 : 42 : 16 AM ******/
CREATE TABLE [dbo] . [Agents] (
"i d] [bi gi nt] IDENTITY (1, 1) NOT NULL ,
[Agent] [varchar] (50) COLLATE SQL_Lati nl_General_CPl_ci_AS NULL ,
[AgentNa e] [varchar] (50) COLLATE SQL-Lati nl_General_CPl_Ci_AS NULL
) ON [PRIMARY]
GO
PT-George. txt [Entered By] [nvarchar] (255) COLLATE SQL_Latinl_General_CP-L.Cl_AS NULL ) ON [PRIMARY] GO
/****** object Table [dbo] . [EMAIL-FOOTERS] Script Date: 6/9/2003 10:42:17 AM ******
CREATE TABLE dbθ] . [EMAIL_FOOTERS] ( s] nt] IDENTITY (1, 1) NOT NULL , FθδτER_TAG] [varchar] (25) COLLATE SQL-Latinl_General-CPl-Cl_AS NOT NULL FOOTER-TEXT] [varchar] (5000) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , .. Enabled] [int] ULL , 'SystemDate] [datetime] NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [EMAIL-HISTORY] Script Date: 6/9/2003 10:42:18 AM ******/
CREATE TABLE dbo] . [EMAIL_HISTORY] ( [Id] int] IDENTITY (1001, 1) NOT NULL , individualid] [int] NOT NULL ,
ToEmail] [varchar] (100) COLLATE SQL_Latιnl_General_CPl_CI_AS NULL , FromEmail] [varchar] (100) COLLATE SQL_Latinl_General_CPl_CΪ_AS NULL , Subject] [varchar] (140) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , "MessageBody[J [varchar] (400) COLLATE SQL_Latinl_General_CPl_CI-AS NULL , Footers] [int] NULL , 'SystemDate] [datetime] NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [EMAIL-TAGS] Script Date: 6/9/2003 10:42:18 AM ******/
CREATE TABLE [dbo EMAIL_TAGS] ( 'FROM-TAG varchar] (25) COLLATE SQL_Latinl_General_CPl_CI_AS NOT NULL , FROM-NAME] [varchar] (140) COLLATE SQL_Latinl_General_CPl-CI_AS NULL , FROM-EMAIL] [varchar] (140) COLLATE SQL_Lati nl_General_CPl_CI_AS NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [EMAIL_TEMPLATES] Script Date: 6/9/2003 10:42:18 AM
CREATE TABLE [dbo] . [EMAIL.TEMPLATES] (
[TemplateTag varchar] (25) COLLATE SQL_Lat nl_General_CPl_CI_AS NOT NULL [Description. [varchar] (150) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
[TemplateSubject] [varchar] (150) COLLATE SQL_Latinl_General_CPl_Cl__AS NULL
' [Te plateBody] [varchar] (5000) COLLATE SQL_Latinl_General_CPl_.c ._AS NULL ,
:FooterTag] [varchar] (25) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , !FromTag] [varchar] (25) COLLATE SQL_Latinl_General_CP-L.CI_AS NULL , 'isHTMLj [bit] NULL , :ExtraEmails] [varchar] (300) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [EMAIL_TEMPLATES_OLD] Script Date: 6/9/2003 10:42:19
AM ******/
CREATE TABLE [dbo] . [EMAIL_TEMPLATES_OLD] (
[TemplateTag] [varchar] (25) COLLATE SQL_Latinl_General_CPl_Cl_AS NOT NULL , 'Description] [varchar] (150) COLLATE SQL-Latinl_General_CPl_Cl_AS NULL , [TemplateSubject] [varchar] (150) COLLATE SQL-Latinl_General_CPl_Cl_AS NULL
TemplateBody] [varchar] (5000) COLLATE SQL_Latinl_General_CPl-Cl_AS NULL , FooterTag] [varchar] (25) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , FromTag] [varchar] (25) COLLATE SQL-Latinl_General_CP3_Cl_AS NULL ,
PT-George. txt
'ISHTML] [bit] NULL ,
ΕxtraEmails] [varchar] (300) COLLATE SQL_Latinl_General_CP-L.CI.-AS NULL ) ON [PRIMARY] GO
/****** object: Table [dbo]. [FundReturns] Script Date: 6/9/2003 10:42:19 AM ******
CREATE TABLE [dbθ[ .[FundReturns] ( [ID] .[int[ IDENTITY (1, 1) NOT NULL , [FuήdNa e] [varchar] (255) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL Symbol] [varchar] (25) COLLATE SQL_Latinl_Geπeral_CPl_CI_AS NULL , individualid] [bigint] NULL , [Return] [float] NULL , "Date] [datetime] NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [GetANumber] Script Date: 6/9/2003 10:42:19 AM ******
CREATE TABLE [dbo] . [GetANumber] (
[IdName] [varchar] (50) COLLATE SQL_Lat nl_General_CPl_CI_AS NOT NULL , [Idvalue] [int] ULL
) ON [PRIMARY] GO
[RelationshipManager] [varchar] (50) COLLATE SQL_Latiπl_General_CPl_Cl_AS
NULL comments] [varchar] (250) COLLATE SQL-Latinl_General_CPl_ci_AS NULL , OrderXRef] [int] NULL , OrderTicketSigned] [bit] NULL ,
PT-George, t t "OrderPlaceAGSigned] [bit] NULL , [orderoffDocstwocos] [bit] NULL , "fundgppermission] [bit] NULL , [fundcppermiεsionverbal] [bit] NULL , "pipeline] [bit] NULL , 'featured] [bit] NULL , "feepct] [money] NULL , "feeunfunded] [money] NULL
) ON [PRIMARY] GO 0:42:19
/****** object; Table [dbo], [STATUS-DESCRIPTIONS] Script Date: 6/9/2003 10:42:20 AM ***** "* V/
CREATE TABLE [dbo' , [STATUS-DESCRIPTIONS] (
[id] [int! NOT NULL .
[StatusDescription] [varchar] (80) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
) ON [PRIMARY] GO
/***** * object Table [dbo] . [allfundsxx] Script Date: 6/9/2003 10:42:20 AM ******
CREATE TABLE [dbo]. [a lfundsxx] ( "sponsor_id] int] NOT NULL , :sponsor_name; "varchar] (50J COLLATE SQL_Lat nl_General_CPl_CI_AS NULL , :sponsor-desc, 'ntext] COLLATE SQL_Latinl_General-CPl_ci_AS NULL , :sponsor_type, 'nvarchar] (50) COLLATE SQL_Latin--_General_CPl_Cl_AS NULL , :i nit-bid] [f oat] NULL , ' nit-offer] "float] NULL , address_l] [nvarchar] (255) COLLATE SQL_Lat nl_General_CPl_C _AS NULL , !address_2] [nvarchar] (50) COLLATE SQL_Latinl_General-CPl_CI_AS NULL , =city] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , =state] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , :zip] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , "country] [nvarchar] (50) COLLATE SQL_Latinl_General-CPl_Cl_AS NULL , phone] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl-CI_AS NULL , :fax] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , "email] [nvarchar] (100) COLLATE SQL_Latinl_General-CPl_Cl_AS NULL , url] [nvarchar] (100) COLLATE SQL-Latinl_General_CPl_ci_AS ULL , contact-name] [nvarchar] (50) COLLATE SQL-Latinl_General_CPl_Cl_AS NULL , contact-title] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , contact-email] [nvarchar] (50) COLLATE SQL_Latinl_General_CP _CI_AS NULL , year-founded] [int] NULL , Lmanaged_capital] [money] NULL ,
"currency] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , no_employees] [int] NULL , associations] [nvarchar] (255) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , investment_criteria] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS
NULL
[miπ_size] [money] NULL , [max_size] [money] NULL ,
PT-George. txt [search-criteria] [nvarchar] (250) COLLATE SQL_Latιnl_General_CPl_Cl_AS NULL
/****** object: Table [dbo]. [companiesforsale] Script Date: 6/9/2003 10:42:20 AM ******
CREATE TABLE [dbo] [companiesforsale] (
[i 1d)]J [ Lint] NOT NULL , ordernu ber] [int] NULL , order! etter] [nvarchar] (2) COLLATE SQL_Latιnl_General_CPl_CI-AS NULL , sellername] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , Vomoanysymbol] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , [companysharetype] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL strikeprice] [float] NULL , shares] [float] NULL
:pricepershare] [float] NULL , !ourcha5edate] [smalldateti e] NULL
[recentvaluation] [float] NULL
'asofdate] [smalldatetime] NULL , bsignedorderticket] [bit] NOT NULL ,
Fsignedplaceag] [bit] NOT NULL ,
"of eringdocs] [bit] NOT NULL ,
=issuerpermission] [bit] NOT NULL ,
?fee] [float] NULL , fco panyxref] [nvarchar] (50) COLLATE SQL_Latιnl_General_CPl_CI_AS NULL
) ON [PRIMARY] GO ****** object Table [dbo].[dbo_industry] Script Date: 6/9/2003 10:42:21 AM
CREATE TABLE [dbo] . [dbo_industry]_ (,
["industry] [nvarchar] (255) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , 'Description] [nvarchar] (255) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [fund-industry] script Date: 6/9/2003 10:42:21 AM
******/
ΓRFATE TABLE Tdbo] . [fund-industry] ( rsvmbol] [varchar] (255) COLLATE SQL_Latinl_General-CPl_CI_AS NULL , 'Name] [varchar] (255) COLLATE SQL_Lat nl_General_CP _CI_AS NULL , 'industry] [varchar] (255) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
) ON [PRIMARY]
GO ****** object: Table [dbo].[fund_org_type] Script Date: 6/9/2003 10:42:21 AM ******
CREATE' TABLE [dbo! [. [fund-org type] (
[Symbol] [varchar] (255) COLLATE SQL_Latιnl_General_CPl_CI_AS NULL , 'Name] [varchar] (255) COLLATE SQL_Latinl_General_cpl_ci_AS NULL , Org_type] [varchar] (255) COLLATE SQL_Latinl_General-CP_-Cl_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [fundholdings] Script Date: 6/9/2003 10:42:21 AM
PT-George. txt ******/
CREATE TABLE [dbo] . [fundholdings] (
'id] [int] NOT NULL ,
[fundsy bol] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ,
[companyname] [nvarchar] (50) COLLATE SQL_Lat nl_General_CPl_ci._AS NULL ,
[companycoinvestors] [nvarchar] (255) COLLATE SQL_Latinl_General-CPl_CI_AS
NULL
[companydescription] [ntext] COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ,
'investment] [float] NULL ,
'currentvalue] [float] NULL ,
[companyxref] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS ULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO
/****** object: Table [dbo] . [fundnewsheadlines] Script Date: 6/9/2003 10:42:21 ^ ******/
CREATE TABLE 'dbo] . [fundnewsheadlines] (
[S] varchar] (255) COLLATE SQL_Latinl .General- .'CP1_CI_AS NULL ,
Fund [varchar] (255) COLLATE SQL-Latiϋ: l_Genera ,l_CPl_CI_AS NULL , Head ineTi e] [varchar] (255) COLLATE QL_Latiπ l-General_CPl_CI-AS NULL Head ines] [varchar] (255) COLLATE SQL ..__LLatinl_G eneral_CPl_Cl_AS NULL , updated] [varchar] (255) COLLATE SQL_Latinl_Gen eral_CPl_c -AS NULL ,
[sym 'bo ■l,,- Narchar] (255) COLLATE SQL_Lat nl_Gene ral_CPl_CI_AS NULL , "source! varchar] (255) COLLATE SQL_Latinl_Gene ral_CPl_CI_AS NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [fundtypes] Script Date: 6/9/2003 10:42:21 AM ******
CREATE TABLE [dbo] . [fundtypes] (
[Type] [nvarchar] (50) COLLATE SQL-Latinl_General-CPl_Cl_AS NULL , [Description] [nvarchar] (100) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
) ON [PRIMARY]
GO
/****** object Table [dbo] . [indications] script Date: 6/9/2003 10:42:21 ******/ AM
CREATE TABLE [dbθ[ [indications] ( [id], [int; . IDENTITY (1000, 1) NOT NULL , Symbol] [varchar] (25) COLLATE SQL_Latinl_General_CPl_Cl_AS NOT NULL , undna e] [varchar] (80) COLLATE SQL-Latinl_General-CPl_CI_AS NULL , 'sponsor-id] [int] ULL , 'amount] [money] ULL , 'userid] [int] NOT NULL ,
"comments] [varchar] (250) COLLATE SQL_Latinl_General_CP__ci_AS NULL , syste date] [datetime] NULL , status] [int] NULL , [withdrawn] [bit] NULL , withdrawndate] [datetime] NULL ,
. e beraction] [varchar] (25) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
) ON [PRIMARY] GO
PT-George. txt
/****** object: Table [dbo]_. [industry] Script Date: 6/9/2003 10:42:22 AM ******/
CREATE TABLE [dbo] industry] ' [industry] varchar] (255) COLLATE SQL_Latinl_General_CPl_ci_AS NULL [Description] [varchar] (255) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [instruction] Script Date: 6/9/2003 10:42:22 AM ******
CREATE TABLE [dbo] . [instruction] (
"id] [bigint] IDENTITY (1, 1) NOT NULL ,
'orderldj [bigint] NULL ,
"entryDate] [datetime] NULL ,
'agentid] [bigint] ULL ,
Comment] [varchar] (1024) COLLATE SQL_Latinl_General_CPl_CI_AS NULL ,
'enteredBy] [bigint] NULL ) ON [PRIMARY] GO script Date: 6/9/2003 10:42:22 AM
SQL_Latinl_General_CPl_CI_AS NULL SQL_Latinl_General_CPl-CI-AS NULL
/****** object: Table [dbo] . [notebook] Script Date: 6/9/2003 10:42:22 AM ******/ CREATE TABLE [dbo] . [notebook] (
Order_πum] [int] NOT NULL ,
'note_type] [int] NULL ,
'notebook_row_id] [int] NULL ,
'checked] [int] NULL ,
:id] [int] IDENTITY (l, l) OT NULL
) ON [PRIMARY] GO
PT-George. txt sort_order] [int] NULL prefix] [char, (256) COLLATE SQL-Lat nl_General_CPl_CI_AS NULL ,
. s-u-ffix] - [ ~ch ra ,r- . (256) COLLATE SQL_Latinl_General_CPl-CI_AS NULL ,
[pre_text] [char] (256) COLLATE SQL_Lat nl_General-CPl_ci_AS NULL ,
[text] [char (256) COLLATE SQL_Latinl_General-CPl_Cl_AS NULL ,
[checkbox] [int] NULL ,
"check_type] [int] NULL ,
[url] [char] (256) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ,
[id] [int] IDENTITY (1, 1) NOT NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [notebook_types] Script Date: 6/9/2003 10:42:23 AM ******/
CREATE TABLE [dbo] . [notebook-types] (
[note_type] [int] IDENTITY (4, 1) NOT NULL ,
[note-description] [char] (256) COLLATE SQL_Latinl_General CP- CI_AS NULL ) ON [PRIMARY] GO
[RelationshipManager] [varchar] (50) COLLATE SQL_Latinl_General_CPl_ci_AS
NULL comments] [varchar] (250) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , sellxref] [int] NULL , sellorderticketsigned] [bit] NULL , sellplaceagsigned] [bit] NULL , selloffdocs] [bit] NULL , [selloffdocsquarterly] [bit] NULL , "selloffdocstwocos] [bit] NULL fundgpper ission] [bit] NULL , fundgppermissionverbal] [bit] NULL "pipeline] [bit] NULL , feepct] [float] NULL , feeunfuπded] [smallint] NULL , featured] [bit] NULL , auctionid] [int] NULL , [accountid] [int] NULL , "status] [int] NULL , PR CE-TBD] [int] NOT NULL , outstπg_cap_call] [money] NULL , Ipfirstbuyright] [varchar] (50) COLLATE SQL_Lat nl_General_CPl_ci_AS NULL
PT-George. txt [capital callduedate] [datetime] NULL ) ON [PRIMARY] GO
******* Object: Table [dbo] . [org_type] Script Date: 6/9/2003 10:42:23 AM ******/
CRFATE TABLE [dbo] . [org_type] ( rorα type] [varchar] (255) COLLATE SQL_Latιnl_General_CPl_Cl_AS NULL , [description] [varchar] (255) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [permissions] Script Date: 6/9/2003 10:42:23 AM
******
CREATE TABLE [dbo] . [permissions] (
[orders] [int] NULL ,
[symbol] [varchar] (25) COLLATE SQL_Latinl_General_CPl_CI_AS NULL ,
"users] [int] NULL ,
;RequestDate] [datetime] NULL ,
[GrantedDate] [datetime] NULL , fvalidUntilDate] [datetime] NULL ,
Granted] [bit] NULL
GrantedBy] [int] NULL Comments] [varchar] (255) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
'permissionld] [int] IDENTITY (1, 1) NOT NULL ) ON [PRIMARY] GO
/****** object Table [dbo], [positions] Script Date: 6/9/2003 10:42:23 AM ******/
CREATE TABLE [dbo] . [positions] (
[id] [l'nt]_IDENTITY (87, 1) NOT NULL orderid] [int, NULL ,
OrderNumber] int] NULL ,
OrderLetter] .nvarchar] (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , orderDateReceived] [datetime] NULL , fτι'cketτype] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ,
MemberNumber] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL ,
MemberAction] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ,
Symbol] [varchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ,
Amount] [money] NULL , sellersnav] [money] NULL ,
UnfundedAmount] [money] NULL , price] [money] NULL ,
.ScheduledDate] [datetime] NULL , .
'TransactionType] [varchar] (50) COLLATE SQL_Latιnl_General_CPl_Cl_AS NULL , 'scheduleddosingDate] [datetime] NULL , minimumnavpct] [money] NULL _, 'initialofferingDate] [datetime] NULL , 'sellersAcquisitionoate] [datetime] NULL ,
PlacementManager] [varchar] (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
[RelationshipManager] [varchar] (50) COLLATE SQL_Latin- General_CPl_.Cl_AS
NULL
[comments] [varchar] (250) COLLATE SQL-Latinl_General-CPl-CI_AS NULL ,
'sellxref] [int] NULL ,
'sellorderticketsigned] [bit] ULL ,
'sellplaceagsignedj [bit] NULL ,
'selloffdocs] [bit] NULL ,
'selloffdocsquarterly] [bit] NULL ,
'sell off docstwocos] [bit] NULL ,
'fundgppermission] [bit] NULL ,
'fundqpper issionverbal] [bit] NULL ,
[pipeline] [bit] NULL ,
PT-George. txt
[feepct] [float] NULL ,
'feeunfunded] [small int] NULL ,
'featured] [bit] NULL ,
'auctionid] [int] NULL ,
'accountid] [int] NULL ,
[status] [int] NULL ,
'systemDate] [datetime] NULL ) ON [PRIMARY] GO ****** object: Table [dbo] . [potentialbuyers] Script Date: 6/9/2003 10:42:24 AM
******
CREATE TABLE [dbo] . [potential buyers] ( [id] [int] NOT NULL ,
'Name] [nvarchar] (50) COLLATE SQL-Latinl_General_CPl_CI_AS NULL , 'Mini umAmount] [float] NULL ,
'targetamount] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , 'securitytypes] [nvarchar] (150) COLLATE SQL_Latin- General_cPl_CI_AS NULL , [presentationfields] [nvarchar] (50) COLLATE SQL_Lat nl_General_CPl_CI_AS
' [findersfee] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , 'comments] [nvarchar] (50) COLLATE SQL-Latinl_General_CPl__CI_AS NULL
) ON [PRIMARY] GO ****** object: Table [dbo] . [privatecompanies] Script Date: 6/9/2003 10:42:24 AM ******/
CREATE TABLE 'dbo] . [privatecompanies] ( [S] "varchar] (255) COLLATE SQL_Latinl_General_CPl_ci_AS NULL ,
_name_ varchar] (255) COLLATE SQL_Lat nl_General_CPl_ci_AS NULL ,
'symbol 'varchar] (255) COLLATE SQL_Lat nl_General_CPl_CI_AS NULL ,
"sector. 'varchar] (255) COLLATE SQL_Latinl_General_CPl_Cl-AS NULL , address] [varchar] (255) COLLATE SQL-Latinl_General-CPl_Ci_AS NULL , 'city] [varchar] (255) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , "state] [varchar] (255) COLLATE SQL_Latinl_General-CPl_CI_AS NULL , zip] [varchar] (255) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , phone] [varchar] (255) COLLATE SQL_Latiπl_General_CPl_CI_AS NULL , fax] [varchar] (255) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL , website] [varchar] (255) COLLATE SQL-Latinl_General-CPl_Cl_AS NULL , description] [varchar] (255) COLLATE SQL-Lat nl_General_CPl_ci_AS NULL , :CEO] [varchar] (255) COLLATE SQL_Latinl_General_CPl-Cl_AS NULL , 'cEOemail] [varchar] (255) COLLATE SQL-Latι'nl_General_CPl_ci_AS NULL , 'employees] [varchar] (255) COLLATE SQL_Latinl_General-CPl_CI_AS NULL , "revenues] [varchar] (255) COLLATE SQL-Latinl-General_CPl_CI_AS NULL , revenueyear] [varchar] (255) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , xref] [varchar] (255) COLLATE SQL_Latiπl_General_CPl_CI_AS NULL , hoovers] [varchar] (255) COLLATE SQL_Latι'nl_General-CPl_Cl_AS NULL , headlineupdated] [varchar] (255) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
'head! in e] [varcha r] (255) COLLATE SQL_Lat nl_Ge neral_CPl_Cl_AS NULL ,
'headlin eαate] [va rchar] (255) COLLATE SQL_Latin l_Genera"l_CPl_Cl-AS ULL ,
'headlin esource] [ varchar] (255) COLLATE SQL_Lat inl_General_CPl_CI-AS NULL
!Col024] [varchar" (255) COLLATE SQL_Lati nl_Gene ral_CPl_CI_AS NULL
CO1025" [varchar (255) COLLATE SQL_Lat nl_Gene ral_CPl_CI_AS NULL
:Col026] varchar^ (255) COLLATE SQL_Lati nl_Gene ral_cPl_cι_ΛS NULL
Col 027" varchar; (255) COLLATE SQL_Latinl_Gene ral_CPl_CI_AS ULL
CO1028 varchar; (255) COLLATE SQL_Latinl_Gene ral-CPl_CI_AS NULL
CO1029 varchar (255) COLLATE SQL_Latinl_Gene ral-CPl_CI_AS NULL
Col 030] varchar, (255) COLLATE SQL_Latinl_General_cPl_ci-AS NULL
CO1031" Varchar! (255) COLLATE SQL_Lat nl_General_cPl_cι_AS NULL
Col032[ "varchar[ (255) COLLATE SQL_Lati nl_General-CPl_cl_AS NULL
CO1033] varchar] (255) COLLATE SQL_Latι'nl_General-CPl_CI_AS NULL
CO1034] varchar] (255) COLLATE SQL_Latinl_General_cpl_ci_AS NULL
PT-George, .txt
"C01035 [varchar] (255) COLLATE SQL- Latinl_General_ .CP1_CI_AS NULL =Col036 archar" (255) COLLATE SQL_ Latin-LGeneral..CP1_CI_AS NULL =Col037: varchar (255) COLLATE SQL_ Latinl_General.-CP1_CI_AS NULL [Col038, varchar (255) COLLATE SQL Latinl-General..CPl_CI_AS NULL "Col 039 varchar (255) COLLATE SQL_ Latinl-General..CP1_CI-AS NULL =Cθl040 varchar (255) COLLATE SQL Latinl_General..CP1-CI_AS NULL =Col041 varchar (255) COLLATE SQL- Latinl_General.-CPl-CI-AS NULL "Col042 varchar, (255) COLLATE SQL Latinl_General..CPl_CI_AS NULL ' [Col 043 varchar, (255) COLLATE SQL Latin-LGeneral..CP1_CI_AS NULL [Col 044 varchar (255) COLLATE SQL Latinl-General..CP1_CI_AS NULL rco!045, varchar' (255) COLLATE SQL Latinl_General..CPλ_CI_AS NULL
) ON [PRIMARY] GO
/****** Object: Table [dbo] . [quotes] Script Date: 6/9/2003 10:42:24 AM ******/ CREATE TABLE [dbo] . [quotes] (
[symbol] [varchar] (25) COLLATE SQL_Latinl_General_CPl_ci_AS NOT iastPπce] [float] NULL , NULL
.Change] [float] NULL , [SystemDate] [datetime] ULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [symbols] Script Date: 6/9/2003 10:42:24 AM ******/
CREATE TABLE [dbo] . [symbols] (
[Symbol] [varchar] (50) COLLATE SQL_Latin_General_CPl_ci_AS NOT NULL .FundlssuerName] [varchar] (100) COLLATE SQL_Latinl_General CPl_ci_AS NULL .FundType] [nvarchar] (50) COLLATE SQL_Latinl_General-CPl_cϊ_AS NULL . .FundStructure] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_c _AS NULL :generalpartner] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_ci_AS NULL' :Comment] [nvarchar] (255) COLLATE SQL_Latinl_General-CPl_ci_AS NULL ,
=FundVintageYear] [int] NULL ,
'FundTotalCommitment] [float] NULL ,
'FundCumDists] [float] NULL ,
'FundDrawDown] [float] NULL ,
'FundAsof] [datetime] NULL ,
[address] [nvarchar] (100) COLLATE SQL_Latinl_General-CPl_Cl_AS NULL ,
.city] [nvarchar] (50) COLLATE SQL_Lat nl_General_CPl_ci_AS NULL ,
.state] [nvarchar] (20) COLLATE SQL-Latinl_General_CPl_ci_AS NULL ,
[zip] [nvarchar] (15) COLLATE SQL_Latinl_General_CPl_ci_AS NULL ,
rphone] [nvarchar] (50) COLLATE SQL_Latinl_General_cpi_ci_AS NULL. , fax nvarchar] (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , u
Mr,l .j .nvarchar] (50) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , auditor] [nvarchar] (50) COLLATE SQL_Latinl_General-CP-L_Cl_AS NULL description] [ntext] COLLATE SQL_Lat nl_General_cpl_ci_AS NULL , offlname] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL pffldesc! [nvarchar (255) COLLATE SQL_Latinl_General-CPl_CI_AS NULL off2name[
"nvarchar (50) COLLATE SQL-Latiπl-General-CPl_Cl-AS NULL , pff2desc! nvarchar (255) COLLATE SQL_Latinl_General_CPl_ci_AS NULL Off3name! ..nvarchar, (50) COLLATE SQL_Latinl_General-CPl-CI-AS NULL , [off3desc[ [nvarchar (255) COLLATE SQL-Latinl-General_CPl_ci_AS NULL off4name] [nvarchar[, (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , ooffft44dαeesscc]j L nnvvaarrcchnaarr]j ( C225555)) C COOLLLLAATTEE SSQQLL_-LLaattiinnll__GGeenneerraall__CCPPll__cCil__AASS NNUULLL. o fSname] [nvarchar] (50) COLLATE SQL_Latinl_General-CPl_ci_AS NULL
Ob ect : Tabl e [db o] . [xx] Scri pt Date : 6/9/2003 10: 42 : 25 AM ******/
CREATE TABLE [db o] . [xx] ( Col OOl" .varchar (8000) COLLATE SQL, Lati nl-General. .CP1_CI_AS NULL Col 002 [varchar^ (8000) COLLATE SQL, Lati nl-General..CP1_CI_AS NULL Col 003 [varchar] (8000) COLLATE SQL. Lati nl_General..CP1_CI-AS NULL Col 004 [varchar (8000) COLLATE SQL. Lati nl-General..CPl_CI-AS NULL Col OOS [varchar (8000) COLLATE SQL. Lati nl_General..CP1-CI_AS NULL
[Col 006 [varchar (8000) COLLATE SQL. Lati nl_General..CP1_CI_AS NULL Col 007] varchar, (S000) COLLATE SQL Lati nl-General..CP1-CI_AS NULL CO1008" varchar (8000) COLLATE SQL, Lati nl-General..CP-L_CI_AS NULL Col 009] varchar[ (8000) COLLATE QL_Lati πl_General..CP1_CI_AS NULL Col 010" _va rchar] (8000) COLLATE SQL. Lati n_L_General..CP1_CI_AS NULL Col Oll] [varchar] (8000) COLLATE SQL, Lati nl-General..CP1_CI_AS NULL
) ON [PRIMARY] GO * >*
ALTER TABLE [dbθ] . [EMAIL-FOOTERS] WITH NOCHECK ADD
CONSTRAINT [PK_EMAIL_FOOTERS] PRIMARY KEY CLUSTERED
C [ID]
) WITH FILLFACTOR - 90 ON [PRIMARY]
GO
ALTER TABLE [dbo] . [EMAIL_HISTORY] WITH NOCHECK ADD
CONSTRAINT [PK_EMAIL-HISTORY] PRIMARY KEY CLUSTERED
( [Id]
) WITH FILLFACTOR - 90 ON [PRIMARY]
GO
ALTER TABLE [dbo] . [EMAIL_TAGS] WITH NOCHECK ADD
CONSTRAINT [PK_EMAIL_TAGS] PRIMARY KEY CLUSTERED
[F ROM_TAG] ) WITH FILLFACTOR - 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [EMAIL_TEMPLATES_OLD] WITH NOCHECK ADD
PT-George . txt CONSTRAINT [PK-EMAIL.TEMPLATES] PRIMARY KEY CLUSTERED
[Templ ateTag] ) WITH FILLFACTOR = 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [FundRetu rns] WITH NOCHECK ADD
CONSTRAINT [PK-FundReturns] PRIMARY KEY CLUSTERED
C [ID]
) WITH FILLFACTOR = 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [GetANumber] WITH NOCHECK ADD
CONSTRAINT [PK_GetANumber] PRIMARY KEY CLUSTERED
[idName]
) WITH FILLFACTOR = 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [Neworders] ITH NOCHECK ADD
CONSTRAINT [PK_NewOrders] PRIMARY KEY CLUSTERED
C [S]
) WITH FILLFACTOR = 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [STATUS-DESCRIPTIONS] WITH NOCHECK ADD
CONSTRAINT [PK_STATUS_DESCRI PTIONS] PRIMARY KEY CLUSTERED
C [i d]
) WITH FILLFACTOR - 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [Trades] WITH NOCHECK ADD
CONSTRAINT [PK_Trades] PRIMARY KEY CLUSTERED
C [id]
) WITH FILLFACTOR = 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [ πdi cati ons] WITH NOCH ECK ADD
CONSTRAI NT [PK_i ndi cati ons] PRIMARY EY CLUSTERED
C [i d]
) WITH FILLFACTOR = 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [notebook] WITH NOCHECK ADD
CONSTRAINT [PK_notebook] PRIMARY KEY CLUSTERED
C [i d]
) WITH FILLFACTOR = 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [notebook-types] ITH NOCHECK ADD
CONSTRAINT [PK_notebθθk_types] PRIMARY KEY CLUSTERED
[note_type] ) WITH FILLFACTOR = 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [orders] WITH NOCHECK ADD
PT-George . txt CONSTRAINT [PK_orders] PRIMARY KEY CLUSTERED
C [i d]
) WITH FILLFACTOR = 90 ON [PRIMARY]
GO
ALTER TABLE [dbo] . [permi SSi ons] WITH NOCHECK ADD
CONSTRAINT [PK_permissions] PRIMARY EY CLUSTERED
[permi ssionld] ) WITH FILLFACTOR = 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [quotes] WITH NOCHECK ADD
CONSTRAINT [PK_quotes] PRIMARY KEY CLUSTERED
[symbol]
) WITH FILLFACTOR = 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [symbol S] WITH NOCHECK ADD
CONSTRAINT [PK_symbθls] PRIMARY KEY CLUSTERED
[Symbol]
) WITH FILLFACTOR = 90 ON [PRIMARY] GO
CREATE CLUSTERED INDEX [i dx_al l funds] ON [dbo] . [al l fundsxx] ( [symbol ] ) WITH
FILLFACTOR - 90 ON [PRIMARY] GO
ALTER TABLE [dbo] . [EMAIL-FOOTERS] WITH NOCHECK ADD
CONSTRAINT [DF_EMAIL_FOOTERS_Enabl ed] DEFAULT (1) FOR [Enabled],
CONSTRAINT [DF_EMAiL_FOOTERS_SystemDate] DEFAULT (getdateO) FOR [systemDate]
GO
ALTER TABLE [dbo] . [EMAIL-HISTORY] WITH NOCHECK ADD
CONSTRAINT [DF-EMAlL_HlSTORY_systemDate] DEFAULT (getdateO) FOR [SystemDate]
GO
ALTER TABLE [dbo] . [EMAIL_TEMPLATES_OLD] WITH NOCHECK ADD
CONSTRAINT [DF_EMAIL_TEMPLATES_FOOterTag] DEFAULT ('default') FOR
[FooterTag],
CONSTRAINT DF-EMAlL_TEMPLATES-FromTaq] DEFAULT ( ' defaul t ' ) FOR [FromTag] , CONSTRAINT DF-EMAIL-TEMPLATES-ISHTML] DEFAULT (0) FOR [iSHTML] GO
ALTER TABLE [dbo] . [NewOrders] WITH NOCHECK ADD
CONSTRAINT [DF_NewOraers_OrderTi ketsi gned] DEFAULT (0) FOR [orderTi cketSi gned] GO
ALTER TABLE [dbo] . [Trades] WITH NOCHECK ADD
CONSTRAINT [DF-Trades_TradeDate] DEFAULT (getdate O) FOR [TradeDate] , CONSTRAINT [DF-Trades_settl ed] DE FAULT (0) FOR [Settl ed]
GO
ALTER TABLE [dbo] . [i ndi cati ons] WITH NOCHECK ADD
CONSTRAINT DF-i ndi cati ons_systemdate] DEFAULT (getdateO ) FOR [systemdate] CONSTRAINT DF-i ndi cati ons-Status] DEFAULT (0) FOR [status] , CONSTRAINT DF-i ndi cati ons_wi thdrawn] DE FAULT (0) FOR [wi thdrawn]
PT-George . txt GO
ALTER TABLE [dbo] . [notebook] WITH NOCHECK ADD
CONSTRAINT [DF_notebook_checked] DEFAULT (0) FOR [checked] GO
ALTER TABLE [dbo] . [o rders] WITH NOCHECK ADD
CONSTRAINT [DF_orders_OrderNumber] DEFAULT (©©i denti ty) FOR [OrderNumber] , CONSTRAINT rDF_orders_θrderDateRecei ved] DEFAULT (getdate O ) FOR [orde rDateRecei ved]
CONSTRAINT DF_orders_pi pel i ne] DEFAULT (1) FOR [pi pel i ne] , CONSTRAINT [DF_orders_featured" DEFAULT (0) FOR [featured] , CONSTRAINT DF_orders_status] DEFAULT (0) FOR [status] , CONSTRAINT DF_orderS_PRICE_TBD] DEFAULT (0) FOR [PRICE_TBD] GO
ALTER TABLE [dbo] . [per issi oπs] WITH NOCHECK ADD
CONSTRAINT [DF_Perm ssions_Permi ttedDate] DEFAULT (getdateO) FOR [RequestDate] ,
CONSTRAINT [DF-permi ssi onS-Graπted] DEFAULT (0) FOR [Granted] GO
ALTER TABLE [dbo] . [positions] WITH NOCHECK ADD
CONSTRAINT [DF_posi tioπs_systemDate] DEFAULT (getdateO) FOR [systemDate] GO
ALTER TABLE [dbo] . [quotes] WITH NOCHECK ADD
CONSTRAINT [DF_quotes_SystemDate] DEFAULT (getdateO) FOR [SystemDate]
GO
CREATE INDEX [IX_notebook] ON [dbo] . [notebook] ( [order_num] , [note_type] ) WITH
FILLFACTOR - 90 ON [PRIMARY] GO
CREATE INDEX [lX_symbol s] ON [dbo] . [symbol s] ( [FundlssuerName] ) WITH FILLFACTOR -
90 ON [PRIMARY] GO
GRANT UPDATE ON [dbo] . [EMAIL_FOOTERS] TO [publ i c] GO
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [EMAIL_FOOTERS] TO
[nyppe_users]
GO
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [EMAIL-HISTORY] TO
[nyppe_users] GO
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [EMAIL-TAGS] TO [nyppe_users] GO
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [EMAIL_TEMP LATES_OLD] TO
[nyppe_users]
GO
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [allfundsxx] TO [public] GO
GRANT REFERENCES , SELECT , UPDATE , INSERT , DELETE ON [dbo] . [allfundsxx] TO
[nyppe_users]
GO
PT-George. txt GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [notebook] TO [nyppe_users]
GO
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [notebook_definitions] TO
[nyppe_users]
GO
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [notebθθk_types] TO
[nyppe_users]
GO
GRANT SELECT , UFDATE ON [dbo] . [orders] TO [nyppe_users] GO
GRANT SELECT , UPDATE ON [dbo] . [permi ssions] TO [nyppe_users] GO
GRANT SELECT , UPDATE ON [dbo] . [positi ons] TO [nyppe_users] GO
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [symbol s] TO [nyppe_users] GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
/****** object: View dbo.BestB d_view Script Date: 6/9/2003 10:42:25 AM ******/ ****** object: View dbo.BestBid_view Script Date: 8/28/2002 3:19:02 PM *****
SELECT Symbol, Amount AS BestBidCMTAmount, minimumnavpct AS BestBidPrice
FROM dbo. orders
WHERE (MemberActioπ - 'Buy')
AND (minimumnavpct =
(SELECT MAX(minimumnavpct) FROM orders orders- WHERE orders. ymbol = orders2.symbol AND orders2.MemberAction - 'Buy'))
*/
CREATE VIEW dbo . BestBi d_vi ew
AS , n . , . . . , .
SELECT Symbol, Amount AS BestBidCMTAmount, minimumnavpct AS BestBidPrice FROM dbo. orders Ol WHERE (id =
(SELECT TOP 1 Id
FROM Orders 02
WHERE 02. Symbol = ol. Symbol AND 02.MemberAction -
'Buy' AND Status IN (0, 2)
ORDER BY 02.MinimumNavPCT DESC))
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON GO
PT-George. txt
SET ANSI-NULLS ON GO
/****** object : Vi ew dbo . Bestoffer_vi ew Scri pt Date : 6/9/2003 10: 42 : 25 AM ****** /
/****** obj ect: Vi ew dbo . Bestoffer_Vi ew Scri pt Date : 8/28/2002 3 : 42 : 01 PM *****
SELECT TOP 100 PERCENT Symbol , Amount AS BestOfferCMTAmount , mi nimumnavpct AS
BestOfferPri ce
FROM dbo. orders
WHERE (MemberAction = 'Sell') AND (minimumnavpct =
(SELECT MIN(minimumnavpct) FROM orders orders2 WHERE orders. symbol = orders2. symbol AND
MemberAction = 'Sell'))
ORDER BY Symbol
*/
CREATE VIEW dbo. BestOffer_View
AS
SELECT Symbol, Amount AS BestOfferCMTAmount, minimumnavpct AS BestOfferPrice
FROM dbo. orders Ol HERE (id -
(SELECT TOP 1 Id
FROM Orders 02
WHERE 02. Symbol = 01. Symbol AND 02. MemberAction -
'SELL' AND Status IN (0, 2)
ORDER BY 02.MinimumNavPCT ASC))
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON GO
/****** object: View dbo.ORDER-MATCHold Script Date: 6/9/2003 10:42:25 AM ******
CREATE VIEW dbθ.ORDER_MATCH
AS
SELECT dbo. orders. id, dbo. orders. OrderNumber, dbo. orders. orderLetter, dbo.orders.MemberNumber, dbo. orders .MemberAction, dbo . symbol s . FundlssuerName , dbo. Bestoffer_View. BestOfferCMTAmount, dbo. Bestoffer-View. BestOfferPrice, dbo. BestBi'd_View. BestBidCMTAmount, dbo. BestBid_V ew. BestBidPrice, dbo. symbols. Symbol FROM dbo. orders LEFT OUTER DOIN dbo. symbols ON dbo. orders. symbol = dbo. symbols. Symbol FULL OUTER JOIN dbo.Bestθffer_View ON dbo. orders. Symbol - dbo. Bestoffer_view. Symbol FULL OUTER JOIN dbo.BestBi'd_View ON dbo. orders. Symbol = dbo . BestBi d_vi ew. Symbol
GO
SET QUOTED_IDENTIFIER OFF
PT-George. txt
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: view dbo. Order List old script Date: 6/9/2003 10:42:25 AM
******/
CREATE VIEW dbo. [Order List]
AS
SELECT TOP 100 PERCENT dbo . orders . id, dbo. orders. MemberAction, dbo orders. OrderNumber, dbo. orders. OrderLetter, dbo. symbols. FundlssuerName, dbo.orders. Symbol , dbo. BestBid-View. BestBidCMTAmount, dbo BestBid view. BestBidPrice, dbo.orders .minimumnavpct AS BestOfferPrice, dbo. orders. Amount AS BestOfferCMTAmount, dbo. symbols. price AS LastNavPrice, dbo. symbols. hange AS Netchange, dbo. orders. featured, dbo. orders. pi eline, αbo.orders.UnfundedAmount, dbo. orders. sellersnav, dbo. orders. status FROM dbo. BestBid_View RIGHT OUTER JOIN dbo.orders LEFT OUTER JOIN dbo. symbols ON dbo.orders .Symbol = dbo. symbols. Symbol ON dbo. BestBid view. Symbol = dbo. orders. Symbol WHERE (dbo. orders. emberAction = N'sell') ORDER BY dbo. orders. OrderNumber, dbo. orders. OrderLetter
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO ****** object: view dbo.Order_ownerview Script Date: 6/9/2003 10:42:25 AM
******/
CREATE VIEW dbo.order_θwnervi ew
AS
SELECT O.id, O. OrderNumber, o. OrderLetter, I.FIRSTNAME, I.LASTNAME ROM dbo.orders 0 INNER JOIN pt_accounts ..individual I ON O.MemberNumber = I. NDIVIDUALID
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: View dbo.Orders_View Script Date: 6/9/2003 10:42:25 AM ******/
CREATE VIEW dbo.orders_V ew
AS
PT-George. txt SELECT TOP 100 PERCENT dbo. orders . id, dbo. orders. emberAction, dbo. orders. OrderNumber, dbo. orders. order Letter, dbo. symbols. FundlssuerName, dbo. orders. Symbol , dbo. BestBid_view. BestBidCMTAmount, dbo. BestBid_View. BestBidPrice, dbo. orders. minimumnavpct AS BestOfferPrice, dbo. orders. Amount AS BestOfferCMTAmount, dbo. symbols. price AS LastNavPrice, dbo. symbols. hange AS Netchange, dbo. orders. featured, dbo. orders. pipeline, dbo. orders. emberNumber, dbo. orders. sellersnav
FROM dbo. symbols RIGHT OUTER JOIN dbo.orders LEFT OUTER JOIN dbo. BestBid-View ON dbo. orders. emberAction - dbo. BestBid-View. MatchTo AND dbo. orders. Symbol = dbo. BestBid-View. Symbol ON dbo. symbols. Symbol = dbo. orders. Symbol
ORDER BY dbo. orders. OrderNumber, dbo. orders. OrderLetter
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
GRANT SELECT , UPDATE ON [dbo] . [orders.view] TO [nyppe_users] GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: view dbo.SYMB0LS_ViEW Script Date: 6/9/2003 10:42:25 AM ******/
CREATE VIEW dbo. SYMBOLS-VIEW
AS
SELECT symbol, sponsor-name AS FundlssuerName
FROM dbo. allfunds
UNION
SELECT Symbol, FundlssuerName
FROM dbo. Symbols
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [SYMBOLS-VIEW] TO
[nyppe_users] GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: view dbo.ALL_ORDERS_VlEW script Date: 6/9/2003 10:42:25 AM ****** /
CREATE VIEW dbθ.ALL_ORDERS_VIEW
AS
SELECT TOP 100 PERCENT dbo.orders .id, dbo. orders. MemberAction, dbo. orders. OrderNumber, dbo. orders. OrderLetter, dbo. orders. Symbol , dbo. orders. minimumnavpct AS BidofferPrice, dbo. orders. Amount S BidofferCMTA ount, dbo.orders. featured, dbo. orders. pipeline,
PT-George. txt dbo.orders.Me berNumber, dbo. orders. sellersnav, dbo. orders. status, dbo.STATUS_DESCRlPT ONS.statusDescript on, dbo. orders. sellxref dbo. SYMBOLS-VIEW. FundlssuerName, dbo. order S.PRICE TBD '
FROM dbo.orders LEFT OUTER JOIN dbo. SYMBOLS-VIEW ON dbo. orders .Symbol - dbo. SYMBOLS-VIEW. symbol LEFT OUTER JOIN dbo. STATUS-DESCRIPTIONS ON dbo. orders . status = dbo . STATUS-DESCRIPTIONS . i d ORDER BY dbo. orders. OrderNumber, dbo. orders. OrderLetter
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
GRANT SELECT , UPDATE , INSERT , DELETE ON [dbo] . [ALL_ORDERS_VIEW] TO
[nyppe_users]
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: view dbo. B doff erCount_v ew Script Date: 6/9/2003 10:42:25 AM ******
CREATE VIEW dbo . Bi'dof f erCount-View
AS
SELECT symbol,
(SELECT COUNT(MemberAction)
FROM Orders
WHERE SellxRef IS NULL AND Orders .MemberAct on = 'BUY1 AND orders. symbol = o. Symbol AND status IN (0, 2)) AS Bidcount,
(SELECT COUNT(Me berAction)
FROM orders
- _ π WHER , SellxRef IS NULL AND Orders .MemberAction =
'SELL' AND orders. symbol = o. Symbol AND Status IN (0, 2)) AS OfferCount.
(SELECT COUNT(*)
FROM Trades
WHERE Trades. symbol = o. Symbol) AS TradeCount FROM dbo.orders 0 GROUP BY Symbol
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
/****** object: iew dbo. COMPOSITE Script Date: 6/9/2003 10:42:25 AM ******/
CREATE VIEW dbo. COMPOSITE
AS
SELECT s. Symbol, s. FundlssuerName AS FundName, 1 AS tablet pe,
(select top 1 featured from orders o where o. symbol = S. symbol) featured.
(select top 1 pipeline from orders o where o. symbol = s. symbol) pipeline,
PT-George. txt
(select count(*) fro orders o where o. symbol = s. symbol and o. memberaction = 'buy') buyordercount,
(select count(*) fro orders o where o. symbol = s. symbol and o. emberaction = 'sell') sellordercount,
(select count(*) from indications i where i. symbol = s. symbol and i .memberaction -'buy') Buyindi cations, ■. _ ■
(select count(*) fro indications . where i. symbol = s. symbol and i .memberaction = 'se!T) selllndications FRO dbo. symbols S
SELECT symbol, sponsor_πame AS FundNa e, 2 AS tabletype, ("select top 1 featured from orders o where o. symbol = A. symbol) featured, fselect top 1 pipeline from orders o where o. symbol = A. symbol) pipeline, (select count(*5 from orders o where o. symbol = a. symbol and o. memberaction - buy ) buyordercount, , , _ , ,
(select count(*) from orders o where o. symbol = a. symbol and o. memberaction - 'sell') sellordercount, ,
(select count(*) from indications i where i. symbol = A. symbol and i .memberaction
-'buy') Buyindi cations, , , _ . -.
(select count(*) from indications i where i. symbol = A. symbol and ..memberaction ='sell') selllndications FROM allfunds A
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** obj ect : vi ew dbo . MarketPl ace_vi ew scri pt Date : 6/9/2003 10 : 42 : 25 AM
****** /
CREATE VIEW dbo.MarketPl ace_view
AS dbo. Bestoffer_view. BestOfferCMTAmount, dbo Restoffer-View. BestOfferPrice, dbo. SYMBOLS_viEW. symbol , dbo. SYMBOLS-VIEW. FundlssuerName AS [Fund Name], dbo BestB d_v ew. BestBidCMTAmount, dbo. BestBid_view. BestBidPrice
C ΠM dbo. SYMBOLS-VIEW LEFT OUTER JOIN dbo. BestBid_view ON dbo. SYMBOLS-VIEW. symbol - dbo BestBid View. Symbol LEFT OUTER JOIN uuu ~ dbo.Bestθffer_view ON dbo. SYMBOLS_ViEW. symbol = dbo . Bestoffer_vi ew. symbol
GO
SET QU0TED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
S ET ANSI-NULLS ON
GO
PT-George. txt ****** object: View dbo.ORDERSTATUS_viEW Script Date: 6/9/2003 10:42:25 AM
CREATE VIEW dbθ.ORDERSTATUS_VIEW
AS
SELECT O.id, 0. OrderNumber, 0. OrderLetter, o.MemberNumber, 0. emberAction,
0 symbol, O.auctionid, ol. OrderNumber AS PortNumber,
Ol. OrderLetter AS PortLetter, 0.Amount AS BldofferCMTAmount, 0 minimumnavpct AS BidofferPrice, dbo. symbols. FundlssuerName, 0. status,
O.OrderDateReceived, dbo sτATUS_DESCRIPTIθNS.StatusDescr ption, O.ScheduledClosingDate ROM dbo.orders o LEFT OUTER JOIN dbo.STATUs_DESCRiPTiONS ON o. status = dbo STATUS_DESCRIPTIONS.l'd LEFT OUTER JOIN dbo. symbols ON 0. symbol = dbo. symbols. Symbol LEFT OUTER JOIN dbo.orders 01 ON O.auctionid = Ol.id
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: view dbo.ORDER_MATCH script Date: 6/9/2003 10:42:25 AM ******/
CREATE VIEW dbθ.ORDER_MATCH AS
SELECT TOP 100 PERCENT dbo . SYMBOLS-VIEW. symbol , dbo. SYMBOLS-VIEW. FundlssuerName AS FundName, BB. BestBidCMTAmount, BB. BestBidPrice,
BO. BestOfferCMTAmount, BO. BestOfferPrice FROM dbo.BestB d_View BB INNER JOIN dbo. SYMBOLS-VIEW ON BB. Symbol = dbo. SYMBOLS-VIEW. symbol INNER dbo.Bestoffer_view BO ON dbo. SYMBOLS-VIEW. symbol = BO. symbol
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: View dbo. Order List Script Date: 6/9/2003 10:42:25 AM ******/ CREATE VIEW dbo. [Order List]
AS
SELECT o.id, 0. MemberAction, 0. OrderNumber, o. OrderLetter, Si. FundlssuerName,
0 Symbol, o. inimumnavpct AS BestOfferPrice, o. Amount AS BestOfferCMTAmount, o. featured, 0. pipeline, 0 UnfundedAmount, 0. sellersnav, 0. status, Q. Change AS Netchange,
Q.LastPrice AS LastNavPrice,
(SELECT TOP 1 BB. BestBidPrice FROM dbo. BestBid-V ew BB WHERE BB. symbol = 0. symbol) AS BestBidPrice, (SELECT TOP 1 BB. BestBidCMTAmount
PT-George. txt FROM dbo. BestB d_View BB HERE BB. Symbol = o. Symbol) AS BestBidCMTAmount, o scheduledDate, O.PR CE_TBD F O dbo.orders 0 LEFT OUTER JOIN dbo. quotes Q ON 0. Symbol = Q. symbol LEFT OUTER JOIN dbo . SYMBOLS-VIEW Si ON 0. Symbol = Si . symbol
WHERE (0. Membe rActi on = N ' sel T ) GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
GRANT SELECT , UPDATE ON [dbo] . [Order Li st] TO [nyppe_users] GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO Symbols Script Date: 6/9/2003 10:42:25 AM ******/
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
GRANT SELECT ON [dbo] . [Temp Symbols] TO [nyppe_users]
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: view dbo.v_ORDERS Script Date: 6/9/2003 10:42:25 AM ******/
CREATE VIEW dbθ.V_ORDERS
AS
SELECT dbo.orders.*, dbo.STATUS-DESCRlPTlONS.StatusDescription, dbo . SYMBOLS-VIEW. FundlssuerName OM dbo.orders LEFT OUTER JOIN dbo.SYMBOLS_ViEW ON dbo . orders . Symbol = dbo. SYMBOLS-VIEW. symbol LEFT OUTER JOIN dbo.STATUS_DESCRlPTiONS ON dbo. orders . status = dbo . STATUS_DESCRIPTIONS . i d
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
PT-George . txt SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS OFF
GO ****** object: Stored Procedure dbo.sp_CreateNotebook Script Date: 6/9/2003 10:42:25 AM ******/
CREATE PROCEDURE sp_CreateNotebook (©OrderNo bigint, ©NoteType int = 1) as
BEGIN TRAN insert into notebook ( order_num, note_type, notebook_row_id ) select Φorόe rNo , note_type, row_id from notebook-definitions where checkbox=l and note_type = ©NoteType if ©NoteType = 999 update notebook set checked = 1 where notebook_row_id in ( 3, 4, 5 ) and order_num ■ ©orderNo end
COMMIT
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp_GetPortfolioθrders Script Date: 6/9/2003
10:42:25 AM ******/
CREATE PROCEDURE dbo . sp_GetPortfol i oorders ((Sportfol i o int, ©UserlD int) AS
BEGIN .
SELECT *,
(SELECT granted FROM permissions p WHERE p. symbol = o. symbol AND orderid = O id AND userid = ©userid) AS c-Ranted FROM [Order List] O Where OrderNumber = ©Portfolio and Status <> 3
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO ****** object : Stored Procedure dbo . sp_GetStepCount Scri pt Date : 6/9/2003 10 : 42 : 25 AM ******/
CREATE PROCEDURE dbo . sp_GetStepCount
( ©orderlD i nt , ©stepType i nt - -1 )
AS
If ©stepType = -1
PT-George. txt
BEGIN
SELECT count(*) stepscompleted, (select count(*) from notebook where order_num = ©OrderlD) totalsteps
FROM notebook
WHERE checked=l and order_num = ©OrderlD
END
Else
BEGIN
SELECT count(*) stepscompleted,
(SELECT count(*) from notebook, notebook-definitions where row-id = notebook_row-id and order_num = ©OrderlD and check_type=@StepType)
Totalsteps , , , --. . .
FROM notebook, notebook-definitions
WHERE row-id = notebook_row_id and checked = 1 and order_num = ©OrderlD and check_τype=@stepτype
END
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO ****** object: Stored Procedure dbo. sp_GetTotal Portfolio Script Date: 6/9/2003
10:42:26 AM ******/
CREATE Procedure sp_GetTota Portfolio(©Portfolio int) as select sum(amount) as TotalCMT,
«=um(amount * minimumnavpct)/sum(amount) as TotalNavPct from orders where ordernumber = ©Portfolio
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO sp-UpdateFundSymbol script Date: 6/9/2003
Declare ©ID int
If Exi5ts( Select * from Symbols where Symbol = ©Symbol )
PT-George. txt Return
Else if Exists(select * From Symbols Where FundlssuerName = ©FundName)
Return Else
BEGIN
INSERT INTO SYMBOLS (SYMBOL, FUNDISSUERNAME) VALUES (©SYMBOL , ©FUNDNAME)
END
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF GO
/****** object: Stored Procedure dbo. sp_GetANumber Script Date: 6/9/2003 10:42:26 AM ******/
CREATE PROCEDURE sp_GetANumber (©IdName varchar(50), ©value int output) as Declare ©IdValue int
BEGIN TRAN
Select ©Idvalue = Idvalue From GetANumber here IdName = ©IdName If ©Idvalue is Null
BEGIN insert Into GetANumber values (©IdName, 2) select ©IdValue = 1
END
Else update GetANumber Set Idvalue = ©IdValue + 1 here IdName = ©IdName
COMMIT
Select ©value = ©idvalue
Return ©value
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON GO Script Date: 6/9/2003 Script Date: 10/15/2002
©StartDate datetime = null ©EndDate datetime = null
) AS
BEGIN
Select *, [period] = case [Quarter] when 1 Then '3, .31. ' + cast( year] as varchar) hen 2 Then '6, ,30.' + cast( year] as varchar) hen 3 Then '9, ,30.' + cast( year] as varchar) when 4 Then '12.31.' + cast([year] as varchar) End --cast(Quarter as varchar) + 'Q-' + cast([year] as varchar) as
[Perio ]
From fn_GetFundReturnSp read (©s mboll, ©symbol 2, ©StartDate, ©EndDate) Order by [Year] Desc, [Quarter] Desc
END
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
5ET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
/****** object: Stored Procedure dbo.sp_GetFundsReturnYr script Date: 6/9/2003 10:42:26 AM ******/
/****** object: Stored Procedure dbo.sp-GetFundsReturnYr Script Date: 10/31/2002 4:13:11 PM ******/
/****** object: Stored Procedure dbo.sp_GetFundsReturnYr script Date: 10/16/2002
7:05:47 PM ******/
CREATE procedure sp_GetFundsReturnYr (
©Symboll varchar(25),
@Symbol2 varchar(25),
©StartDate datetime = null,
©EndDate datetime = null
) AS
BEGIN
Select [Year], sum( sNull (returnl.O)) as Returnl,
Sum(lsNull(return2,0)) as Return2, Sum(isNull (spread, 0)) as Spread, [Year] as [Period]
From fn_GetFundRetumspread (©symboll .©symbol 2, ©StartDate, ©EndDate) Group by [Year] order 'by r[Year "" Desc
END
GO
SET QUOTED-IDENTIFIER OFF
GO
5ET ANSI-NULLS ON
GO
PT-George. txt
SET QUOTED-IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GO ****** object: stored procedure dbo.sp-GetOrderBook Script Date: 6/9/2003 i 1n0.: _4?2■:?26.. AAMM ******/
/****** object: Stored Procedure dbo.sp-GetOrderBook Script Date: 8/29/2002
7:14:49 PM ******/
CREATE PROCEDURE dbo. sp_GetθrderBook(©BookType int, ©UserlD int) AS
— BookType: 1 - F rm
** Pipeline
Featured
If ©BookType = 1
BEGIN
SELECT *,
(SELECT granted FROM permissions p
WHERE p. symbol = o. symbol AND orderid =
O.id AND userid = ©userid) AS GRanted FROM [Order List] O where Pipeline = 0 and Status Not In (1,3) order by OrderNumber, OrderLetter
END
ELSE IF ©BookType - 2 Begin
SELECT *,
(SELECT granted
FROM permissions p WHERE p. symbol = o. symbol AND orderid
O.id AND userid = ©userid) AS GRanted FROM [Order List] O where Pipeline =1 and Status Not In (1,3) order by OrderNumber, OrderLetter end ,
ELSE IF ©BookType = 3
BEGIN
SELECT *,
(SELECT granted
FROM permissions p
WHERE p. symbol = o. symbol AND orderid = o.id AND userid = ©userid) AS GRanted FROM [Order List] O here Featured = 1 and Status Not in (1,3) Order by OrderNumber, OrderLetter
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
GRANT EXECUTE ON [dbo] . [sp_Getθrde rBook] TO [publ i c] GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
PT-George. txt O ****** object: Stored Procedure dbo.sp_GetReturnSpreadQt script Date: 6/9/2003 10:42:26 AM ******/
/****** object: Stored Procedure dbo.sp_GetReturnSpreadQt Script Date: 10/31/2002 4:13:22 PM ******/
/****** object: Stored Procedure dbo.sp_GetReturnSpreadQt Script Date: 10/15/2002 1:07:26 PM ******/ ****** object: Stored Procedure dbo.sp_GetReturnSpread Script Date: 10/14/2002
8:07:25 PM ******/
CREATE procedure sp_GetReturnSpreadQt(
©Key as varchar(25),
©Symboll varchar(25),
©symbo!2 varchar(25),
©StartDate datetime = null,
©EndDate datetime = null
) as if ©Key - 'Lastl2Months'
Begin select ©StartDate = DateAdd(yy,-l,GetDate())
Select Su (Spread) as Lastl2Months from fn GetFundReturnSpread(©Symboll, ©Syπbol2, ©startdate, null)
End Else If ©Key - 'Average'
Begin
Select avg(Returnl) SecuritylAverage, avg(return2) Security2Average, avg(Spread) SpreadAverage From fn_GetFundReturnspread(@symboll, @Symbol2, ©StartDate, ©EndDate)
End Else if ©Key = 'High'
Begin select Top 1 Spread, cast(quarter as varchar) + 'Q/' + cast([Year] as varchar) as [date], Quarter, [Year] from fn_GetFundReturnSpread(@Symboll, ©Symbol2, ©StartDate, ©EndDate)
Order by spread desc
End Else If ©Key - 'Low'
Begin select Top 1 spread, cast(quarter as varchar) + 'Q/' + cast([Year] as varchar) as [date], Quarter, [Year] from fn_GetFundReturnSpread(©Symboll, ©Symbol2, ©StartDate, ©EndDate) order by spread Asc
End
END
GO
SET QU0TED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
SET QU0TED_IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO ****** object: Stored Procedure dbo.sp_GetReturnSpreadYr Script Date: 6/9/2003
PT-George. txt 10:42:26 AM ******/
/****** object: Stored Procedure dbo.sp_GetReturnSpreadYr script Date: 10/31/2002 4:13:37 PM ******/
/****** object: stored Procedure dbo.sp_GetReturnSpreadYr Script Date:
10/14/2002 8:10:56 PM ******/
CREATE procedure sp_GetReturnSpreadYr(
©Key as varchar(25),
©Symboll varchar(25),
©symbo!2 varchar(25),
©StartDate datetime = null,
©EndDate datetime = null
Select ©Years = count(distinct([year])) from fn_GetFuπdReturnSp read (©symboll, ©symbol 2, ©startdate, ©enddate) select Sum(returnl)/©Years as SecuritylAverage,
Sum(return2)/©Years as Security2Average, (Sum(returnl)/@Years - Sum(return2)/@Years) as SpreadAverage
From fn_GetFundReturnspread(©symboll,©symbol2, ©startdate, ©enddate)
End Else If ©Key = 'High'
Begin select top 1 sum(spread) as [value], [year] as [date]
From fn_GetFundReturnspread(©Symboll,©Symbol2, ©StartDate, ©EndDate)
Group by [year] order by sum(spread) desc
End Else If ©Key = 'Low'
Begin select top 1 sum(spread) as [value], [year] as [date]
From fn_GetFundRetύrnspread(©Symboll,©symboΪ2, ©StartDate, ©EndDate)
Group by [year] order by sum(spread) asc
End END
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
PT-George. txt
GO
/****** object: Stored Procedure dbo.sp-MatchOrders Script Date: 6/9/2003 10:42:26 AM ******/
/****** object: Stored Procedure dbo.sp_Match0rders Script Date: 8/29/2002 4:45:10 PM ******/ ****** object: Stored Procedure dbo.sp-MatchOrders Script Date: 7/26/2002
2 : 42 : 48 PM ******/
CREATE PROCEDURE sp_Matchθrders (©OfferiD i nt , ©Bi diD i nt , ©TradePri ce fl oat
©Settl e entDate dateti me ) AS '
Decl are ©TradelD i nt, ©Rowcount i nt
Decl are ©Currentsymbol varchar(25)
Decl are ©BidPri ce money
BEGIN TRANSACTION
Update orders set SellxRef = ©offeriD where ID = ©BidiD and SellxRef Is Null
Set ©RowCount = ©©Rowcount
Update orders Set SellxRef = ©BidiD where ID = ©offeriD and SellxRef Is Null
Set ©RowCount = ©RowCount + ©©RowCount
If ©RowCount <> 2
BEGIN print ' Error rolling back transaction' ROLLBACK TRAN
END
Else
BEGIN print 'inserting update'
INSERT INTO TRADES (OfferiD, Bl'dld) values (©offeriD, ©BidiD)
Select ©TradelD = ©©identity
Print 'Trade Inserted'
-- Get Data From offer update TRADES Set
©Currentsymbol = o. Symbol, symbol = O. Symbol ,
OrderNumber = 0. OrderNumber,
OrderLetter = 0. OrderLetter, offerCMTA ount = o.Amount,
NAV = o.SellersNAV, offerPπce - o. inimumnavpct,
OfferMemberiD = o.MemberNu ber,
TradePrice = ©TradePrice, SettleDate = ©SettlementDate
From Orders 0 where Trades. ID = ©TradelD And O.ID - ©OfferiD
-- Get Data From Bid Update TRADES set
BiDCMTA ount = o.Amount,
BidPrice = 0. minimumnavpct,
BidMemberlD = O.MemberNumber
From Orders o here Trades. ID = ©TradelD And O.ID = ©BidiD update Orders set ScheduledclosingDate = ©SettlementDate, Status = 4 here id in (©BidlD,©offerlD)
PT-George. txt if Exists (Select * From Quotes where Symbol = ©Currentsymbol) update Quotes Set
Change = ©TradePrice - LastPrice , LastPrice = ©TradePrice , SystemDate = GetDateQ where symbol = ©currentsymbol Else insert into Quotes (Symbol, LastPrice, change, SystemDate) values (©currentsymbol ,@TradePrice,0, GetDateQ
print 'Updating Trade' COMMIT TRAN
END
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
/****** object: Stored Procedure dbo.sp_Placeθrder Script Date: 6/9/2003 10:42:26 AM ******/
/****** object: Stored Procedure dbo.sp_Placeθrder script Date: 10/3/2002 7:45:43 PM ******/
CREATE PROCEDURE sp_Placeθrder ( ©symbol varchar(25), ©MemberNumber int, ©MemberAction varchar(25), ©Amount money, ©UnfundedAmount Money, ©SellersNav money, ©MinimumNAVpct money, ©Auctionld int, ©AccountID int, ©TicketType varchar(25), ©PortfoliolD int = null, ©BidDueDate datetime
) declare ©orderid int
insert into orders ( .
Symbol , emberNumber , MemberActi on ,
Amount .UnfundedAmount, SellersNav, inimumnavpct, auctionid,accountid,tickettype,ScheduledDate) val ues (©Symbol , ©MemberNumber , ©MemberActi on ,
©Amount , ©UnfundedAmount , ©Sel 1 ersNa , ©Mi nimumNavPct , ©Aucti onld , ©Accountid , ©Ti cketType , ©Bi dDueDate) select ©orderid = ©©identity
PT-George. txt /* portfolio Logic */ If ©portfoliolD is Not Null
BEGIN
IF ©PortfolioiD = -1
Update Orders Set OrderLetter = 'a' Where ID = ©OrderlD Else
BEGIN
Update Orders set OrderNumber = ©PortfolioiD, OrderLetter = (
Select Top 1 char( ascii( OrderLetter ) + 1 ) From orders where OrderNumber = ©PortfolioiD order by OrderLetter Desc ) where id = ©OrderlD END END exec sp_createNotebook ©orderid
If ©MemberAction - 'sell' ., , , , , ,
INSERT INTO [PERMISSIONS] (Orderid, symbol, UserlD, Granted) Values(©θrderlD, ©Symbol, ©MemberNumber, 1)
Select ©orderid
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO ****** object: Stored Procedure dbo.sp-RecordEmail Script Date: 6/9/2003
10:42:26 AM ******/
CREATE PROCEDURE dbo . sp_RecordEmaι 1
©individual ID int,
©Subject varchar(140),
©Body varchar(400),
©FooterTag varchar(25) - "default",
©FromTag varchar(25) = "default"
)
AS
BEGIN
Declare ©FromE ail varchar(lOO)
Declare ©Fro EmailName varchar(100) Declare ©FooterlD int
Declare @τoEmail varchar(lOO)
Declare ©ToEmailFname varchar(lOO)
Declare ©ToEmailLname varchar(lOO)
Select ©FromEmail = FROM-EMAIL,
©FromEmail ame = FROM-NAME FROM EMAIL-TAGS WHERE FROM-TAG = ©FromTag
Select ©FooterlD = [Id]
PT-George. txt
From EMAIL-FOOTERS where FOOTER_TAG - ©FooterTag
Select ©ToEmail Fname - FIRSTNAME,
©ToEmailLname - LASTNAME, ©ToEmail = EMAILADDRESS
FROM pt_accounts..INDIVIDUAL where individualiD = ©individuallD
INSERT INTO EMAIL_HISTORY
(individual ID, ToEmail , FromEma l .Subject , Mess ageBody, FooterlD) values (©individuals, ©ToEmail, ©FromEmail, ©Subject, ©Body, ©FooterlD)
Select
Email ID = ©©identity,
ToFirstName = ©ToEmail FName,
ToLastNa e = ©ToEmail LNa e,
ToEmail = ©ToEmail ,
FromEma l = ©FromEmail ,
FromEmailName = ©FromEmailName,
FOOTER_TEXT
From EMAIL-FOOTERS
Where id = ©FooterlD
END
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI_NULLS ON GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp-RenameSymbol script Date: 6/9/2003 10:42:26 AM ******/
PT-George. txt select ©ErrCount = ©©Error
Update FundNewsHeadlines Set Symbol = ©Symbol 2 Where Symbol = ©Symboll select ©RecordsUpdated = ©RecordsUpdated + ©©RowCount select ©ErrCount = ©©Error Update FundHoldings Set Fundsymbol = ©symbol2 Where Fundsymbol - ©Symboll
Select ©RecordsUpdated = ©RecordsUpdated + ©©RowCount select ©ErrCount = ©©Error update Fund-org_type Set Symbol = ©symbol 2 Where Symbol- ©Symboll select ©RecordsUpdated = ©RecordsUpdated + ©©RowCount
Select ©ErrCount = ©©Error
Update FundReturns set Symbol = ©symbol 2 here Symbol = ©Symboll
Select ©RecordsUpdated - ©RecordsUpdated + ©©RowCount select ©Errcount = ©©Error
Update indications Set Symbol = ©symbol 2 where Symbol = ©Symboll
Select ©RecordsUpdated = ©RecordsUpdated + ©©RowCount select ©ErrCount = ©©Error
Update Quotes set Symbol = ©symbo!2 here Symbol - ©Symboll Select ©RecordsUpdated = ©RecordsUpdated + ©©RowCount
Select ©ErrCount = ©©Error update Symbols Set Symbol = ©symbo!2 here Symbol = ©Symboll
Select ©RecordsUpdated = ©RecordsUpdated + ©©RowCount select ©ErrCount = ©©Error
Update All Funds Set Symbol = ©Symbol 2 where Symbol = ©Symboll select ©RecordsUpdated = ©RecordsUpdated + ©©RowCount
Select ©ErrCount = ©©Error if ©ErrCount > 0 BEGIN ROLLBACK TRANSACTION
SELECT RecordsUpdated = 0, Errors = ©ErrCount END
Else
BEGIN
COMMIT TRANSACTION
Select RecordsUpdated = ©RecordsUpdated, Errors = 0
END
END
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
GRANT EXECUTE ON [dbo] . [sp_RenameSymbol ] TO [nyppe_users] GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO ****** object: Stored Procedure dbo.sp_UpdateBidoffer Script Date: 6/9/2003
10: 42 : 26 AM ******/
CREATE PROCEDURE sp_UpdateBi doffer
©symbol varchar(25) = NULL ,
©percentchange fl oat (9) = 0,
©Di recti on varchar(4) = "Down" ,
©Bi doffer varchar(5) = "Both"
AS
BEGIN DECLARE ©coef mt
PT-George. txt
IF ©Di rection = 'Up' set ©coef = 1 ELSE set ©Coef = -1 print ©Coef PRINT 'N' IF ©symbol is NULL IF ©Bidoffer = Both u «τT_l?funds.?nit_bid = allfunds. init_bid * (1 + ©coef*@Percentchange/100) , allfunds.init-offer - allfunds.init_offer * (1 + ©coef*©Percentchange/100) ELSE IF ©Bidoffer = 'Bid'
USE
T l?funds-?m"t_bid = all f unds. init_bid * (1 + @Coef*@PercentChange/100)
u^
τ^-,
funds.inιt_offer = all f unds. nit_offer * (1 + ©Coef*@PercentChange/100)
IF ©Bidoffer = 'Both' u «τTa11 funds. ?m"t_bid = allfunds.init_bid * (1 + ©Coef*©PercentChange/100) , allfunds. init_offer = allfunds. init-offer * (1 + ©Coef*©PercentChange/100) WHERE all funds. symbol = ©symbol ELSE IF ©Bidoffer = 'Bid'
Uscj Tfιifunds.init_bid = all f unds. im"t_bid * (1 + ©Coef*©PercentChange/100)
WHERE all funds. symbol = ©Symbol
= all f unds. init_offer * (1 + ©Coef*@PercentChange/100)
= ©Symbol
END GO
SET QU0TED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO Script Date: 6/9/2003
BEGIN
Declare ©ID int
If Exists( select * from symbols Where Symbol = ©symbol )
S -e-■l•e-c--t sSymbol, FundlssuerName as FundName From Symbols here Sy vmmhbnoll == f©δsςyvmmhbnoll Else If Exists( Select * From All Funds Where Symbol = ©Symbol) select Symbol, sponsor_name as FundName from allfunds where Symbol = ©symbol
E Sβ If Exists (selleecctt ** FFrom symbols Where FundlssuerName = ©FundName) select' s"ym'bol, FundlssuerName as FundName From symbols
PT-George. txt here FundlssuerName = ©FundName El se If Exi sts (sel ect * From Al l Funds here Sponsor-Name =
©Fund a e sel ect Symbol , Sponsor_Name as FundName From Al l Funds where sponsor_Name = ©FundName
El se
EGIN xec sp-GetANu ber ' TEMP_SYMBOL ' , ©ID out el ect symbol = 'TEMP. ' + cast ( ©ID as varchar( undName = ©FundName + ' (TMP) '
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp_GetθrderBookDesc Script Date: 6/9/2003 10:42:26 AM ******/
/****** object: Stored Procedure dbo.sp_GetθrderBook script Date: 8/29/2002
7.I4. 9 pM ******/
CREATE PROCEDURE dbo . sp_GetθrderBookDesc(@BookType int, ©UserlD int) AS
BookType: 1 - Firm
Pipeline Featured
If ©BookType = 1
BEGIN
SELECT
(SELECT granted FROM permissions p WHERE p. symbol = o. symbol AND orderid -
0 id AND userid = ©userid) AS GRante ,drt
FROM L"9rder is l 0 where Pipeline = 0 and Status Not In (1,3) order by OrderNumber, OrderLetter
END ,
ELSE IF ©BookType - 2
Begin .
SELECT *,
(SELECT granted FROM permissions p WHERE p. symbol = o. symbol AND orderid = 0 id AND userid = ©userid) AS GRanted FROM [order List] 0 here Pipeline =1 and status Not in (1,3) order by OrderNumber, OrderLetter end .
ELSE IF ©BookType = 3
BEGIN
SELECT » /■-.-I - --. _ -1
(SELECT granted
FROM permissions p
PT-George.txt WHERE p. symbol - o. symbol AND orderid - O.id AND userid = ©userid) AS GRanted FROM [Order List] 0
Where Featured = 1 and Status Not in (1,3) Order by OrderNumber desc, OrderLetter desc
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: User Defined Function dbo.fn-GetFundReturnSpread script Date:
6/9/2003 10:42:26 AM ******/
CREATE function fn_GetFundReturnSpread(
©Symboll varchar (25),
©Symbol2 varchar(25),
©StartDate datetime,
©EndDate datetime
Returns Table as
Return (
Select , _ - . -i,
Fl. Symbol as Symboll,
F2. symbol as symbol 2,
IsNull (Fl. Quarter, F2. Quarter) as Quarter, lsNull(Fl.[Year], F2.[Year]) as [Year], isNull (Fl. [Return] ,0) as Returnl,
I«NU11(F2. [Return] ,0) as Return2, lsNull(Fl. [Return] ,0) - IsNull (F2. [Return] ,0) as Spread
From fn_GetFundReturnqt(@Symboll, ©StartDate, ©EndDate) Fl full out er join fn-GetFundReturnqt(@Symbol2, ©StartDate, ©EndDate) F2
°π Fl. Quarter = F2. Quarter and Fl.[Year] = F2.[Year]
)
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: User Defined Function dbo.fn-GetFundReturnQt Script Date: 6/9/2003 10:42:26 AM ******/
CREATE Function fn_GetFundReturnQt(
Returns
BEGIN if (©StartDate Is null) and (©EndDate Is null) BEGIN
Insert ©FundReturns
Select Symbol,
[Quarter] = Case when Month([Date] Between 1 and 3
Then 1 hen Month([Date]) Between 4 and 6 Then 2 when Month([Date]) Between 7 and 9 Then 3 when Month([Date]) Between 10 and 12 Then 4
End, Year([Date]) as [Year], Sum([Return]) as [Return] From FundReturns Where symbol - ©symbol Group by Symbol , Case hen Month([Date]) Between 1 and 3
Then 1 when Month([Date]) Between 4 and 6 Then 2
When Month([Date]) Between 7 and 9 Then 3 when Month([Date]) Between 10 and 12 Then 4
End, Year([Date]) END
Else If (©StartDate Is null) BEGIN -- FROM Earliest Date to ©EndDate insert ©FundReturns select Symbol,
[Quarter] - case hen Month([Date]) Between 1 and 3
Then 1 hen Month([Date]) Between 4 and 6 Then 2
When Month([Date])' Between 7 and 9 Then 3 when Month([Date]) Between 10 and 12 Then 4
End, Year([Date]) as [Year], Sum([Return]) as [Return] From FundReturns where Symbol = ©symbol And [Date] <= ©EndDate Group by Symbol, case when Month([Date]) Between 1 and 3
Then 1
When Month([Date]) Between 4 and 6
PT-George.txt
Then 2 hen Month([Date]) Between 7 and 9 Then 3 When Month([Date]) Between 10 and 12
hen Month([Date]) Between 1 and 3
Then 1 hen Month([Date]) Between 4 and 6 Then 2 when Month([Date]) Between 7 and 9 Then 3 hen Month([Date] Between 10 and 12 Then 4
End,
Year([Date]) as [Year],
Sum([Return]) as [Return] From FundReturns here Symbol - ©Symbol And [Date] >= ©StartDate Group by symbol , case when Month([Date]) Between 1 and 3
Then 1 when Month([Date]) Between 4 and 6 Then 2 when Month([Date]) Between 7 and 9 Then 3
When Month([Date]) Between 10 and 12 Then 4
End, Year([Date]) END
Else π. • „ .
BEGIN -- PRO Earliest Date to ©EndDate Insert ©FundReturns Select Symbol,
[Quarter] = case when Month([Date]) Between 1 and.3
Then 1
When Month([Date]) Between 4 and 6 Then 2 hen Month([Date]) Between 7 and 9 Then 3
When Month([Date]) Between 10 and 12 Then 4
End, Year([Date]) as [Year], Sum([Return]) as [Return] From FundReturns
Where Symbol = ©Symbol And [Date] Between ©StartDate and ©EndDate Group by symbol , Case
When Month([Date]) Between 1 and 3
Then 1 when Month([Date]) Between 4 and 6 Then 2
PT-George.txt hen Month([Date]) Between 7 and 9
Then 3 when Month([Date]) Between 10 and 12 Then 4 End,
Year([Date])
END return
END
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI_NULLS OFF
GO Script Date:
BEGIN if (©StartDate Is null) and (©EndDate is null)
BEGIN insert ©FundReturns
Select Symbol ,
Year([Date]) as [Year], sum([Return]) as YearlyReturn
From FundReturns
Where Symbol = ©symbol
Group by Symbol, Year([Date])
END
Else if (©StartDate is null) BEGIN -- FROM Earliest Date to ©EndDate insert ©FundReturns Select Symbol ,
Year([Date]) as [Year], Sum([Return]) as YearlyReturn From FundReturns here Symbol = ©symbol And [Date] <= ©EndDate Group by Symbol, Year([Date])
END
Else If ©EndDate is null BEGIN -- From ©StartDate to LatestDate insert ©FundReturns select symbol ,
Year([Date]) as [Year], Sum([Return]) as YearlyReturn From FundReturns
PT-George. txt where Symbol = ©symbol And [Date] >= ©StartDate Group by Symbol, Year([Date])
END
Else
BEGIN -- From ©StartDate to LatestDate insert ©FundReturns Select Symbol ,
Year([Date]) as [Year],
Sum([Return]) as YearlyReturn From FundReturns where symbol = ©Symbol And [Date] Between ©StartDate and ©EndDate Group by Symbol, Year([Date])
END RETURN
END
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
/****** object: Trigger dbo.iNS-UpdatePortfolioNumber Script Date: 6/9/2003
10:42:26 AM ******/ _ -, ■ J
CREATE TRIGGER NS_UpdatePortfol i oNumber ON dbo.orders
FOR INSERT
A AS5
Update orders set OrderNumber = ©©identity where id = ©©identity
-- update indications declare ©symbol varchar(25), ©MemberAction varchar(lθ) select ©symbol = symbol, ©MemberAction = MemberAction from inserted.-- where
MemberAction = 'sell '
If ©MemberAction - 'Buy' , , „ ,_ , _,
Update indications Set Status = 1 where symbol = ©symbol and MemberAction
= 'sell'
Else IF ©MemberAction = 'Sell' update indications Set Status = 1 where symbol = ©symbol and MemberAction =
'Buy'
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
exec sp_addextendedproperty N'MS-Description1 , N'Order ID', N'user', N'dbo', N'table', N'Neworders', N'colu n', N'lD'
GO
PT-George.txt
20670716.txt /****** obiect: Database pt_accounts Script Date: 6/9/2003 10:40:42 AM ******/ IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'pt_accounts') DROP DATABASE [pt_acC0Unts]
GO
ΓRFΔTF DATABASE [pt_accounts] ON (NAME = N'pt_accountS-Data' , FILENAME - N'c ebSitesXdataXMSSQLXDataXpt-accountS-Data.MDF' , SIZE = 42, FILEGROWTH = 10%) inr nt. fNAME = N'pt_accountS_Log' , FILENAME =
N'C-\webSites\data\MSSQL\Data\pt_accounts_log.LDF' , SIZE = 3, FILEGROWTH - 10%) COLLATE SQL_Lati n3_General_CPl_ci_AS GO exec sp_dboption N'pt-accounts*, N'autoclose' , N'false' GO exec sp_dboption N'pt-accounts', N'bulkcopy', N'false' GO exec sp_dboption N'pt-accounts', N'trunc. log', N'false' GO exec sp_dboption N'pt-accounts', N'torn page detection", N'true' GO exec sp_dboption N'pt_accounts' , N'read only', N'false' GO exec sp-dbopt on N'pt_accounts' , N'dbo use', N'false' GO exec sp_dboption N'pt_accounts' , N'single', N'false' GO exec sp_dboption N'pt_accounts' , N'autoshrink' , N'false' GO exec sp_dboption N'pt_accounts' , N'ANSI null default', N'false' GO exec sp_dbopt on N'pt-accounts', N' recursive triggers', N'false' GO exec sp_dbopt on N'pt_accounts' , 'ANSI nulls', N'false'
GO exec sp_dboption N'pt_accounts' , N'concat null yields null ' , N'false'
GO exec sp_dboption N'pt_accounts' , N'cursor close on commit' , N'false'
GO exec sp_dboption N'pt_accounts' , N'default to local cursor', N'false'
GO exec sp-dboption N'pt_accounts' , N' quoted identifier', N'false'
GO exec sp-dboption N'pt_accounts' , N'ANSI warnings', N'false'
GO exec sp_dboption N'pt_accounts' , N'auto create statistics*, N'true'
GO
, 20670716.txt exec sp_dbopfιon N pt_accounts', N'auto update statistics', N'true' GO use [pt_accounts] GO
/****** object: Stored Procedure dbo.sp_modifyAccount Script Date: 6/9/2003
10:40:47 AM ******/ if exists (select * from dbo.sysobjects where id - object_id(N'[dbol. [sp odifyAccount]') and OBJECTPROPERTYdd, N'lsProcedure') = 1) drop procedure [dboj. [sp_modifyAccount]
/****** object: Stored Procedure dbo. sp_putMyAl erts Script Date: 6/9/2003
10:40:47 AM ******/ if exists (select * from dbo.sysobiects where id - object_id(N'[dbo].[sp putMyAlerts]1) and OBJECTPROPERTYd , N'lsProcedure') = 1) drop procedure [dbo]. [sp_putMyAl erts]
GO
/****** object: Table [dbo] . [ACCOUNT] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * rom dbo.sysobjects where id = object_id(N» [dbo] . [ACCOUNT] *) and OBJECTPROPERTYdd, N'lsuserTable') = 1) J J drop table [dbo] . [ACCOUNT] GO
/****** object: Table [dbo] . [ACCOUNTACCESS] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [ACCOUNTACCESS]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo]. [ACCOUNTACCESS] J XJ
GO
/****** object: Table [dbo] . [ACCOUNTADDRESS] Script Date: 6/9/2003 10:40:47 AM ****** if exists (select * from dbo.sysobiects where id - object_id(N' [dbo]. [ACCOUNTADDRESS]1) and OBJECTPROPERTYd'd, N'lsuserTable')
AdrrTo-np +ta = hb1loe M[dhbno]l .. r[AACCCCOOUUNNTTAADDDn-RFE.SςS] ^ ' 1)
GO
/****** object: Table [dbo] . [ADDRESS] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobjects where id = ob ect_id(N' [dbo] . [ADDRESS] ') and OBJECTPROPERTYdd, N'lsuserTable') = 1) ' drop table [dbo] . [ADDRESS] GO 47
/****** object: Table [dbo] . [EMAILCONTACT] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobjects where id = obj ect_id(N' [dbo]. [EMAILCONTACT]') and OBJECTPROPERTYd'd, N'lsuserTable') - 1) drop table [dbo] . [EMAILCONTACT] J J
GO
/****** object: Table [dbo] . [ENTITY] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobjects where id - object_id(N' [dbo] . [ENTITY] ') and
20670716.txt if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [INDIVIDUALPROFILE]') and OBJECTPROPERTYd
'd, N'lsuserTable') = 1) drop table [dbθ] , [INDIVIDUALPROFILE] GO
/****** object: Table [dbo] . [INVESTORACCOUNT] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobiects where id - object_id(N' [dbo]. [INVESTORACCOUNT]') and OBJECTPROPERTYdd, N'lsuserTable') - 1) drop table [dbo] . [INVESTORACCOUNT]
GO
/****** object: Table [dbo] . [INVESTORSTATUS] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [INVESTORSTATUS]1) and OBJECTPROPERTY d, N'lsuserTable') = 1) drop table [dbo] . [INVESTORSTATUS] '
GO
/****** object: Table [dbo] . [MEMBERCONTACT] Script Date: 6/9/2003 10:40:47 AM ****** if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [MEMBERCONTACT]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [MEMBERCONTACT]
GO
/****** object: Table [dbo]. [NEWS] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobjects where id = object_ d(N' [dbo]. [NEWS] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo]. [NEWS] GO
/****** object: Table [dbo] . [ORGANIZATION] script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [ORGANIZATION]') and OBJECTPROPERTYd'd, N'lsuserTable') - 1) drop table [dbo] . [ORGANIZATION]
GO
/****** Object: TTaabbllee [ [ddbboo]] .. [[OOUUSSEERR]] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (sele ct * from dbo.sysobjects where id = ob ect_id(N' [dbo]. [OUSER] ') and
OBJECTPROPERTY( id, N'lsuserTable') - 1) drop table [dbo] . [OUSER] GO
/****** object: Table [dbo] . [PORTFOLIO] script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [PORTFOLIO]') and OBJECTPROPERTYdd, N'lsuserTable') = 1) drop table [dbo] . [PORTFOLIO]
GO
/****** object: Table [dbo] . [PORTFOLIO_VIEW] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [PORTFOLIO-VIEW]1) and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [PORTFOLIO-VIEW] y '
GO
/****** object: Table [dbo] . [QUOTES] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobjects where id = ob ect_id(N' [dbo] . [QUOTES] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [QUOTES]
20670716.txt GO
/****** object: Table [dbo] . [SEQNUM] Script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [SEQNUM]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [SEQNUM] GO
****** object: Table [dbo] . [myalerts] script Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobiects where id = obj ect_id(N' [dbo] . [myalerts]') and OBJECTPROPERTYd
'd, N'lsuserTable') = 1) drop table [dbo] . [myalerts] GO
****** object: Table [dbo].[xxx] s Secrriifpt Date: 6/9/2003 10:40:47 AM ******/ if exists (select * from dbo.sysobjects wh ie.re id = object_ d(N' [dbo] .[xxx]') and
O O
BBJJEECCTTPPRROOPPEERRTTYYdd'
'dd,, NN'lis!userTable') - 1) drop table [dbo] . [xxx_l GO
/****** object: Login ACWEBPRO\CS Script Date: 6/9/2003 10:40:42 AM ******/
20670716.txt if not exi sts (sel ect * from master . dbo . syslogi ns where l ogi nname = N'ACWEBPRO\cs ' ) exec sp_grantlogi n N ' ACWEBPRO\CS ' exec sp_defaultdb N 'ACWEBPRθ\cs ' , N ' PT-George" exec sp_defaultlanguage N 'ACWEBPRθ\cs ' , N ' us-engl i sh'
GO
/****** object: Login ACWEBPRθ\lUSR_ACWEBPRθ Scri pt Date : 6/9/2003 10: 40: 42 AM
******/ if not exists (select * from master.dbo. syslogins where loginname -
N'ACWEBPRO\lUSR_ACWEBPRO') exec sp_grantlogιn N'ACWEBPRO\IUSR_ACWEBPRO' exec sp defaultdb N'ACWEBPRO\IUSR_ACWEBPRO' , N'master' exec sp_defaultlanguage N'ACWEBPRO\IUSR_ACWEBPRO' , N'us_english'
GO
/****** object: user ACWEBPRθ\cs Script Date: 6/9/2003 10:40:42 AM ******/ if not exists (select * from dbo.sysusers where name = N'ACWEBPRθ\cs' and uid <
/****** object: User dbo Script Date: 6/9/2003 10:40:42 AM ******/
/****** object: User IUSR_ACWEBPRO Script Date: 6/9/2003 10:40:42 AM ******/ if not exists (select * from dbo.sysusers where name = N'iUSR_ACWEBPRO' and uid <
EXEC sp_grantdbaccess N'ACWEBPRO\IUSR_ACWEBPRO' , N'IUSR_ACWEBPRO'
GO
/****** object: user ACWEBPRO\CS Script Date: 6/9/2003 10:40:42 AM ******/ exec sp-addrole ember N'db_owner', N'ACWEBPRθ\cs'
GO
/****** object: user IUSR_ACWEBPRO Script Date: 6/9/2003 10:40:42 AM ******/ exec sp_addrolemember N'db_owner', N'IUSR-ACWEBPRO'
GO
/****** object: Table [dbo [ACCOUNT] Scri pt Date : 6/9/2003 10: 40: 48 AM ******/
CREATE TABLE [dbo] . [ACCOUNT]
[AACCCCOOUUNNTTIIDD]] [ [bbigi nt] NOT NULL ,
:AACCCCOOUUNNTTNNUUMMBBEERR] [char] (64) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL ,
=AACCCCOOUUNNTTTTΎYPPEE[] [i nt] NOT NULL ,
:AACCCCOOUUNNTTNNAAMMEE]. [char] (120) COLLATE SQL_Lat nl_General-CPl_Cl_AS NULL , D DAATTEECCRREEAATTEEDD]] [datetime] NOT NULL ,
BALANCE] [money] NULL ,
BEGINEFFECTIVEDATE] [dateti me] NULL ,
ENDEFFECTIVEDATE] [datetime] NULL ,
'LASTCHANGEDBY] [bigint] NULL , :HISTORYID] [bigint] NULL , :DATECLOSED] [datetime] NULL , :CLOSEDBY] [bigint] NULL ,
:ACCOUNTMANAGERID] [bi gi nt] NOT NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [ACCOUNTACCESS] Script Date: 6/9/2003 10: 40 : 49 AM /
CREATE TABLE [dbo] . [ACCOUNTACCESS] (
[INDIVIDUALID] [bigint] NOT NULL , [ACCOUNTID] [bigint] NOT NULL , [ACCESSTYPE] [int] NOT NULL , [E2ECATEGORY] [int] NULL , [E2ERELATIONSHIPTYPE] [int] NULL , [ENTITYID] [bigint] NULL ,
20670716.txt 'STARTDATE] [dateti me] NULL , " ENDDATE] [datetime] NULL , I LASTCHANGEDBY] [bi gint] NULL , [OVERRIDE] [int] NULL ) ON [PRIMARY]
GO
/****** object : Table [dbo] . [ACCOUNTADDRESS] Script Date : 6/9/2003 10: 40: 49 AM
CREATE TABLE [dbo] . [ACCOUNTADDRESS] ( [ACCOUNTID] [bigi nt] NULL ,
:FIRSTNAME] [char] (80) COLLATE SQL_Latinl_General_CPl_Cl-AS NULL , MIDDLENAME] [char] (80) COLLATE SQL_Lat nl_General_CPl_ci_AS NULL , LASTNAME] [char] (80) COLLATE SQL_Lat nl_General_CPl_Cl_AS NOT NULL , LEGALADDRESSID] [bi gint] NULL , MAILINGADDRESSID] [bigint] NULL ,
[ACCOUNTNAME] [char] (9) COLLATE SQL_Lat nl_General-CPl_ci_AS NULL ) ON [PRIMARY] GO
/****** object : Tabl e [dbo] . [ADDRESS] Scri pt Date : 6/9/2003 10: 40: 50 AM ******/
CREATE TABLE [dbo] . [ADDRESS] (
'ADDRESSID] [bi gi nt] NOT NULL ,
NONADDRESSDATA] [char] (80) COLLATE SQL_Lati nl_General_CPl-CI-AS NULL , INFORMATION] [char] (80) COLLATE SQL_Lat nl_General-CPl_ci-AS NULL , RECIPIENTNAME] [char] (80) COLLATE SQL_Lat nl_General-CP_-CI_AS NULL , :DELIVERYADDRESS] [char] (80) COLLATE SQL_Lati nl_General_CPl_CI_AS NULL , APT] [char] (80) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , !CITY] [char] (80) COL LATE SQL-Lati nl-General_CPl_ci-AS NULL , :STATE] [char] (80) COLLATE SQL-Lati n---General_CPl-CI-AS NULL , :ZIP] [char] (80) COLLATE SQL-Lati nl-General_CPl_Cl_AS NULL , COUNTRY] [char] (80) COLLATE SQL_Lati nl_General_cpl_cι_AS NULL ,
: LASTCHANGEDBY] [bi gint] NULL ,
'LASTCHANGEDWHEN] [datetime] NULL ,
:POSTALROUTINGNUMBER] [char] (40) COLLATE SQL-Lati nl_General-CPl_ci-AS NULL
) ON [PRIMARY] GO 50
20670716.txt /****** object: Table [dbo] . [EMAILCONTACT] Script Date: 6/9/2003 10:40:50 AM
Hititititit / v
CREATE TABLE [dbθ] . [EMAILCONTACT] (
[APPLICATIONNAME] [char] (80) COLLATE SQL_Latinl_General-CPl_CI_AS NULL , [EMAILTO] [char] (80) COLLATE SQL_Latinl_General_CPl_ci-AS NULL
) ON [PRIMARY]
GO AM ******/
/****** object: Table [dbo] . [ENTITYACCOUNT] Script Date: 6/9/2003 10:40:50 AM
CREATE TABLE [dbθ] . [ENTITYACCOUNT] (
^ENTITYID] [bigint] NOT NULL ,
'ACCOUNTID] [bigint] NOT NULL ,
'RELATIONSHIP] [int] NOT NULL ,
F STARTDATE] [datetime] NOT NULL ,
=ENDDATE] [datetime] NULL ,
= LASTCHANGEDBY] [bigint] NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [ENUMS] Script Date: 6/9/2003 10:40:50 AM ******/
CREATE TABLE [dbo]. [ENUMS]
[TABLENAME] [char] (80) COLLATE SQL_Latι nl_General_CPl_Cl_AS NOT NULL ,
[COLUMNNAME] [char] (80) COLLATE SQL-Latinl_General_CPl_CI_AS NOT NULL ,
ΕNUMCODE] [int] NOT NULL ,
'ENUMSTRING] [char] (80) COLLATE SQL-Latinl_General_CPl_ci-AS NOT NULL ,
[DISPLAYORDER] [int] NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [HOMEPAGEMESSAGE] Script Date: 6/9/2003 10:40:50 AM ******
CREATE TABLE [dbo] . [HOMEPAGEMESSAGE] (
[MESSAGEID] [bigint] NOT NULL ,
:MESSAGETYPE] [int] NULL ,
'POSTEDWHEN] [datetime] NULL ,
LP0STEDBY] [bigint] NULL ,
[MESSAGE] [char] (2048) COLLATE SQL-Latinl_General-CPl_CI_AS NULL ,
[SHOWDATE] [int] NULL ,
[SHOWREMOVE] [int] NULL ,
[MSGSECTION] [int] NULL ,
[ONHOMEPAGE] [int] NULL , SENDEMAIL] [int] NULL ,
[EMAILFROM] [char] (80) COLLATE SQL-Latinl_General-CPl_CI-AS NULL ,
ΕMAILSUBJECT] [char] (80) COLLATE SQL_Latinl_General-CPl_ci_AS NULL ,
5EMAILB0DY] [char] (2048) COLLATE SQL_Latι'nl_General-CPl_Cl-AS NULL ,
FNAME] [char] (80) COLLATE SQL-Latinl_General_CPl_ci_AS NULL ,
=EXPIREDATE] [datetime] NULL ) ON [PRIMARY] GO
20670716.txt
/****** object: Table [dbo] . [INDIVIDUAL] script Date: 6/9/2003 10:40:51 AM
CREATE
BUSINESSADDRESSID] [bi int] NULL ,
HOMEADDRESSID] [bigint] NULL ,
COMPANY] [char] (80) COLLATE SQL_Latml_General_CPl_Cl_AS NULL ,
JOBTITLE] [char] (80) COLLATE SQL-Latinl_General-CPl_Cl_AS NULL ,
NICKNAME] [char] (80) COLLATE SQL-Latinl-_General_CPl_Cl_AS NULL ,
SECONDARYEMAILADDRESS] [char] (80) COLLATE SQL-Latinl_General-CPl_Cl_AS
NULL ,
EMAILPREFERENCE] [int] NULL LASTLOGIN] [datetime] NULL , NONCUSTOMER] [int] NOT NULL VIP] [int] NULL , SPECIALINSTRUCTIONS] [char] (255) COLLATE SQL-Latin__General_CP3_Cl-AS NULL
20670716.txt
[BELLWETHER] [i nt] NULL ,
[COMPANYHIREYEAR] [bigi nt] NULL ,
[INSTITUTIONALINVESTOR] [i nt] NULL ,
[USERFUNCTION] [char] (40) COLLATE SQL_Lat nl_General-CPl_Cl_AS NULL ) ON [PRIMARY] GO
/****** object : Tabl e [dbo] . [INDIVIDUALACCOUNT] Script Date : 6/9/2003 10: 40: 51 AM ****** /
CREATE TABLE [dbo] . [INDIVIDUALACCOUNT] (
[INDIVIDUALID] [bigint] NOT NULL ,
[ACCOUNTID] [bigint] NOT ULL ,
[RELATIONSHIP] [int] NOT NULL ) ON [PRIMARY] GO script Date: 6/9/2003
[DRIVERSLICENSECOUNTRY] [char] (80) COLLATE SQL_Latinl_General_cPl-Ci_AS
NULL
[DRIVERSLICENSENUMBER] [char] (SO) COLLATE SQL_Lati nl_General_cp:L.Cϊ-AS NULL
[DRIVERSLICENSEEXPIRE] [datetime! NULL .
20670716.txt EMPLOYMENTSECTOR] [i nt] NULL , EMPLOYMENTSECTOROTHER] [char] (255) COLLATE SQL_Lati nl_General-CPl_ci_AS
NULL
[SECTOREXPERTISEOTHER] [char] (255) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
[SECTORINTERESTOTHER] [char] (255) COLLATE SQL_Lat nl_General-CPl-Cl_AS NULL ,
NULL ,
/****** object: Table [dbo] . [INVESTORSTATUS] Script Date: 6/9/2003 10:40:52 AM itirit ititit /
CREATE TABLE [dbo] . [INVESTORSTATUS] (
20670716.txt
[individualid] [bigint] NOT NULL ,
[checkedltem] [char] (80) COLLATE SQL_Latinl_General_CPl_Cl-AS NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [MEMBERCONTACT] Script Date: 6/9/2003 10:40:52 AM ******/
CREATE TABLE [dbo] . [MEMBERCONTACT] (
"MEMBERCONTACTID] [numeric] (10, 0) NOT NULL , ENTITYID] [numeric] (10, 0) NOT NULL , "CONTACTEDBY] [numeric] (10, 0) NULL , CONTACTEDWHEN] [datetime] NULL ,
CONTACTBODY] [text] COLLATE SQL_Latin _General-CPl_CI-AS NULL , CONTACTMETHOD] [numeric] (5, 0) NULL , DEALID] [numeric] (10, 0) NULL , ACTIONSET] [numeric] (1, 0) NULL , 'ACTIONS ETBY] [numeric] (10, 0) NULL , 'ACTIONS ETWHEN] [datetime] NULL , ACTIONUNSETBY] [numeric] (10, 0) NULL , ΆCTIONUNSETWHEN] [datetime] NULL , INCOMING] [numeric] (1, 0) NULL , 'PHONECALLLENGTH] [numeric] (5, 2) NULL , PHONECALLSTATUS] [numeric] (5, 0) NULL , NEWACCOUNTTOPIC] [numeric] (5, 0) NULL
MAINTENANCETOPIC] [numeric] (5, 0) NULL , DEALINQUIRYTOPIC] [numeric] (5, 0) NULL , "DEALRELATEDITEMTOSEND] [numeric] (5, 0) NULL ,
NEWACCOUNTITEMTOSEND] [numeric] (5 , 0) NULL ,
'SPECIALHANDLING] [numeric] (5, 0) NULL ) ON [PRIMARY] TEXTIMAGE-ON [PRIMARY] GO ****** object: Table [dbo]. [NEWS] Script Date: 6/9/2003 10:40:52 AM ******/
CREATE TABLE [dbo] . [NEWS] ( '
[ISSUER] [char] (255) COLLATE SQL-Latinl-General-CPl-CI-AS NULL ,
SYMBOL] [char] (80) COLLATE SQL_Latinl_General-CPl-Cl_AS NULL ,
HEADLINEDATE] [datetime] NULL ,
[DESCR] [char] (80) COLLATE SQL_Latinl_General_CPl_CI_AS NULL ,
[HEADLINE] [char] (1000) COLLATE SQL_Latinl_General-CPl_CI-AS NULL ,
THEME] [int] NULL ,
"RATING] [char] (80) COLLATE SQL_Lat nl_General-CPl-CI-AS NULL ,
ANALYST] [char] (80) COLLATE SQL_Lat nl_General_CPl_ci_AS NULL , source] [char] (20) COLLATE SQL_Lat nl_General-CPl_CI_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [ORGANIZATION] Script Date: 6/9/2003 10:40:52 AM
******/
CREATE TABLE [dbo] . [ORGANIZATION] (
ORGANIZATIONS] [bigint] NOT NULL ,
[NAME] [char] (255) COLLATE SQL_Latinl-General-CPl_CI-AS NOT NULL ,
ORGANIZATIONTYPE] [int] NOT NULL ,
INDUSTRYSECTOR] [int] NULL ,
ADDRESSID] [bigint] NOT NULL ,
[MAINPHONENUMBER] [char] (80) COLLATE SQL_Latinl_General-CPl_Cl_AS NULL ,
WEBSITE] [char] (255) COLLATE SQL-Latinl_General-CPl_cι_AS NULL ,
LASTCHANGEDBY] [bigint] NULL , 'LASTCHANGEDWHEN] [datetime] NULL , !FAXNUMBER] [char] (80) COLLATE SQL_Lat n3--General_CPl_cι_AS NULL ,
MAJORSTATUS] [int] NULL , !MINORSTATUS] [int] NULL ,
[CREATEDWHEN] [datetime] NULL ,
[NICKNAME] [char] (20) COLLATE SQL-Lat nl_General_CPl_Cl_AS NULL ,
20670716.txt FULLNAME] [char] (255) COLLATE SQL_Lat nl-General_CPl-Cl-AS NULL , 'EMAILADDRESS] [char] (80) COLLATE SQL_Lati nl_General_cPl_ci_AS NULL , 'ACTIVITY] [char] (40) COLLATE SQL_Lati nl_General_CPl_ci-AS NULL , 'PRODUCTS] [char] (40) COLLATE SQL_Lati nl_General_CPl-Ci_AS NULL , 'DEPARTMENT] [char] (40) COLLATE SQL_Lati nl-General _CPI_CI_AS NULL
) ON [PRIMARY] GO
/****** object : Tabl e [dbo] . [OUSER] Scri pt Date : 6/9/2003 10 : 40: 52 AM ******/ CREATE TABLE [dbo] . [OUSER] (
"INDIVIDUALID] [bi gi nt] NOT NULL ,
'LASTCHANGEDBY] [bi gint] NULL ,
[ENCRYPTEDPASSWORD] [char] (80) COLLATE SQL_Latinl_General-CPl_CI-AS NOT
' [USERID] [char] (80) COLLATE SQL_Lat nl_General-CPl_CI_AS NOT NULL ,
ΑCCESSTYPE] [i nt] NOT NULL ,
'LASTCHANGEDWHEN] [datetime] NULL ,
'SCREENNAME] [char] (80) COLLATE SQL-Lati nl_General-CPl_Ci_AS NULL ,
'CACHESEQ] [bigint] NOT NULL ,
'ENCRYPTIONCODE] [char] (10) COLLATE SQL_Lat nl_General_CPl_Ci_AS NULL ,
'LASTLOGIN] [datetime] NULL ,
'STARTPAGE] [char] (256) COLLATE SQL-Lati nL-General-CPl-CI-AS NULL ) ON [PRIMARY] GO
/****** object: Tabl e [dbo] . [QUOTES] Script Date : 6/9/2003 10: 40: 53 AM ******/ CREATE TABLE [dbo] . [QUOTES] (
-, r . 20670716. txt
[Offeri ngcode] [varchar] (25) COLLATE SQL_Latinl_General_cpl-CI_AS NOT NULL
' [LASTDATE] [datetime] NULL ,
LASTPRICE] [money] NULL ,
'BID] [money] NULL ,
'ASK] [money] NULL ,
VOLUME] [i nt] NULL ,
[TICKS] [varchar] (25) COLLATE SQL_Lati nl_General-CPl_Cl-AS NULL ,
CHANGE] [numeri c] (18, 0) NULL ,
DAY_LOW] [money] NULL ,
DAY_HIGH] [money] NULL ,
YEAR-LOW] [money] NULL ,
YEAR-HIGH] [money] NULL ,
OPEN-PRICE] [money] NULL ,
CLOSED-PRICE] [money] NULL ) ON [PRIMARY] GO
/****** object : Table [dbo] . [SEQNUM] Script Date: 6/9/2003 10 : 40: 53 AM ******/
CREATE TABLE [dbo] . [SEQNUM] (
[sequence-num] [bigint] NOT NULL ,
[sequence-type] [char] (40) COLLATE SQL-Latinl_General_CP__ci_AS NOT NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [accountcharge] script Date: 6/9/2003 10:40: 53 ****** AM
CREATE TABLE [dbo] . [accountcharge] (
'individuali d] [bigint] NULL , accountid] [bigint] NULL , payment-type] [int] NULL ,
[paypal account] [varchar] (80) COLLATE SQL_Lati nl-General CPl_ci_AS NULL changedate] [datetime] NULL ~ '
) ON [PRIMARY] GO
[post_del iveryaddress] [varchar] (80) COLLATE SQL-Lati nl-General _CP1_CI_AS
NULL
[post_city] [varchar] (80) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , [post_state] [varchar] (80) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , [post_zip] [varchar] (80) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , [post-country] [varchar] (80) COLLATE SQL-Lati nl_General-CPl_CI_AS NULL , [post-bi rthdate] [varchar] (80) COLLATE SQL-Lat nl_General_cpl_ci_AS NULL , i post-sεnstring] [varchar] (80) COLLATE SQL_Lati nl_General_CPl_CI_AS NULL , [post taxid] [varchar] (80) COLLATE SQL-Lati nl_General_CPl_Ci_AS NULL , [post-url] [varchar] (80) COLLATE SQL-Lat nl_General_CPl_Cl_AS NULL , [post- ebaccess] [int] NULL ,
πl_General_CPl_CI_AS NULL
/****** object: Table [dbc] . [grcp-e-bers] Script Date: 6/9/2003 10:40:53 AM
CREATE -A3LE [dbo] . [ rcupj-e-bers] ( [grc-pid] [b cint] NOT NULL , ■ ncivid-alidϊ [bigint] NULL
) ON [PRIMARY] GO alaccess] Script rate: 6/9/2003 10:40:53 AM (
****
■** object: Table [dbo] ;yalerts] Script Date: 6/9/2003 10:40:53 AM ******/ CREATE TASLE
, [dbo] -y yaal l eerrts]
[■; c'vc.a ϊd] [big int] NOT ULL
-boll] varchar] (SO) COLLATE SQL-Laf" n-Geπeral-CPl-Cl-AS NULL
~ ol2] varchar] (SO) COLLATE SQL-Lati πl_General_CPl_cl_AS NULL syzo 3] Lvarchar] (SO) COLLATE SQL-La i n-L_Geπeral-CPl_CI_AS NULL
) CN [PRIMARY]
GO
20670716.txt /****** object: Table [dbo] , [~yalertsτessages] scr-'pt Date: 6/9/2003 10:40:54 AM
CREATE "ABLE [dbo] . [τyal erts-essages] (
[id] [bigint] IDENTITY (1, 1) NOT NULL
[sy-bόl] [varcuar] (SO) COLLATE SQL_Lat nl_General_CPl_ci_AS NULL reportdate] [dateti~e] NULL ,
[report" ink] [varchar] (256) COLLATE ΞQL_Latir, _General_cP_C _AS ULL
) ON [FRIVARY] GO
/****** Object: Table [c'bc] , [-.sergrcLps] Script Date: 6/9/2C03 10:40:54 AM
CREATE TABLE [dbo] . [usergrcLps] (
[id] [b-gιr,t] IDENTITY (1, 1) NOT NULL ,
[croupdescripticπ] [char] (SO) COLLATE SQL-Lati nl_Gereral-CPl_CI_AS NULL ) ON [PRIMARY] GO
/****•** object: Table [dbo] . [xxx] script Date: 6/9/2003 10:40:54 AM ******/
CREATE TABLE [dbo] . [XXX] (
[Col CCI[ [varc ar] (SCCO) COLLATE SQL_Lati-l_Gereral_CPl_CI-AS NULL
[Co"CC2 [varchar] (SCCO) Cv.O-,L..L-.A-.T,E- S-QL_.__L.-a-.t.i,nl—_Ge-re*.r,a-.l,__cCPl_,CI_AS NULL rcolCCS varchar (SOCO) COLLATE QL—atinl_Ger,eral-CPj-_Cl_AS NULL
[Co 1CC4 [varchar (SCCO) CCLLA~E SQL-Lati nl_Gereral_CPl_ci-AS NULL rColCC5[ "varc ar (SCCO) COLLATE SQL_Lat-'nl_Gereral-CPl_.Cl_AS NULL
[Co"CC6[ [va c εr[ (SCCO) COLLATE SQL_ άt" rl_Gereral-CPl-Ci_AS NULL
[CθιCC7" [varchar (SCCO) COLLATE SQL-Lati rl_Gereral-CPl_c _AS NULL
[ o1! CCS [varchar (SCCO) COLLATE SQL-Lati l_Gereral_CPl_Cl_AS NULL
;coicc9] [varchar (SCCO) COLLATE SQL-Lati n _Ger,eral_CPl_ci_JAS NULL
) ON [FR '-'ARY] GO
ALTER "ABLE rcbo] . [^ -1 erts] ΛlTH NOCHECK ADD
CONSTRAINT [PK_-~ya i erts] PRIMARY KEY CLUSTERED
[individual d]
) V.ITH FILLFACTOR = 90 ON [PRIMARY] GO
SET QUCTED_IDENTIFIER ON
SET ANSI-NULLS OFF GO
/****** object: Stored Procedure dbo. sp_p-.tvyAl erts Script Date: 6/9/2003 10:40:54 AM ******/
CREATE PROCEDURE s:-_p-.tvyAl erts (3 d b-'gint, "s.vboll varchar(SO), @sy-bol2 varchar(SO), Ssybol varchar(SO)) as Declare (.indivi ual id bigint BEGIN TRAN
Select Sird vidual d = individualid From ryalerts V.here individ alid = 3 f Gi ndiv duaπd is Null ert nto -yalerts ( individualid, sy-boll, syτιbo!2, s m ols )
.es(3ld, sol 1, Ssyτbol2, @syrbo!3) Els ee
-odε ttee -yalerts Set sy-boll = Ss ~boll, s>™bol 2 = Ssybol2, syπbo!3
= 3s "bol3 -'.here divid alid = Gindiv dualid
CC'.'MIT GO
2C670716.txt SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
GRANT EXECUTE ON [dbo] . [sp_p.1t,.,yAl erts] TO [p blic]
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS OFF
GO
/****** object: stored Frccedure dbo, sp_~cdifyAcccu'nt script Date: 6/9/2003 10' 0: 54 AM ******/
CREATE FRCCEDURE sp_~cdifyAcccι.rιt (Si rdi vi d al i d bigint, Saccc ntid bigint,
Spre_t tl e -'nt, Spre_fr,a~e varchar(SO), Spre_mι varchar(SO), Spre I'a-e varc ar(SO), Spre-suffix int,
3pre_n- c r.a-e varc'-arζSO) , 3pre_position varchar(SO), S- re userid varchar(SO), Spre-screerra-e varchar(SO) ,
3pre_phcre varchar(SO), Spre.fax varchar(δθ), Spre_cell varchar(SO), Spre-e-ail varc ar(SO), :-pre_cc"pany varchar(SO) ,
3pre_acdressid b"' girt, 3pre_" nfcr-ation varchar(SO), "pre deliveryacdress varchar(SO), 3pre_city varchar(SO) ,
3pre_state va-char(SO) , 3pre_zip varchar(SO), Spre_cc-.ntry varchar(SO), Spre_bi rtudate varchar (SO),
3pre_ss'*stri'-g varc ar(SO) , Spre_taxid varchar(SO), Spre_url varchar(SO), 3pre_v,ebac cess int, 3pre_brckerage int,
3pre_pεy~eπt_type int, 3pre_paypal varchar(SO), Spre_status int, 3pre_type int,
5pre_view_featLredcrders int, 3pre_vie _fi r-crders int, 3pre_v ev-p-'pel i reorders int, Sp r e_vi evv_c ens oli datedorders int,
20670716.txt BEGIN TRAN update di v
" dual set firstname = ©frame, micdlename = mι , lastnεme = ©Iname, hcπorificortitle = 3r
;tle, lastnaresuffix - ©suffix, view_feεtL.redorders = ©view_featuredcrders, v ew_fi
r~crders = Sviev,_fi reorders, v
'evi'-pipelirecrders = ©view_pipelιnecrders, view_ccι≤o"i atedorders = 3v ew_ccπsoli datedorders, v
'ev.-allprivatefurds = ©view-allprivatefunds, orderret = Sordernet, vie,v_bid = Sview_bid, view_offer = Sview-offer, vie _last =
Sview-last, , . , -.,. -..-i -. _._-
'eatures-cid = 3features_bid, f eatures_offer =
Sfeatures offer, features_last = 3features_last, f rm_bid = Gfirm_bid, f rm_cffer = Sfirm_offer, firm_l st =
©firr ast, . -, , , , _ , .. , , , , ., ,_ p- el re_bι d = 3p pel ire-b d, pipe! "ne_offer -
Spipeline-offer, pipeline-last = ©pipelire ast, pπvate_bιd = 3pπvεte_b d, pπvate_offer = @pπvate_offer, private last = ©private-last,
H ~ consolidated-bid = Sccrsoli dated-bid, ccnsolidated-offer =
Sccnsoli ated-offer, crder_bid = 3crder_bid, order-offer = ©crder_offer, off
Jcep
μc-e -.rber = Sphere, faxnu ber = ©fax, celluiarphorer-
'-ber = Scell, lastcharged.'.hen = getdateO, lastcha-gecby = ©chai-gedby , e-,ai 1 address = ©email, ccrpany - 'Srr-canv. -'cbtitle = Spcsif
'cn, nickname - ©nickrame
y'
J where -
'rdi idjalid = ©individualid update individualaccess set webaccess = ©webaccess, eεgreement
©accountid = ©screennεme, lεstc an
Update address set infcr-ation = Sinfcr-ation, deliveryaddress - Sdeliveryaddress, city = Scity, state = Sstate, zip = Szip, country = ©country where addressid - ©addressid update irciv'dualinvestor set birthdate = ©birthdate, ssnstring = ©ssnstring, tin - ©taxid, website = ©url, lastchangedby - Schangedby, ^ lεstcharcedwhen = getdateO where irdividualid = Gind vidualid
Update acccuntcharce set pεy-ent-type = ©payment-type, paypal-εcccunt = 3paypal, .cha-gedate =,getdεte()
/.here ' ndi v ca n d = ©individualid and accountid - ©accountid
-.pdate brckerdeal eraccount set status = ©status, accounttype = ©tvpe, lastchangedby = Schangedby, lastchargedwhen = getdateO /.here accountid = ©accountid nsert into accounthistory ( i rdi dualid, accountid, pre_title, pre_ name, pre_mi , pre-lname, pre_suffix, pre_nickπame,
,
val
20670716.txt ©paypal , ©status, ©type, ©view-bid, ©view-offer, ©view_last, ©features-bid, ©features-offer, ©features-last, ©firn_bid, ©firm-offer, ©firnulast, ©pipeline-bid, ©pipeline-offer, ©pipeline-last, ©private-bid, ©private-offer, ©private-last, ©consolidated-bid, ©consol idated-offer, ©order-bid, ©order-offer, getdateO, ©changedby
COMMIT
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
GRANT EXECUTE ON [dbo] . [sp-modifyAccount] TO [public] GO
PC-George. xt /****** object: Database PC-George Script Date: 6/9/2003 10:44:24 AM ******/ IF EXISTS (SELECT name FROM master .dbo.sysdatabases WHERE name - N'PC-George')
DROP DATABASE [PC-George] GO
CREATE DATABASE [PC-Georqe] ON (NAME - N' PC-George_Data' , FILENAME = N' c:\webSites\data\MSSQL\Data\PC-George-Data.MDF' , SIZE = 13, FILEGROWTH - 10%) LOG ON (NAME = N'PC-George_Log\ FILENAME =
N'C:\webSites\data\MSSQL\Data\PC-George-log.LDF' , SIZE - 2, FILEGROWTH = 10%) COLLATE SQL-Latinl_General-CPl_Cl_AS GO exec sp_dboption N'PC-George', N'autoclose', N'false' GO exec sp_dboption N'PC-George', N'bulkcopy', N'false' GO exec sp_dboption N'PC-George', N'trunc. log', N'false'
GO exec sp_dboption N'PC-George', N'torn page detection', N'true' GO exec sp-dboption N'PC-George*, N'read only', N'false'
GO exec sp_dboption N'PC-George', N'dbo use', N'false'
GO exec sp_dboption N'PC-George', N'single', N'false'
GO exec sp_dboption N'PC-George', N'autoshrin ' , N'false' GO exec sp_dboption N'PC-George', N'ANSI null default', N'false' GO exec sp_dboption N'PC-George', N' recursive triggers', N'false' GO exec sp_dboption N'PC-George', N'ANSI nulls', N'false' GO exec sp-dboption N'PC-George', N'concat null yields null', N'false' GO exec sp-dboption N'PC-George', N'cursor close on commit', N'false' GO exec sp_dboption N'PC-George*, N'default to local cursor', N'false' GO exec sp_dboption N'PC-George', N' quoted identifier', N'false' GO exec sp_dbopt on N'PC-George', N'ANSI warnings', N'false' GO exec sp-dboption N'PC-George', N'auto create statistics', N'true* GO
PC-George. txt exec sp_dboption N'PC-George', N'auto update statistics', N'true' GO use [PC-George] GO
/****** object: Stored Procedure dbo.sp-CheckFundsymbol Script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_checkFundSyrnbol]') and OBJECTPROPERTYd'd, N'lsProcedure") = 1) drop procedure [dbo]. [sp_checkFundSymbol]
GO ****** object: Stored Procedure dbo.sp_Placeθrder Script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id - object id(N'[dbo].[sp_Placeθrder]') and OBJECTPROPERTYd'd, N'lsProcedure') = 1) drop procedure [dbo]. [sp_Placeθrder]
GO
/****** object: Stored Procedure dbo.sp_CreateNotebook Script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_CreateNotebook]') and OBJECTPROPERTYd'd, N'lsProcedure') = 1) drop procedure [dbo] . [sp_CreateNotebook]
GO ****** object: Stored Procedure dbo.sp_GetANumber Script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = object-id(N'[dbo].[sp_GetANumber]') and OBJECTPROPERTY d, N'lsProcedure') - 1) drop procedure [dbo] . [sp_GetANumber]
GO
/****** object: Stored Procedure dbo. sp_GetθrderBook script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N,[dbo].[sp_GetorderBook]*) and OBJECTPROPERTYd'd, N'lsProcedure') = 1) drop procedure [dbo] . [sp_GetθrderBook]
GO
/****** object: Stored Procedure dbo.sp_GetStepcount Script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N'[dbo].[sp_GetStepcount] ') and OBJECTPROPERTYd'd, N'lsProcedure') = 1) drop procedure [dbo] . [sp_GetStepCount]
GO
PC-George. txt
/****** object: Stored Procedure dbo.sp_Matchθrders Script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N'[dbo].[sp Matchorders]1) and OBJECTPROPERTYd'd, N'lsProcedure') - 1) drop procedure [dbo] . [sp_Matchθrders]
GO ****** object: Stored Procedure dbo. sp_Re cord Email Script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id - object_id(N'[dbo].[εp RecordE ail]1) and OB ECTPROPERTYd'd, N'lsProcedure') = 1) drop procedure [dbo] . [sp_RecordEma l]
GO ****** object: Stored Procedure dbo.sp-RenameSymbol Script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [sp enameSymbol] ') and OB ECTPROPERTYd'd, N'lsProcedure') - 1) drop procedure [dbo]. [sp_RenameSymbol]
GO
****** object: Stored Procedure dbo.sp_GetFundsReturnQt Script Date: 6/9/2003
1 .0.:.4f4l.:2.9. A rMl'l ******/ I if exists (select * τ frroomm d dbboo..ssyyssoobbjieeccttss wwhheerree id = object_id(N' [dbo] . [sp_GetFundsReturnQt] ') and OOBBJJEECCTPROPERTYdd, N'lsProcedure') - drop procedure [dbo] . [sp-GetFundsReturnQt] GO
/****** object: Stored Procedure dbo.sp_GetReturnSpreadYr Script Date: 6/9/2003
N'lsProcedure') -
/****** object: Stored Procedure dbo.sp_UpdateBidoffer Script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id - object_id(N' [dbo]. [sp UpdateBidoffer]') and OBJECTPROPERTYd'd, N'lsProcedure') - 1) drop procedure [dbo].[sp_UpdateBidθffer]
GO
/****** object: Stored Procedure dbo.sp_changeBidoffer_value Script Date:
/****** object: view dbo.ALL_0RDERS_viEW Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = object_id(N'[dbo].[ALL-ORDERS-ViEw]') and OBJECTPROPERTYd'd, N'isview*) - 1) drop view [dbo] . [ALL_ORDERS_VIEW] GO
/****** object: view dbo. MarketPl ace_View Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobjects where id - object_id(N' [dbo]. [MarketPl ace-View]') and OBJECTPROPERTYd'd, N'IsView") - 1) drop view [dbo] . [MarketPl ace_View]
GO
/****** object: view dbo.ORDER-MATCH Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [ORDER_MATCH] ') and OBJECTPROPERTYdd, N'IsView') = 1) drop view [dbo] . [ORDER_MATCH] GO
/****** object: view dbo. order List Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object_i (N' [dbo] . [Order List]') and OBJECTPROPERTYdd, N'isview') = 1) J J drop view [dbo]. [order List] GO
/****** object: View dbo. Temp Symbols Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [Temp symbols]') and OBJECTPROPERTYd'd, N'isview') = 1) drop view [dbo]. [Temp Symbols] GO
/****** object: View dbo.V_ORDERS Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id - object_id(N' [dbo]. [V ORDERS]') and OBJECTPROPERTYdd, N'isview') = 1) J J drop view [dbo] . [V_ORDERS] GO
/****** object: view dbo.B dofferCount_view Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobjects where id =
PC-George. txt object_id(N' [dbo]. [Bi doff ercount-View]') and OBJECTPROPERTYdd, N'isview') = 1) drop view [dbo] . [B doff erCount_View] GO
/****** object: view dbo. COMPOSITE Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [COMPOSITE]') and OBJECTPROPERTYdd, N'isview') = 1) drop view [dbo] . [COMPOSITE]
GO
/****** object: View dbo.0RDERSTATUS_viEW Script Date: 6/9/2003 10:44:29 AM
******/ if exists (select * from dbo.sysobjects where id = θbject_ld(N'[dbθ]. [ORDERSTATUS-VIEW]') and OBJECTPROPERTYd'd, N'lSView') - 1) drop view [dbo] . [ORDERSTATUS-VIEW] GO
/****** object: view dbo.ORDER-MATCHold Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobjects where id - object_id(N'[dbo]. [ORDER.MATCHold]1) and OBJECTPROPERTYd'd, N'isview') - 1) drop view [dbo]. [ORDER-MATCHold]
GO
/****** object: view dbo. Order List old script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobjects where i idi = object_id(N' [dbo]. [Order List old]') and OBJECTPROPERTYd'd, N'isview') = 1) drop view [dbo] . [order List old] GO
/****** object: view dbo. SYMBOLS-VIEW Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id - θbjeCt_id(N' [dbo]. [SYMBOLS-VIEW]') and OBJECTPROPERTYd'd, N'isview') - 1) drop view [dbo] . [SYMBOLS_VIEW]
GO
/****** object: View dbo. BestBid-View script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object-id(N" [dbo]. [BestBid-View]') and OBJECTPROPERTYdd, N'IsView') = 1) drop view [dbo] . [BestBid-View]
GO
/****** object: view dbo.Bestoffer_View Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = object_id(N,[dbo].[Bestoffer_View]'') and OBJECTPROPERTYd'd, N'isview*) = 1) drop view [dbo]. [Bestθffer_View] GO
/****** object: view dbo.Order_OwnerV ew Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = object_id(N'[dbo].[θrder_θwnerview]') and OBJECTPROPERTYd'd, N'isview') = 1) drop view [dbo].[θrder_θwnerView] GO
/****** object: Table [dbo] . [Agents] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = ob ect_id(N' [dbo] . [Agents] ') and OBJECTPROPERTYdd, N'lsuserTable') = 1) drop table [dbo] . [Agents] GO
PC-George. txt /****** object: Table [dbo] . [Comments] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [Comments]') and OBJECTPROPERTYd'd, N'lsuserTable') - 1) drop table [dbo] . [Comments] GO
/****** object: Table [dbo] . [EMAlL_FOOTERS] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id - object_id(N'[dbo].[EMAlL_FOOTERS]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [EMAIL_FOOTERS] GO
/****** object: Table [dbo] . [EMAIL_HISTORY] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id - object_id(N' [dbo]. [EMAIL-HISTORY]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [EMAIL-HISTORY]
GO
/****** object: Table [dbo] . [EMAIL-TAGS] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = obj ect_id(N' [dbo] . [EMAIL-TAGS] ') and OBJECTPROPERTYdd, N'lsuserTable') - 1) drop table [dbo] . [EMAIL_TAGS] GO
/****** object: Table [dbo] . [EMAIL-TEMPLATES] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id - obj ect_id(N' [dbo]. [EMAIL-TEMPLATES]') and OBJECTPROPERTYdd, N' IsuserTable') - 1) drop table [dbo] . [EMAIL_TEMPLATES]
GO
/****** object: Table [dbo] . [FundReturns] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = ob ect_id(N' [dbo]. [FundReturns]') and OBJECTPROPERTYdd, N'lsuserTable') = 1) drop table [dbo]. [FundReturns] GO
/****** object: Table [dbo] . [GE EQUITY] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id - object_id(N' [dbo] . [GE EQUITY]') and OBJECTPROPERTYd , N'lsuserTable') = 1) drop table [dbo] . [GE EQUITY] GO
/****** object: Table [dbo] . [GetANumber] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [GetANumber]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [GetANumber] GO
/****** object: Table [dbo] . [Neworders] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = obj ect_id(N' [dbo]. [Neworders] ') and OBJECTPROPERTYd'd, N'lsuserTable') - 1) drop table [dbo] . [Neworders] GO
/****** object: Table [dbo]. [OfferingMaterials] Script Date: 6/9/2003 10:44:29
PC-George.txt AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [OfferingMaterials]') and OBJECTPROPERTYdd, N'lsuserTable") - 1) drop table [dbo] . [OfferingMaterials]
GO
/****** object: Table [dbo] . [Trades] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = obj ect_id(N' [dbo] . [Trades] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [Trades]
/****** ob jject: Table [dbo]. [allfunds] script Date: 6/9/2003 10:44:29 AM ******/ if exists ((s-.e.lect * from dbo.sysobiects where id = obj ect_id(N' [dbo] . [allfunds] ') and OBJECT PPRROOPPEERRTTYYddd-,, N ..'l -.s-userTable') = 1) drop table [dbo] . [allfunds] GO
/****** Object: Table [dbo] . [allfundsxx] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id - ob ect_id(N' [dbo] . [allfundsxx] ') and OBJECTPROPERTYdd, N'lsuserTable') = 1) drop table [dbo] . [allfundsxx] GO
/****** object: Table [dbo] . [companies] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = object_ d(N' [dbo] . [companies]') and OBJECTPROPERTYdd, N'lsuserTable') = 1) drop table [dbo]. [companies] GO
/****** object: Table [dbo] .[companies2] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = object_ d(N' [dbo] . [companies2] ') and OBJECTPROPERTYdd, N'lsuserTable') = 1) drop table [dbo].[companies2]
GO
/****** object: Table [dbo] . [f undRequest] Script Date: 6/9/2003 10:44:29 AM
PC-George. txt if exists (select * from dbo.sysobiects where id = object_id(N' [dbo] .[fundRequest]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [fundRequest] GO
/****** object: Table [dbo] .[fund-industry] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = obiect_id(N' [dbo]. [fund-industry]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [fund-industry]
GO
/****** Object: Table [dbo] . [fund_org_type] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobjects where id - obiect_id(N'[dbo].[fund-org-type]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [ und_org_type] GO
/****** object: Table [dbo] . [fundholdings] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobjects where id - obiect_id(N' [dbo]. [fundholdings]') and OBJECTPROPERTYd'd, N'lsuserTable') - 1) drop table [dbo] . [fundholdings]
GO pt Date: 6/9/2003 10:44:29 AM ******/ d = object_id(N' [dbo] . [fundnews] ')
/****** object: Table [dbo]. [fundnewsheadlines] Script Date: 6/9/2003 10:44:29
AM ******/ if exists (select * from dbo.sysobjects where id = obiect_id(N' [dbo]. [fundnewsheadlines]') and OBJECTPROPERTY d, N'lsuserTable') = 1) drop table [dbo]. [fundnewsheadlines]
GO
/****** object: Table [dbo] . [fundtypes] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id - obj ect_ d(N' [dbo] . [fundtypes] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [fundtypes] GO
/****** object: Table [dbo]. [indications] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [indications]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo]. [indications] GO
/****** object: Table [dbo]. [industry] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id - object_id(N' [dbo]. [industry] ') and OBJECTPROPERTYd'd, N'lsuserTable') - 1) drop table [dbo]. [industry] GO
/****** object: Table [dbo]. [instruction] script Date: 6/9/2003 10:44:29 AM
****** if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [instruction]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1)
PC-George. txt drop table [dbo]. [instruction] GO
/****** object: Table [dbo]. [Ipinvestors] script Date: 6/9/2003 10:44:29 AM ****** if exists (select * from dbo.sysobiects where id = object_id(N' [dbo] .[Ipinvestors]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo]. [Ipinvestors] GO
/****** object: Table [dbo] . [notebook] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo] . [notebook] ') and OBJECTPROPERTYd'd, N'lsuserTable*) = 1) drop table [dbo] . [notebook] GO
/****** object: Table [dbo]. [notebook_def nitions_old] Script Date: 6/9/2003
10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo] . [notebook-definitions-old] ') and OBJECTPROPERTY ,
N'lsuserTable') - 1) drop table [dbo]. [notebook_definitions_old]
GO
/****** object: Table [dbo] . [notebook-types] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobjects where id = object id(N' [dbo]. [notebook-types]1) and OBJECTPROPERTYd'd, N'lsuserTable") = 1) drop table [dbo] . [notebook-types]
GO
/****** object: Table [dbo] . [orders] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = ob ect_id(N* [dbo] . [orders] ') and OBJECTPROPERTYd'd, N'lsuserTable*) = 1) drop table [dbo] . [orders] GO
/****** object: Table [dbo] . [org_type] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo] . [org_type] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [org_type] GO
/****** object: Table [dbo] . [permissions] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [permissions]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo]. [permissions] GO
/****** object: Table [dbo] . [positions] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [positions] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo]. [positions]
PC-George. txt GO
/****** object: Table [dbo]. [potent albuyers] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobiects where id = object_id(N' [dbo]. [potentialbuyers]') and OBJECTPROPERTYdd, N'lsuserTable') = 1) drop table [dbo] . [potentialbuyers]
GO
/****** object: Table [dbo]. [pnvatecompanies] Script Date: 6/9/2003 10:44:29 AM if exists (select * from dbo.sysobjects where id - object_id(N'[dbo]. [pnvatecompanies]') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [pnvatecompanies]
GO
/****** object: Table [dbo] . [quotes] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [quotes]*) and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [quotes] GO
/****** object: Table [dbo]. [rep] script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = ob ect_id(N' [dbo] .[rep] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo]. [rep] GO
/****** object: Table [dbo] . [symbols] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object_id(N' [dbo]. [symbol s] *) and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo]. [symbols] GO
/****** object: Table [dbo] . [xx] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id - ob ect_id(N' [dbo] .[xx] ') and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo].[xx] GO
/****** object: Table [dbo] . [xxx] Script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id - object_id(N' [dbo]. [xxx] *) and OBJECTPROPERTYd'd, N'lsuserTab e') = 1) drop table [dbo]. [xxx] GO
/****** object: Table [dbo] . [xxxxx] script Date: 6/9/2003 10:44:29 AM ******/ if exists (select * from dbo.sysobjects where id = object_ d(N' [dbo] . [xxxxx] *) and OBJECTPROPERTYd'd, N'lsuserTable') = 1) drop table [dbo] . [xxxxx] GO :24 AM ******/ = N'ACWEBPRO\CS')
****** object: Login ACWEBPRO\IUSR_ACWEBPRO Script Date: 6/9/2003 10:44:24 AM if not exists (select * from master. dbo. syslogins where loginname - N'ACWEBPRO\IUSR_ACWEBPRO')
nd
/****** object: user dbo Script Date: 6/9/2003 10:44:25 AM ******/ /****** object: DatabaseRol e nyppe_users script Date: 6/9/2003 10:44:25 AM ****** / if not exists (sel ect * from dbo. sysusers where name - N' nyppe_users' and uid > 16399) ,_, ,
EXEC sp_addrole N nyppe_users '
GO
/****** object: user
Script Date: 6/9/2003 10:44:25 AM exec sp_addrolemember N'db_datareader' , N'ACWEBPR0\IUSR_ACWEBPR0' GO
/****** object: user ACWEBPRO\IUSR_ACWEBPRO Script Date: 6/9/2003 10:44:25 AM exec sp_addrolemember N'db-datawriter' , N'ACWEBPRO\IUSR_ACWEBPRO' GO
/****** object: User ACWEBPRO\IUSR_ACWEBPRO Script Date: 6/9/2003 10:44:25 AM exec sp-addrolemember N'db_owner', N'ACWEBPRO\IUSR_ACWEBPRO' GO
/****** object: Table [dbo] . [Agents] Script Date: 6/9/2003 10:44:30 AM ******/
CREATE TABLE [dbo] . [Agents] (
[id] [bigint] IDENTITY (1, 1) NOT NULL ,
Agent] [varchar] (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , ΑgentName] [varchar] (50) COLLATE SQL-Latinl_General_CPl_Cl_AS NULL
) ON [PRIMARY]
GO
/****** object: Tabl e [dbo] . [Comments] Scri pt Date: 6/9/2003 10:44:31 AM ******/ CREATE TABLE [dbo] . [Comments] (
[id] [bigint] IDENTITY (1, 1) NOT NULL ,
:θrderld] [bi gint] NULL ,
ΕntryDate] [datetime] NULL ,
!Agentld] [bigint] NULL , rice] [float] NULL , ilarAmount] [float] NULL ,
!pri ceType] [nvarchar] (255) COLLATE SQL-Lati nl_Genera1-CPl_Cl_AS NULL , comment] [nvarchar] (255) COLLATE SQL-Lati nl_General_cPl_ci_AS NULL ,
"Entered By] [nvarchar] (255) COLLATE SQL-Lati n-L.General_CPl_C._AS NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [EMAIL-FOOTERS] Script Date: 6/9/2003 10:44: 32 AM
CREATE TABLE [dbo] . [EMAIL-FOOTERS] (
[ID] [int] IDENTITY (1, 1) NOT NULL ,
:FOOTER_TAG] [varchar] (25) COLLATE SQL_Lat nl_General_CPl_CI_AS NOT NULL ,
:FOOTER_TEXT] [varchar] (5000) COLLATE SQL-Lati nl-General-CPl-CI-AS NULL ,
PC-George. txt [Enabled] [int] NULL , [SystemDate] [datetime] NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [EMAIL_TEMPLATES] script Date: 6/9/2003 10:44:32 AM it it it it it it /
ΓRFΔTF TABLE [dbo] . [EMAIL-TEMPLATES] (
LKLAie ' [Tem late ag] [varchar] (25) COLLATE SQL-Lati nl_Genera1-CPl_ci_AS NOT NULL , Description] [varchar] (150) COLLATE SQL-Lat nl_General_CPl_CI_AS NULL , TemplateSubject] [varchar] (150) COLLATE SQL-Lati nl_General_CPl-Cl_AS NULL
' TTemDlateBody] [varchar] (5000) COLLATE SQL-Lat nl_Genera1_CPl_CI-AS NULL ,
!FooterTag] [varchar] (25) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , !FromTag] [varchar] (25) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , !ISHTML] [bit] NULL , :EχtraEtnails] [varchar] (300) COLLATE SQL_Latin-L.General_CPL_CI_AS NULL
) ON [PRIMARY] GO AM
,
/****** object: Table [dbo].[GE EQUITY] script Date: 6/9/2003 10:44:32 AM
CR FATE TABLE [dbθ].[GE EQUITY] ( cKtAit I P rf t bol] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl-CI_AS NULL ,
:fundname] [nvarchar] (255) COLLATE SQL_Latinl_General_CP-L_C__AS NULL ,
:fundxrefj [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , vintageyear] [int] NULL ,
'commitment] [float] NULL
PC-George. txt ) ON [PRIMARY] GO
/****** object: Table [dbo] . [GetANumber] script Date: 6/9/2003 10:44:32 AM
CREATE TABLE [dbo] . [GetANumber] (
[IdName] [varchar] (50) COLLATE SQL_Latinl_General-CPl_CI_AS NOT NULL ,
[idvalue] [int] NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] . [Neworders] script Date: 6/9/2003 10:44:32 AM
CREATE TABLE [dbo] . [Neworders] (
[ID] [intj IDENTITY (1000, 1) NOT NULL , Portfol oNumber] [int] NULL , ortfolioLetter] [varchar] (5) COLLATE SQL_Latinl_Genera1_CPl-CI-AS ULL . OrderDateRecenved] [datetime] NULL ,
;τicketτyρe] [varchar] (50) COLLATE SQL-Lati nl__6eneral_CPl_ci-AS NULL , Accountid] [nnt] NULL ,
Memberld] [varchar] (50) COLLATE SQL-Lati nl_General-CPl_Ci_AS NULL , MemberAction] [varchar] (25) COLLATE SQL-Lat nl_General-CPl_ci_AS NULL . symbol] [varchar] (25) COLLATE SQL-Lati nl_General-CPl_.ci._AS NULL , cmtAmt] [money] ULL , price] [money] NULL , M nCmtAmt] [money] NULL ,
Ti einForce] [varchar] (50) COLLATE SQL-Lat nl_General_CPl_ci_AS NULL , TransactionType] [varchar] (50) COLLATE SQL-Lat nl-General CPl_CI_AS NULL . ScheduledClosmgDate] [datetime] NULL , initialofferingDate] [datetime] NULL , SellersAcquisitionDate] [datetime] NULL , [PlacementManager] [varchar] (50) COLLATE SQL_Latinl_General CPl_CI_AS NULL
[RelationshipManager] [varchar] (50) COLLATE SQL-Lati nl_General-CPl-Cl_AS
NULL
"Comments] [varchar] (250) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL .
!orderXRef] [int] NULL ,
:0rderτicketsigned] [bit] NULL ,
OrderPlaceAGSigned] [bit] NULL ,
:θrderθffDocstwocos] [bit] NULL ,
'fundgpper ission] [bit] NULL ,
'fundgppermissionverbal] [bit] NULL , pipeline] [bit] NULL , 'featured] [bit] NULL , feepct] [money] NULL , feeunfunded] [money] ULL ) ON [PRIMARY] GO :44:33
/****** object: Table [dbo] . [STATUS-DESCRIPTIONS] Script Date: 6/9/2003 10:44:33
CREATE TABLE [dbo] . [STATUS-DESCRIPTIONS] ( [id] [int] OT NULL ,
PC-George. txt [StatusDescri ption] [varchar] (80) COLLATE SQL_Lati nl_General-CPl_Cl_AS NULL
) ON [PRIMARY] GO
,
/****** object : Tabl e [dbo] . [al lfunds] scri pt Date : 6/9/2003 10 : 44 : 33 AM ******/
CREATE TABLE [dbo] . [a 1 funds] ( sponsor-i d] [int] IDENTITY (1, 1) NOT NULL
[sponsor_name varchar] (50)" COLLATE SQL_Latι' nl-General_CPl_.Cl_AS NULL , [sponsor_desc ntext] COLLATE SQL-Lati n-l_General-CPl_CI-AS NULL , [sponsor_typej [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_CI-AS NULL , [p ' ceStatύs] [varchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , rι nit_bi d] [float] NULL , i nit_offer] [fl oat] NULL , address_l] [nvarchar] (255) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , address_2] [nvarchar] (50) COLLATE SQL_Lati nl_General_CPl_ci_AS NULL , 'city] [nvarchar] (50) COLLATE SQL-Lat nl_General-CPl_Cl_AS NULL , 'state] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , 'zi p] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , 'country] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , 'phone] [nvarchar) (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , 'fax] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , 'emai l ] [nvarchar] (100) COLLATE SQL_Lati nl_General_CP _Cl_AS NULL , 'url] [nvarchar] (100) COL LATE SQL_Lati nl-General _CP1_CI_AS NULL , 'contact-name] [nvarchar] (50) COLLATE SQL-Lat nl_General_CPl_ci_AS NULL , 'contact-titl e] [nvarchar] (50) COLLATE SQL-Lat nl_General-CPl_Cl_AS NULL , 'contact-emai l] [nvarchar] (50) COLLATE SQL-Lati nl_General-CPl_Ci_AS NULL , 'year founded] [i nt] NULL , "managed-capital] [money] NULL , currency] [nvarchar] (50) COLLATE SQL_Lati n_-General_CPl_CI-AS NULL , [no_empl oyees] [int] NULL ,
"associations] [nvarchar] (255) COLLATE SQL-Lati n _General_CPl_CI_AS NULL , i nvestment-criteria] [nvarchar] (50) COLLATE SQL_Lati nl_General-CPl_ci_AS
NULL mi n_size] [money] NULL max-size] [money] NULL , search-criteria] [nvarchar] (250) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL
[date_created] [smal l datetime] NOT NULL ,
/****** object : Tabl e [dbo] . [al lfundsxx] Scri pt Date: 6/9/2003 10:44 : 33 AM
CREATE TABLE [dbo j . [al lfundsxx] (
[sponsor-i d] [i nt] NOT NULL ,
!sponsor_name] [varchar] (50) COLLATE SQL_Latinl_General-CPl_Ci-AS NULL , 'sponsor-desc] [ntext] COLLATE SQL_Lati nl_General_CPl_Cl_AS NULL , 'sponsor-type] [nvarchar] (50) COLLATE SQL-Lati nl_General-.CPl_.Ci_AS NULL , !i nit_bid] [fl oat] NULL , :i nit_offer] [float] NULL ,
'address-1] [nvarchar] (255) COLLATE SQL-Lati nl_General_CPl-CI_AS NULL , 'address-2] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , 'city] [nvarchar] (50) COLLATE SQL-Lati nl_General-CPl_CI_AS NULL , 'state] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , 'zi p] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , 'country] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , 'phone] [nvarchar] (50) COLLATE SQL-Lat nl_General_CPl_Cl_AS NULL , 'fax] [nvarchar] (50) COLLATE SQL_Lati nl_General_CPl_CI_AS NULL , [emai l ] [nvarchar] (100) COLLATE SQL-Lati nl-General -CP-L.C_._AS NULL , [url ] [nvarchar] (100) COLLATE SQL_Lati nl_General-CP-L.CI_AS NULL , rcontact_name] [nvarchar] (50) COLLATE SQL_Lati nl_General_CPl-Cl_AS NULL , "contact-titl e] [nvarchar] (50) COLLATE SQL-Lat nl_General_CP_L.Cl.-AS NULL , contact-emai l ] [nvarchar] (50) COLLATE SQL-Lati nl_General-CPl_CI_AS NULL , year_founded] [int] NULL , [managed_capi tal] [money] NULL ,
[currency] [nvarchar] (50) COLLATE SQL-Lati nl-General _CPl_CI_AS NULL , "no-employees] [int] NULL , associations] [nvarchar] (255) COLLATE SQL-Lat nl_Genera1-CPl_CI_AS NULL , i nvestment-criteria] [nvarchar] (50) COLLATE SQL_Lati nl_General_CPl_ci_AS
' [mi n_size] [money] NULL , :max_si∑e] [money] NULL , ;search_cri teria] [nvarchar] (250) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL date created] [smal l datetime] NOT NULL , active] [i nt] NOT NULL ,
Luser_id] [i nt] NULL ,
:di spl ay_desc] [i nt] NOT NULL ,
'symbol] [varchar] (50) COLLATE SQL_Lati nl_General-CPl_CI_AS NULL ,
'newsurl] [varchar] (255) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO
/****** object: Tabl e [dbo] . [compani es] Scri pt Date : 6/9/2003 10: 44 : 33 AM it it it it it it /
CREATE TABLE [dbo] . [co pani es] (
[symbol] [varchar] (8000) COLLATE SQL_Latτ nl_General_CPl_Cl_AS NULL , [Name] [varchar] (8000) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , [Share class] [varchar] (8000) COLLATE SQL_Lati nl_General-CPl-Cl-AS NULL , [offer] [varchar] (8000) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL , [Bi d] [varchar] (8000) COLLATE SQL_Lati n_-General_CPl_cr_AS NULL
) ON [PRIMARY]
GO
PC-George. txt /****** object: Table [dbo].[companies2] Script Date: 6/9/2003 10:44:34 AM
CREATE TABLE [dbo] . [companies2] (
[Symbol] [varch r] (8000) COLLATE SQL-Lati nl_General-CPl_ci_AS NULL , !Name] [varchar] (8000) COLLATE SQL-Lati nl_General_CP-L.Ci_AS NULL , ;share Class] [varchar] (8000) COLLATE SQL_Latinl_General-CPl_ci_AS NULL , offer] [varchar] (8000) COLLATE SQL_Latinl_General_CPl_Ci-AS NULL , Bid] [varchar] (8000) COLLATE SQL-Lati nl_General-CPl_ci_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo]. [companiesforsale] Script Date: 6/9/2003 10:44:34 AM
CREATE TABLE [dbo] . [companiesforsale] ( [id] [int] NOT NULL , "ordernumberl [int] NULL order! etter .]. [nvarchar] (2) COLLATE SQL_Latinl_General-CPl_ci_AS NULL , sellerna e] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_ci-AS NULL . Lcompanysymbol] [nvarchar] (50) COLLATE SQL_Lati nl-General _CPl_CI_AS NULL , [companysharetype] [nvarchar] (50) COLLATE SQL-Lati nl_General-CPl_ci-AS NULL strikeprice] [float] ULL Lshares] [float] NULL , pricepershare] [float] NULL , purchasedate] [smalldatetime] NULL
'recentvaluation] [float] NULL ,
'asofdate] [smalldatetime] NULL ,
's gnedorderticket] [bit] NOT NULL , signedplaceag] [bit] NOT NULL , offeringdocs] [bit] NOT NULL ,
'issuerpermission] [bit] NOT NULL ,
'fee] [float] NULL , icompanyxref] [nvarchar] (50) COLLATE SQL-Lat nl_General_CPl-CI_AS NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [dbo_industry] Script Date: 6/9/2003 10:44:34 AM
CREATE TABLE [dbo] . [dbo_ ndustry] ( industry] [nvarchar] (255) COLLATE SQL_Latinl_General-CPl_CI_AS NULL , ;Descn'ptιon] [nvarchar] (255) COLLATE SQL-Lati nl_General-CPl_ci_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [fundRequest] Script Date: 6/9/2003 10:44:34 AM
CREATE TABLE [dbo] . [fundRequest] (
[fundNa e] # [varchar] (100) COLLATE SQL-Lati nl_General-CPl_CI-AS NULL , undLocatiori] [varchar] (100) COLLATE SQL-Lat nl_General-CPl_CI_AS NULL contactNa e] [varchar] (100) COLLATE SQL-Lati nl_General-CPl_ci_AS NULL , ;contactTitle] [varchar] (50) COLLATE SQL-Latinl_General_CPl_ci_AS NULL ;contactPhone] [varchar] (50) COLLATE SQL_Latinl_General_CPl_ci_AS NULL 'contactFax] [varchar] (50) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL , ;contactEmaιl] [varchar] (50) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL , sellerFlag] [int] NULL , 'buyerFlagj [int] NULL ,
"comments] [varchar] (1000) COLLATE SQL_Latinl_General_CPl_ci_AS NULL , yName] [varchar] (50) COLLATE SQL-Lati n]_General-CPl_Cl_AS NULL , myPhone] [varchar] (50) COLLATE SQL-Lati nl_General-CPl_ci-AS NULL ,
[myE ail] [varchar] (50) COLLATE SQL_Latin__General_CPl_ci_AS NULL ,
[individualid] [bigint] NULL ,
[id] [bigint] IDENTITY (1, 1) NOT NULL ) ON [PRIMARY]
PC- George. txt
GO
/****** object: Table [dbo]. [fund-industry] Script Date: 6/9/2003 10:44:34 AM
CREATE TABLE [dbo] . [fund_ ndustry] (
[Symbol] [varchar] (255) COLLATE SQL_Latinl_General-CPl_α:_AS NULL , [Name] [varchar] (255) COLLATE SQL_Latinl_General_CPl_ci-AS NULL , ■ [industry] [varchar] (255) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [f und_org_type] Script Date: 6/9/2003 10:44:34 AM
CREATE TABLE [dbo] . [fund_org_type] (
Symbol] [varchar] (255) COLLATE SQL_Latinl_General_CPl_CI-AS NULL , ;Name] [varchar] (255) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , ;org_type] [varchar] (255) COLLATE SQL-Lati nl_General-CPl_Cl_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo]. [fundholdings] Script Date: 6/9/2003 10:44:34 AM
CREATE TABLE [dbo] . [fundholdings] (
[id] [intj OT NULL ,
;fundsymbol] [nvarchar] (50) COLLATE SQL-Lat nl_General_CPl_CI_AS NULL ,
;companyname] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL ,
Companycoinvestors] [nvarchar] (255) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL , , . . _ r
;companydescrιptιon] [ntext] COLLATE SQL-Lati nl_General_CPl_CI-AS NULL . investment] [float] NULL , ' currentvalue] [float] ULL , icompanyxref] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL
) ON [PRIMARY] TEXTIMAGE-ON [PRIMARY] GO
/****** object: Table [dbo] . [fundnews] Script Date: 6/9/2003 10:44:34 AM ******/ CREATE TABLE [dbo] . [f undnews] ( '
[id] [int] NOT NULL ,
"fund] [nvarchar] (50) COLLATE SQL-Lati nl_General-CP__ci_AS NULL , newssource] [nvarchar] (100) COLLATE SQL-Lati nl_General-.CPl_CT._AS NULL . Lnewsheadlιne] [nvarchar] (200) COLLATE SQL_Latinl_General CPl_CI_AS NULL. . inewsurl] [nvarchar] (100) COLLATE SQL-Lati nl_General_cPl_ci_AS NULL , date] [smalldatetime] NULL *
) ON [PRIMARY] GO
/****** object: Table [dbo]. [fundnewsheadlines] Script Date: 6/9/2003 10:44:35 CREATE TABLE [dbo] . [fundnewsheadlines] (
[ID] [varchar] (255) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , rFund] [varchar] (255) COLLATE SQL_Latinl_General-CPl_ci_AS NULL , HeadlineTime] [varchar] (255) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL ..Headlines] [varchar] (255) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL . [updated] [varchar] (255) COLLATE SQL_Latin-L_General-CPl-Cl_AS NULL , [symbol] [varchar] (255) COLLATE SQL-Lati nl_General-CPl_ci_AS NULL , [source] [varchar] (255) COLLATE SQL_Latinl_General_CPl_ci_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [fundtypes] Script Date: 6/9/2003 10:44:35 AM
CREATE TABLE [dbo] . [fundtypes] (
[Type] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_ci_AS NULL ,
PC-George. txt [Description] [nvarchar] (100) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [indications] Script Date: 6/9/2003 10:44:35 AM
******/
CREATE TABLE [dbo] . [indications] (
[id] [int] IDENTITY (1000, 1) NOT NULL ,
'symbol] [varchar] (25) COLLATE SQL_Latinl_General_CPl-Cl_AS NOT NULL ,
'fundna e] [varchar] (80) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL ,
'sponsored] [int] NULL , amount] [money] NULL ,
'amountDollar] [int] NULL ,
'priceDollar] [int] NULL , userid] [int] NOT NULL ,
'comments] [varchar] (250) COLLATE SQL-Lati nl_General-CPl_CI_AS NULL ,
'systemdate] [datetime] NULL ,
'status] [int] NULL , withdrawn] [bit] NULL., withdrawndate] [datetime] NULL , memberaction] [varchar] (25) COLLATE SQL_Latinl_General_CPl_CI-AS NULL ,
'price] [float] NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] .[industry] script Date: 6/9/2003 10:44:35 AM ******/
ΓREΔTE TABLE [dbo] . [industry] (
["industry] [varchar] (255) COLLATE SQL-Lati nl_General-CPl_Cl-AS NULL , [Description] [varchar] (255) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
) ON [PRIMARY]
GO ****** object: Table [dbo] .[instruction] Script Date: 6/9/2003 10:44:35 AM it it it it it it /
CREATE TABLE [dbo] . [instruction] (
[id] [bigint] IDENTITY (1, 1) NOT NULL Orderid] [bigint] NULL ,
L =entryDate] [datetime] NULL , 'agentid] [bigint] NULL , . comment] [varchar] (1024) COLLATE SQL_Latιnl_General-CPl_CI_AS NULL 'enteredBy] [bigint] NULL ) ON [PRIMARY]
GO
Script Date: 6/9/2003 10:44:35 AM
SQL_Latinl_General_CPl-CI_AS NULL , SQL-Latinl_General-CP-L.CI_AS NULL ,
/****** object: Table [dbo] . [notebook] script Date: 6/9/2003 10:44:35 AM ******/ CREATE TABLE [dbo] . [notebook] (
[order_num] [int] NOT NULL ,
:note_type] [int] NULL ,
!notebook_row_ιd] [int] NULL ,
'checked] [int] NULL ,
'id] [int] IDENTITY (1, 1) NOT NULL ) ON [PRIMARY] GO
PC-George. txt
****** object: Table [dbo] . [notebook_types] Scri pt Date: 6/9/2003 10:44: 36 AM
CREATE TABLE [dbo] . [notebook-types] ( rnote type] [int] IDENTITY (4, 1) NOT NULL ,
[note-description] [char] (256) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
) ON [PRIMARY] GO ****** object: Tabl e [dbo] . [orders] Scri pt Date: 6/9/2003 10 :44 :36 AM ******/ CREATE TABLE [dbo] . [orders] (
[id] [int] IDENTITY (210, 1) NOT NULL ,
OrderNumber] [i nt] NULL , ,
OrderLetter] [nvarchar] (50) COLLATE SQL_Latι nl_General_CPl_ci_AS NULL ,
OrderDateReceived] [datetime] NULL ,
TicketType] [nvarchar] (50) COLLATE SQL_Latιnl_General-CPl_CI_AS NULL ,
'MemberNumber] [nvarchar] (50) COLLATE SQL-Lati nl-General _CPl_CI_AS NULL ,
'MemberAction] [nvarchar] (50) COLLATE SQL-Lati nl-General _CPl_Cl_AS NULL ,
'symbol] [varchar] (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL ,
'Amount] [money] NULL ,
'sellersnav] [money] NULL ,
'UnfundedAmount] [money] NULL ,
'price] [money] NULL ,
'scheduledDatej [datetime] NULL ,
'TransactionType] [varchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL ,
'scheduledclosinqDate] [datetime] NULL , minimumnavpct] [float] NULL . ,
'initialoffeπ ngDate] [datetime] NULL ,
. . . _ PC-George. txt
[SellersAcquisitionDate] [datetime] NULL , [PlacementManager] [varchar] (50) COLLATE SQL_Latinl_General-CPl_CI_AS NULL
[RelationshipManager] [varchar] (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS
NULL
[comments] [varchar] (250) COLLATE SQL-Lati nl_General-CPl_Cl_AS NULL , 'sellxref] [int] NULL , 'sellorderticketsigned] [bit] NULL , 'sellplaceagsignedj [bit] NULL , 'sell off docs] [bit] NULL . selloffdocsquarterly] [bit] NULL , selloffdocstwocos] [bit] NULL , 'fundgppermission] [bit] NULL , fundgppermissionverbal] [bit] NULL , pipeline] [bit] NULL , 'feepct] [float] NULL , feeunfunded] [small nt] NULL , 'featured] [bit] NULL , 'auctionid] [int] NULL , accountid] [int] NULL , 'status] [int] NULL , 'PRICE-TBD] [int] NULL , Outstng-cap_call] [money] NULL ,
Ipfirstbuyright] [varchar] (50) COLLATE SQL-Lat nl_General_CPl_CI-AS NULL 'capital call duedate] [datetime] NULL , sponsor_desc] [varchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , 'quantityDollar] [int] NULL , priceDollar] [int] NULL , OrderType] [varchar] (50) COLLATE SQL_Latinl_General_CPl_Cl_AS NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [org_type] Script Date: 6/9/2003 10:44:36 AM ******/
CREATE TABLE [dbo] . [org_type] (
"θrg_type] [varchar] (255) COLLATE SQL_Latinl_General-CPl_Cl_AS NULL , "description] [varchar] (255) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL
) ON [PRIMARY]
GO
/****** object: Table [dbo] . [permissions] Script Date: 6/9/2003 10:44:36 AM
CREATE TABLE [dbo] . [permissions] (
OrderlD] [int] NULL , symbol] [varchar] (25) COLLATE SQL_Latιnl_General_CPl_CI_AS NULL ,
'useriD] [int] NULL ,
RequestDate] [datetime] NULL ,
=GrantedDate] [datetime] NULL ,
'Val duntil Date] [datetime] NULL ,
'Granted] [bit] NULL ,
:GrantedBy] [int] NULL , comments] [varchar] (255) COLLATE SQL-Lati nl_General_CP-L.CI_AS NULL ,
Permi ssionld] [int] IDENTITY (1, 1) OT NULL ) ON [PRIMARY] GO
/****** object: Table [dbo]. [positions] script Date: 6/9/2003 10:44:36 AM
CREATE TABLE [dbo] . [positions] (
[id] [int] IDENTITY (87, 1) NOT NULL , [orderid] [int] NULL , rorderNu ber] [int] NULL ,
[OrderLetter] [nvarchar] (50) COLLATE SQL-Latinl_General-.CPl_CI-AS NULL OrderDateReceived] [datetime] NULL ,
PC-George. txt j-i cketType] [nvarchar] (50) COLLATE SQL-Lati n _General_CPl_Cl_AS NULL ,
MemberNumber] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL ,
MemberAction] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL .
Symbol] [varchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , ^Amount] [money] NULL , sellersnav] [money] NULL ,
'UnfundedAmount] [money] NULL , rice] [money] NULL ,
ScheduledDate] [datetime] NULL ,
TransactionType] [varchar] (50) COLLATE SQL_Latinl_General_CPl-Cl-AS NULL .
ScheduledClosmgDate] [datetime] NULL , 'minimumnavpct] [money] NULL , 'initial of feringDate] [datetime] NULL ,
SellersAcquisitionDate] [datetime] NULL , placementManager] [varchar] (50) COLLATE SQL_Latinl_General_CPl_CI_AS NULL
[RelationshipManager] [varchar] (50) COLLATE SQL_Latin__General-CPLci_AS
NULL comments] [varchar] (250) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , sellxref] [int] NULL , sellorderticketsigned] [bit] NULL , sellplaceagsigned] [bit] NULL , sell off docs] [bit] ULL , selloffdocsquarterly] [bit] NULL , 'selloffdocstwocos] [bit] NULL , 'fundgppermission] [bit] NULL , 'fundgppermissionverbal] [bit] NULL , 'pipeline] [bit] NULL , 'feepct] [float] NULL , "feeunfunded] [smallint] NULL , featured] [bit] NULL , auctionid] [int] NULL , accountid) [int] NULL , status] [int] NULL , systemDate] [datetime] NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [potent albuyers] Script Date: 6/9/2003 10:44:37 AM
CREATE TABLE [dbo] . [potentialbuyers] ( [id] [int] NOT NULL ,
Name] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , MinimumAmount] [float] NULL ,
'targetamount] [nvarchar] (50) COLLATE SQL-Lat nl_General_CPl_CI_AS NULL . 'securitytypes] [nvarchar] (150) COLLATE SQL-Lati nl_General-CPl_Cl_AS NULL , presentationfields] [nvarchar] (50) COLLATE SQL-Lati nl_General-CPl_CI-AS NULL , - ι - .
[findersfee] [nvarchar] (50) COLLATE SQL-Lati nl_General-CPl_CI_AS NULL , [comments] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL ) ON [PRIMARY] GO
/****** object: Table [dbo] .[pnvatecompanies] Script Date: 6/9/2003 10:44:37 AM
CREATE TABLE [dbo] . [pnvatecompanies] ( ID] [int] NOT NULL , name] [nvarchar] (100) COLLATE SQL_Latinl_General-CPl-Ci-AS NULL . symbol] [nvarchar] (50) COLLATE SQL-Lat nl_General_CPl_Cl_AS NULL . sector] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl-Cl-AS NULL . address] [nvarchar] (50) COLLATE SQL-Lati nl_General-CPl_CI_AS NULL , city] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL , state] [nvarchar] (3) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL ,
PC-George. txt [zi p] [nvarchar] (10) COLLATE SQL_Lati nl_General_CPl_ci_AS NULL , [phone] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL , rfax] [nvarchar] (50) COLLATE SQL_Lati nl_General_CPl_C__AS NULL , website] [nvarchar] (50) COLLATE SQL_Lati nl_General_CPl_CI_AS NULL , ^descri pti on] [ntext] COLLATE SQL_Lati nl_General_CPl_Cl_AS NULL , 'CEO] [nvarchar] (50) COLLATE SQL_Lati nl_General_CPl_Cl_AS NULL , 'CEOemai l ] [nvarchar] (50) COLLATE SQL_Lati nl_General-CPl_Cl_AS NULL , 'empl oyees] [int] NULL , 'revenues] [float] NULL , revenueyear] [i nt] NULL , xref] [nvarchar] (50) COLLATE SQL_Latinl_General-CPl_CI_AS NULL , Lhoovers] [nvarchar] (50) COLLATE SQL_Lati nl_General_CPl_CI_AS NULL , [headl i neupdated] [smal l dateti me] NULL , "headl i ne] [nvarchar] (150) COLLATE SQL_Latinl_General_CPl_CI_AS NULL , headli nedate] [smal l datetime] NULL , headl i nesource] [nvarchar] (50) COLLATE SQL_Lati nl_Genera1_CPl_CI_AS NULL sharesoutstandi ng] [fl oat] NULL ,
Lspeci al status] [nvarchar] (50) COLLATE SQL-Lati nl_Genera1_CPl_CI_AS NULL ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO ****** object : Table [dbo] . [quotes] Script Date: 6/9/2003 10 :44: 37 AM ******/ CREATE TABLE [dbo] . [quotes] C
[symbol ] [varchar] (25) COLLATE SQL-Lati nl_General_CPl_CI_AS NOT NULL ,
[LastPri ce] [float] NULL ,
[change] [float] NULL ,
[SystemDate] [datetime] NULL ) ON [PRIMARY] GO
Object: Tabl e [dbo] . [symbol s] Script Date: 6/9/2003 10:44:37 AM ******/
CREATE TABLE [dbo] . [symbol s] C
Symbol] [varchar] (50) COLLATE SQL-Lati nl_General-CPl_Cl_AS NOT NULL , FundlssuerName] [varchar] (100) COLLATE SQL-Lat nl_General-CPl_CI_AS NULL
[FundType] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL ,
[FundStructure] [nvarchar] (50) COLLATE SQL-Lati nl_General_CP-Lci_AS NULL , general partner] [nvarchar] (50) COLLATE SQL-Lat nl_General-CPl_CI_AS NULL Comment] [nvarchar] (255) COLLATE SQL-Lati nl_General_CPl-CI-AS NULL ,
[NAV] [float] NULL ,
"Fundvi ntageYear] [i nt] NULL , FundTotal Commitment] [fl oat] NULL , FundCumDi sts] [fl oat] NULL , FundDrawDown] [float] NULL , FundAsOf] [datetime] NULL , address] [nvarchar] (100) COLLATE SQL_Lati nl_General_CPl-Cl_AS NULL , city] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , state] [nvarchar] (20) COLLATE SQL-Lati nl_General_CPl_ci_AS NULL , zip] [nvarchar] (15) COLLATE SQL_Lat nl_General-CPl_Cl-AS NULL ,
[phone] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_ci-AS NULL ,
[fax] [nvarchar] (50) COLLATE SQL-Lat nl_General_CP__Cl_AS NULL , url] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL , audi tor] [nvarchar] (50) COLLATE SQL_Lati nl_General_CPl_.ci-AS NULL , descri pti on] [ntext] COLLATE SQL_Lati nl_General-CPl_Cl_AS NULL , offlname] [nvarchar] (50) COLLATE SQL_Latinl_General_CPl_Ci_AS NULL ,
[offldesc] [nvarchar] (255) COLLATE SQL_Lati nl_General_cPl_Cl_AS NULL ,
PC-George. txt off2name. nvarchar] (50) COLLATE SQL-Lat nl_General-CPl_ci-AS NULL , off2desc! [nvarchar! (255) COLLATE SQL-Lati nl_General_cP__ci_AS NULL uoff3name; nvarchar! (50) COLLATE SQL-Lati nl_General_cpl_ci_AS NULL , [off3des nvarchar. (255) COLLATE SQL-Lati nl_General_cPl_ci_AS NULL off4name. nvarchar (50) COLLATE SQL_Lati nl_General-CPL_cι_AS NULL , off4desc] nvarchar; (255) COLLATE SQL-Lati nl_General_CPl_CI_AS NULL Loff5name. nvarchar; (50) COLLATE SQL_Lati n-LGeneral-CPl_ci_AS NULL , [offSdesc! nvarchar; (255) COLLATE SQL-Lati nl-General _CPl_CI_AS NULL
Lpri ce] [fl oat] NULL
[change] [fl oat] NULL ,
"genpartnerxref] [nvarchar] (50) COLLATE SQL-Lati nl_General_CPl_Cl_AS NULL outstng-cap-ca"11] [float] NULL t kcapitaϊ-caπ_due_date] [datetime] NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO object : Tabl e [dbo] . [xx] script Date: 6/9/2003 10: 44 : 37 AM ******/
CREATE TABLE [dbo]_ . [xx] C
[col001] .varchar] (8000) COLLATE SQL. _Latinl_General_ .CPl-CI-AS NULL 'col 002] Varchar (8000) COLLATE SQL..Latin-LGeneral..CP1_CI_AS NULL 'col003" .'varchar (8000) COLLATE SQL..Latinl-General..CP1-CI_AS NULL 'Col 004] Varchar, (8000) COLLATE SQL..Latinl-General..CP1_CI_AS NULL 'Col 005" Varchar (8000) COLLATE SQL..Latinl-General.-CP1_CI_AS NULL 'Col006 varchar (8000) COLLATE SQL..Latinl_General..CPl-CI-AS NULL 'Col 007! 'varchar (8000) COLLATE SQL..Latinl-General..CPl_CI_AS NULL 'col 008; varchar (8000) COLLATE SQL..Latinl-General..CPl-CI-AS NULL 'Col009; varchar] (8000) COLLATE SQL..Latinl-General..CP1_CI_AS NULL 'Col010" varchar] (8000) COLLATE SQL..Latinl-General..CP1-CI_AS NULL 'Col Oil] varchar" (8000) COLLATE SQL..Latinl-General..CP1_CI_AS NULL
) ON [PRIMARY] GO
/****** object: Table [dbo] . [xxx] Script Date: 6/9/2003 10:44:38 AM ******/
CREATE TABLE [dbθ] . [XXX] (
[Symbol ] [nvarchar] (255) COLLATE SQL-Lati nl_General-CPl_ci_AS NULL [Name] [nvarchar] (255) COLLATE SQL-Lat nl_General-CPl_ci_AS NULL ,
[Seri es] [nvarchar] (255) COLLATE SQL-Lati nl_General-CPl_ci_AS NULL [offer] [fl oat] NULL ,
'sh va "i;" [float] NULL ,
"status; ;nvarchar] (255) COLLATE SQL-Lati nl_General-CPl_ci_AS NULL
Sector; .nvarchar] (255) COLLATE SQL-Lati nl_General-CPl_ci_AS NULL ) ON [PRIMARY] GO ***/
ALTER TABLE [dbo] . [indi cations] WITH NOCHECK ADD
CONSTRAINT [DF_i ndi cations_status] DEFAULT (0) FOR [status] , CONSTRAINT [DF_i ndi ations_wi thdrawn] DEFAULT (0) FOR [wi thdrawn]
PC-George. txt GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: Vi ew dbo. Best Bid-View Script Date: 6/9/2003 10: 44:38 AM ******/ /****** object: View dbo. BestBi'd_view Scri pt Date: 8/28/2002 3 :19:02 PM *****
SELECT Symbol , Amount AS BestBidCMTAmount, mi nimumnavpct AS BestBidPrice
FROM dbo .orders
WHERE (MemberAction - 'Buy')
AND (minimumnavpct =
(SELECT MAX (minimumnavpct)
FROM orders orders2
WHERE orders . symbol - orders2. symbol AND orders2. MemberActi on = ' Buy'))
*/
CREATE VIEW dbo.BestBid_view
AS
SELECT symbol, Amount AS BestBidCMTAmount, minimumnavpct AS BestBidPrice
F OM dbo.orders Ol
WHERE Cid = (SELECT TOP l d
FROM orders 02
WHERE 02. Symbol = Ol. Symbol AND 02. emberAct on =
'Buy' AND Status IN (0, 2)
ORDER BY 02.MinimumNavPCT DESC))
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO ****** object: View dbo.Bestoffer_V ew Script Date: 6/9/2003 10:44:38 AM
/****** object: view dbo.Bestoffer_view Script Date: 8/28/2002 3:42:01 PM *****
SELECT TOP 100 PERCENT Symbol, Amount AS BestOfferCMTAmount, m nimumnavpct AS
BestOfferPrice
FROM dbo.orders
WHERE (MemberAction - 'sell') AND (minimumnavpct =
(SELECT MlN(minimumnavpct) FROM orders orders- WHERE orders. symbol = orders2. symbol AND
MemberAction - 'Sell'))
ORDER BY Symbol
V
PC-George. txt CREATE VIEW dbo.Bestθffer_View
AS
SELECT symbol, Amount AS BestOfferCMTAmount, minimumnavpct AS BestOfferPrice
FROM dbo.orders Ol
WHERE (id -
(SELECT TOP 1 Id
FROM Orders 02
•SELL' AND Status IN (0, 2) *" θ2'Symbθ1 = 01'Syfflbo1 AND o2'^rAction
ORDER BY 02.MinimumNavPCT ASC))
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/*****/ ob>ect: View dbo-Order-θwnerView Script Date: 6/9/2003 10:44:38 AM
CREATE VIEW dbo.θrder_θwιerv ew
AS
SELECT O.id, o. OrderNumber, o. OrderLetter, I.FIRSTNAME, I.LASTNAME
FROM dbo.orders o INNER JOIN pt-accounts..individual I ON O.MemberNumber - I. INDIVIDUALID
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: View dbo.Bidoffercount_View Script Date: 6/9/200310:44:38 AM
CREATE VIEW dbo.Bi'dofferCount-View
AS
SELECT Symbol ,
(sELECT COUNT(MemberAction)
FROM Orders
Λ . c i ~ WHERE SellxRef IS NULL AND Orders. emberAction = 'BUY* AND Orders.Symbol = o.symbol AND status IN (0, 2)) AS Bidcount
(SELECT coUNT(MemberAction) '
FROM Orders
. WHERE SellxRef IS NULL AND Orders. emberAction -
'SELL' AND orders.symbol - o.Symbol AND status IN (0, 2)) AS Offercount
(SELECT COUNT(*) '
FROM Trades
WHERE Trades.symbol = o.symbol) AS TradeCount
PC-George.txt
FROM dbo . orders 0
GROUP BY Symbol
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: View dbo.COMPOSITE Script Date: 6/9/2003 10:44:38 AM ******/ CREATE VIEW dbo.COMPOSITE
SELECT symbol, sponsor_name AS FundName, 2 AS tabletype, (select top 1 featured from orders o where o. symbol = A. symbol) featured, (select top 1 pipeline from orders o where o. symbol = A. symbol) pipeline,
(select count(*5 from orders o where o. symbol = a. symbol and o.memberaction - 'buy')
(select countC*) "Frorn orders o where o. symbol = a. symbol and o.memberaction = •sell') sellordercount,
Cselect count(*) from indications i where i. symbol = A. symbol and i .memberaction -'buy') Buyindi cations,
(select count(*) from indications i where i. symbol = A. symbol and i .memberaction -'sell') Selllndications FROM allfunds A
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO ****** object: View dbo.ORDERSTATUS_viEW Script Date: 6/9/2003 10:44:38 AM
CREATE VIEW dbθ.ORDERSTATUS-VIEW
AS
SELECT O.id, 0.OrderNumber, o. OrderLetter, O.MemberNumber, O.MemberAction,
O Symbol, o.auctionid, ol.OrderNumber AS PortNumber, ol.OrderLetter AS PortLetter, o.Amount AS BldOfferCMTAmount, O minimumnavpct AS BidofferPrice, dbo. symbols. FundlssuerName, O. status,
O.OrderDateReceived, dbo. STATUS-DESCRIPTIONS.StatusDescript on, 0. Schedul edclosingDate, 0. quantityDollar, O.priceDollar FROM dbo.orders 0 LEFT OUTER JOIN dbo.STATUS-DESCRIPTIONS ON o. status - dbo STATUS-DESCRIPTIONS . d LEFT OUTER JOIN
PC-George.txt dbo. symbols ON o.symbol = dbo . symbol s . Symbol LEFT OUTER OIN dbo.orders 01 ON O.auctionid = 01.id
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: View dbo.ORDER-MATCHold Script Date: 6/9/2003 10:44:38 AM
CREATE VIEW dbθ.ORDER_MATCHθld
dbo. BestBid_vi ew. Symbol
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: View dbo. Order List old Script Date: 6/9/2003 10:44 : 38 AM
CREATE VIEW dbo. [Order List old]
AS
SELECT TOP 100 PERCENT dbo.orders. d, dbo.orders.MemberAction, dbo.orders .OrderNumber, dbo.orders .OrderLetter, dbo. symbol s . FundlssuerName dbo. orders . Symbol, dbo. BestB d-View. BestBidCMTAmount, dbo. BestBid-View. BestBidPrice, dbo. orders. minimumnavpct AS BestOfferPrice dbo. orders.Amount AS BestOfferCMTAmount, dbo. symbols. price AS LastNavPrice, dbo. symbols. change AS Netchange, dbo. orders. featured, dbo. orders. pipeline, dbo.orders. UnfundedAmount, dbo.orders.sellersnav, dbo.orders. status FROM dbo. BestBid_view RIGHT OUTER JOIN
PC-George. txt dbo.orders LEFT OUTER JOIN dbo. symbols ON dbo. orders . Symbol = dbo . symbol s . Symbol ON dbo. BestBid-Vi ew. symbol = dbo. orders. Symbol WHERE Cdbo . orders . emberAction = N'selV)
ORDER BY dbo. orders . OrderNumber, dbo. orders . OrderLetter
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON GO ****** object: view dbo . SYMBOLS_VlEW Script Date: 6/9/2003 10:44: 38 AM ******/
CREATE VIEW dbθ . SYMBOLS_VIEW '
AS
SELECT symbol , sponsor_name AS FundlssuerName
FROM dbo. all funds
UNION
SELECT symbol , FundlssuerName
FROM dbo.Symbols
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON GO
/****** object: View dbo.ALL_ORDERS_VlEW script Date: 6/9/2003 10:44:38 AM
CREATE VIEW dbθ.ALL_ORDERS_VIEW
AS
SELECT TOP 100 PERCENT dbo.orders .id, dbo.orders. emberAction, dbo.orders .OrderNumber, dbo .orders .OrderLetter, dbo.orders. Symbol , dbo.orders. minimumnavpct AS BidofferPrice, dbo.orders.Amount AS BldOfferCMTAmount, dbo. orders. featured, dbo. orders. pipeline, dbo . orders . emberNumber, dbo.orders . sell ersnav, dbo.orders . status, dbo. STATUS-DESCRIPTIONS . StatusDescri ption, dbo .orders . sel 1xref, dbo.SYMBOLS-VIEW. FundlssuerName, dbo.orders.PRlCE_TBD FROM dbo.orders LEFT OUTER JOIN dbo.SYMBOLS-VIEW ON dbo.orders.Symbol = dbo.SYMBOLS-VIEW.symbol LEFT OUTER JOIN dbo. STATUS-DESCRIPTIONS ON dbo.orders. status - dbo.STATUS-DESCRIPTIONS . id ORDER BY dbo.orders.OrderNumber, dbo.orders.OrderLetter
PC-George. txt GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON GO
/****** object: View dbo.MarketPlace-Vi ew Script Date: 6/9/2003 10:44: 38 AM
CREATE VIEW dbo.Marketp!ace_view
AS
SELECT DISTINCT dbo. Bestoffer-View. BestOfferCMTAmount, dbo. Bestθffer_View. BestOfferPrice, dbo. SYMBOLS_VlEW. symbol, dbo. SYMBOLS_VIEW. FundlssuerName AS [Fund Name], dbo. BestBid_View. BestBidCMTAmount, dbo. BestBid_View. BestBidPrice FROM dbo. SYMBOLS-VIEW LEFT OUTER JOIN dbo.BestBid_view ON dbo.SYMBOLS-VIEW. symbol - dbo. BestBid_View. Symbol LEFT OUTER JOIN dbo. Bestoffer_View ON dbo.SYMBOLS-VIEW. symbol = dbo. Bestof er_view. Symbol
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON GO ****** object: view dbo.ORDER_MATCH Script Date: 6/9/2003 10:44:38 AM ******/
CREATE VIEW dbθ.ORDER-MATCH
AS
SELECT TOP 100 PERCENT dbo.SYMBOLS-VIEW. symbol , dbo. SYMBOLS-VIEW. FundlssuerName
AS FundName, BB. BestBidCMTAmount, BB. BestB dPrice,
BO. BestOfferCMTAmount, BO. BestOfferPrice FROM dbo. BestB d-View BB INNER JOIN dbo. SYMBOLS-VIEW ON BB. Symbol - dbo.SYMBOLS-VIEW. symbol INNER JOIN dbo. Bestoffer_view BO ON dbo.SYMBOLS viEW. symbol = BO. Symbol
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER OFF GO
PC-George . txt SET ANSI-NULLS ON GO
/****** object: Vi ew dbo . Order Li st Scri pt Date: 6/9/2003 10: 44 : 38 AM ******/ CREATE VIEW dbo . [Order List]
AS
SELECT O.id, O. emberAction, O.OrderNumber, O.OrderLetter, Si. FundlssuerName,
0 symbol, O. minimumnavpct AS BestOfferPrice,
0.Amount AS BestOfferCMTAmount, o.featured, 0.pipeline, 0 UnfundedAmount, 0. sellersnav, o. status, Q.change AS Netchange,
Q. LastPrice AS LastNavPrice, 0.sponsor_αesc, O.quantityDollar,
O.priceDollar, . , . (SELECT TOP 1 BB. BestBidPrice
FROM dbo.BestBid-VieW BB WHERE BB. symbol = 0. Symbol) AS BestBidPrice, (SELECT TOP 1 BB. BestBidCMTAmount FROM dbo. BestBid-View BB
WHERE BB. symbol = 0.symbol) AS BestBidCMTAmount, 0. scheduledDate, O.PRICE-TBD FROM dbo.orders 0 LEFT OUTER JOIN dbo. uotes Q ON 0. Symbol = Q. symbol LEFT OUTER JOIN dbo.SYMBOLS_viEW Si ON 0. Symbol = Si. symbol WHERE (o.MemberAction = N'selV)
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
GO
/****** object: View dbo.Temp Symbols Script Date: 6/9/2003 10:44:38 AM ******/ CREATE VIEW dbo. [Temp symbols]
AS
SELECT *
FROM dbo . SYMBOLS-VIEW
WHERE (symbol LIKE ' temp%' )
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER ON
GO
SET ANSI-NULLS ON
/****** object: Vi ew dbo .V-ORDERS Scri pt Date : 6/9/2003 10 : 44 : 38 AM ******/
PC-George . txt CREATE VIEW dbθ.V_ORDERS
AS
SELECT dbo .orders .* , dbo. STATUS-DESCRIPTIONS.StatusDescription, dbo.SYMBOLS_ViEW. FundlssuerName
FROM dbo.orders LEFT OUTER JOIN dbo. SYMBOLS-VIEW ON dbo.orders.Symbol = dbo.SYMBOLS_VIEW. symbol LEFT OUTER JOIN dbo.STATUS-DESCRIPTIONS ON dbo.orders. status = dbo.STATUS-DESCRIPTIONS. id
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp_GetFundsReturnQt Script Date: 6/9/2003 Script Date: 10/15/2002
as varchar) as varchar) as varchar) as varchar) year] as varchar) as rtDate, ©EndDate)
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp_GetFundsReturnYr Script Date: 6/9/2003 10:44:38 AM ******/
/«***** object: Stored Procedure dbo.sp_GetFundsReturnYr Script Date: 10/31/2002
PC-George.txt
4:13:11 PM ******/ ****** object: Stored Procedure dbo.sp_GetFundsReturnYr script Date: 10/16/2002
7: 05 :47 PM ******/
CREATE procedure sp_GetFundsReturnYr (
©symboll varchar(25) ,
©Symbol2 varchar(25) ,
©StartDate datetime - null ,
©EndDate datetime = null
) AS BEGIN
Select [Year], sumdsNull (returnl.O)) as Returnl, sum(lsNull(return2,0)) as Return2, Sum(isNull (Spread, 0)) as Spread, [Year! as [Period]
From fn-GetFundReturnSpread(©Symbol1,©Symbol2 ,©StartDate,©EndDate)
Group by [Year]
Order by [Year] Desc END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF GO
/****** object: Stored Procedure dbo.sp-GetReturnSpreadQt Script Date: 6/9/2003 10:44:38 AM ******/
/****** object: Stored Procedure dbo.sp-GetReturnSpreadQt Script Date: 10/31/2002 4:13:22 PM ******/
/****** object: Stored Procedure dbo.sp-GetReturnSpreadQt script Date: 10/15/2002 1:07:26 PM ******/
PC-George.txt sel ect Top 1 spread, cast(quarter as varchar) + *Q/' + cast([Year] as varchar) as [date] , Quarter, [Year] from fn_GetFundReturnSpread(@symboll, ©Symbol 2 , ©StartDate, ©EndDate)
Order by spread desc
End Else If @κey - ' Low*
Begin sel ect Top 1 spread, cast(quarter as varchar) + 'Q/' + cast([γear] as varchar) as [date] , Quarter, [Year] from fn_GetFundReturnSpread(©Symboll, ©symbol 2 , ©StartDate, ©EndDate)
Order by spread Asc
End
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF GO
/****** object: Stored Procedure dbo.sp_GetReturnSpreadYr Script Date: 6/9/2003 10:44:38 AM ******/ ****** object: Stored Procedure dbo.sp_GetReturnSpreadYr Script Date: 10/31/2002 4:13:37 PM ******/ H μ /****** object: stored Procedure dbo.sp_GetReturnSpreadYr Script Date: 10/14/2002 8:10:56 PM ******/ H
CREATE procedure sp-GetReturnSpreadYrC
©Key as varchar(25),
©Symboll varchar(25),
©Symbol2 varchar(25),
©StartDate datetime - null,
©EndDate datetime = null
select ©Years = count(distinct( [year])) from fn_GetFundReturnSpread(©symboll,©s mbol 2 , ©startdate, ©enddate) select Sum(returnl)/©Years as SecuritylAverage,
Sum(return2)/©Years as Security2Average, (Sum(returnl)/@Years - Sum(return2)/@Years) as
SpreadAverage
From fn_GetFundReturnSpread(@symbol l, ©symbol 2 , ©startdate, ©enddate)
End
PC-George. txt El se if ©Key = ' High'
Begin
Select top 1 su (spread) as [val ue] , [year] as [date]
From fn-GetFundReturnSpread(@Symboll,@Symbol2, ©StartDate, ©EndDate)
Group by [year]
Order by sum(spread) desc
End El se If ©Key = ' Low'
Begin sel ect top 1 sum(εpread) as [value] , [year] as [date]
From fn-GetFundReturnSpread(@symboll, ©symbol 2 , ©StartDate, ©EndDate)
Group by [year] order by sum(spread) asc
End
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
G S0ET ANSI-NULLS OFF
GO ****** object: Stored Procedure dbo.sp_UpdateBi'doffer Script Date: 6/9/2003
AS BEGIN _ . DECLARE ©Coef int IF ©Direction - up set ©Coef - 1 ELSE set ©Coef = -1 Print ©Coef PRINT 'N' IF ©Symbol is NULL. IF ©Bidoffer - Both UPDATE allfunds SET allfunds. nit-bid = allfunds. init-bid * (1 + ©Coef*©PercentChange/100), all funds. nit_offer - allfunds. ι
'nit_offer * (1 + ©Coef*@PercentChange/100) ELSE IF ©Bidoffer = 'Bid' UPDATE allfunds SET allfunds, init-bid = all funds, init-bid * (1 + ©Coef*@PercentChange/100)
ELSE _ ,
UPDATE allfunds SET all f unds . init-offer = all f unds . init_offer * (1 + ©Coef*@PercentChange/100)
PC-George. txt WHERE all funds, symbol = ©Symbol
ELSE i-^ J
UPDATE allfunds _ ,
SET all f unds. init-offer = all f unds. init_offer * (1 + ©coef*@PercentChange/100) WHERE all funds, symbol = ©symbol END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp-changeBidoffer_value Script Date:
6/9/2003 10:44:38 AM ******/
CREATE PROCEDURE sp_changeBidθffer_value
©bidvalue float (9) = 0,
©offervalue float (9) = 0
AS
BEGIN ^
U UPrDVAtλT IE _ a dlilnf UunIIdUs
SET allfunds. nit_bid = all f unds. init_bid + ©bidvalue, all f unds. init-offer = all f unds. init_offer + ©offervalue
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp_CreateNoteboo script Date: 6/9/2003 10:44:38 AM ******/
CREATE PROCEDURE sp_CreateNotebook (©OrderNo bigint, ©NoteType int = 1) as
BEGIN TRA _ . •-. <- insert into notebook ( order_num, note_type, notebook_row_τd ) select ©orderNo, note_type, row_id from notebook_definitions where checkbox=l and note_type = ©NoteType if ©NoteType = 999 update notebook set checked = 1 where notebook_row_id in C 3, 4, 5 ) and order_num = ©OrderNo end
COMMIT
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
PC-George. txt SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF GO
/****** object: Stored Procedure dbo.sp_GetANumber Script Date: 6/9/2003 10:44:39 AM ******/
CREATE PROCEDURE sp_GetANumber (©IdName varchar(50), ©Value int output) as Declare ©IdValue int BEGIN TRAN
Select ©idvalue = Id alue From GetANumber where IdName = ©IdName If ©Idvalue s Null BEGIN insert into GetANumber values (©IdName, 2) select ©IdValue = 1 END
Else update GetANumber Set idvalue = ©Idvalue + 1 where IdName = ©IdName
COMMIT select ©value = ©idvalue
Return ©value GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp-GetOrderBook Script Date: 6/9/2003 10:44:39 AM ******/
/****** object: Stored Procedure dbo.sp-GetOrderBook Script Date: 8/29/2002
7:14:49 PM ******/
CREATE PROCEDURE dbo. sp_GetθrderBook (©BookType int, ©UserlD int) AS
— BookType: 1 - Firm
2 - Pipeline
3 - Featured
If ©BookType = 1 BEGIN
SELECT *,
(SELECT granted FROM permissions p WHERE p. symbol = o. symbol AND orderid = O.id AND userid = ©userid) AS GRanted FROM [Order List] o where Pipeline = 0 and Status Not In (1,3) order by OrderNumber, OrderLetter END
ELSE IF ©BookType - 2 Begin
SELECT *,
(SELECT granted FROM permissions p
PC-George . txt HERE p. symbol = o . symbol AND orderid =
0 id AND userid = ©userid) AS GRanted FROM [Order Li st] 0 where Pipeline =1 and Status Not in (1,3)
Order by OrderNumber, OrderLetter end
ELSE IF ©BookType = 3
BEGIN
SELECT *,
(SELECT granted
FROM permissions p
WHERE p. symbol = o. symbol AND orderid = O.id AND userid - ©userid) AS GRanted FROM [Order List] 0 where Featured = 1 and status Not in (1,3) order by OrderNumber, OrderLetter END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp-GetOrderBookDesc Script Date: 6/9/2003 10:44:39 AM ******/
/****** object: Stored Procedure dbo.sp_GetθrderBook script Date: 8/29/2002
7-14:49 PM ******/
CREATE PROCEDURE dbo.sp_GetθrderBookDesc(©BookType int, ©UserlD int) AS
— BookType: 1 - Firm
2 - Pipeline
3 - Featured
If ©BookType = 1 BEGIN
SELECT
(SELECT granted FROM permissions p
WHERE p. symbol = o. symbol AND orderid -
O id AND userid - ©userid) AS GRanted FROM [Order List] O where Pipeline = 0 and Status Not In (1,3) Order by OrderNumber, OrderLetter
END
ELSE IF ©BookType - Z Begin .
SELECT *,
(SELECT granted FROM permissions p WHERE p. symbol = o. symbol AND orderid * O id AND userid - ©userid) AS GRanted FROM [Order List] O Where Pipeline =1 and Status Not in (1,3) Order by OrderNumber, OrderLetter end ,
ELSE IF ©BookType = 3
PC-George. txt BEGIN SELECT *t
(SELECT granted
FROM permissions p
WHERE p. symbol - o. symbol AND orderid - o.id AND userid = ©useri d) AS GRanted FROM [order Li st] 0 where Featured = 1 and status Not in (1, 3)
Order by OrderNumber desc, OrderLetter desc END GO
SET QUOTED_IDENTIFIER' OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp_GetPortfolioorders Script Date: 6/9/2003
10:44:39 AM ******/
CREATE PROCEDURE dbo.sp_GetPortfolioθrders(©Portfolio int, ©UserlD int) AS
BEGIN
SELECT ,
(SELECT granted FROM permissions p WHERE p.symbol = o.symbol AND orderid = O.id AND userid = ©userid) AS GRanted FROM [Order List] O where OrderNumber = ©Portfolio and Status <> 3 END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp_GetStepCount Script Date: 6/9/2003 10:44:39 AM ******/
CREATE PROCEDURE dbo.sp_GetStepCount
( ©OrderlD nt, ©StepType int = -1 )
from notebook where
END
Else
BEGIN
SELECT countC*) stepscompleted,
(SELECT count(*) from notebook, notebook-definitions where
PC-George. txt row id - notebook_row-id and order_num = ©OrderlD and check_type=®stepτype)
Totalsteps _ .. . ._ _• •_•
FROM notebook, notebook-definitions
WHERE row_id = notebook-row_id and checked - 1 and order_num = ©OrderlD and check_τype=@stepτype
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo. sp_GetTotal Portfolio Script Date: 6/9/2003
10-44-39 AM ******/
CREATE Procedure sp_GetTotalPortfolio(@Portfolio int) as select sum(amount) as TotalCMT, sponsor_desc, quantityDollar, sumCamount * minimumnavpct)/sum(amount) as Total avPct . ,, from orders where ordernumber = ©Portfolio group by sponsor_desc, quantityDollar
GO
SET QUOTED_IDENTlFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO .
/****** object: Stored Procedure dbo.sp-MatchOrders Script Date: 6/9/2003 10:44:39 AM ******/
/****** object: Stored Procedure dbo.sp_Matchθrders Script Date: 8/29/2002 4:45:10 PM ******/
/****** object: Stored Procedure dbo.sp-Matchorders Script Date: 7/26/2002
2'42-48 PM ******/
CREATE PROCEDURE sp_Matchθrders (©OfferiD int, ©BidiD int, ©TradePrice float,
©SettlementDate datetime ) AS
Declare ©TradelD int, ©RowCount int
Declare ©currentsymbol varchar(25)
Declare ©BidPrice money
updateTorders set SellxRef - ©offeriD Where ID = ©BidiD and SellxRef is Null cp+ ORowCount = ©©RowCount update orders set SellxRef = ©BidiD where ID = ©OfferiD and SellxRef Is Null
Set ©RowCount - ©RowCount + ©©RowCount
If ©RowCount <> 2
BEGIN •,.,. , . . . print 'Error rolling back transaction
ROLLBACK TRAN
END
Else
PC-George. txt
BEGIN print 'Inserting update'
INSERT INTO TRADES (OfferiD, B dld)
Values (©OfferiD, ©BidiD) Select ©TradelD = ©©Identity print 'Trade inserted'
— Get Data From Offer update TRADES set
©Currentsymbol = 0. Symbol, Symbol - 0. Symbol, OrderNumber = o.OrderNumber, OrderLetter = 0.OrderLetter, offerCMTAmount = o.Amount, NAV - o.SellersNAV, offerPrice = 0.minimumnavpct, offerMemberlD - O.MemberNumber, TradePrice = ©TradePrice, settleDate = ©SettlementDate From Orders 0 Where Trades.ID = ©TradelD And O.ID - ©OfferiD
— Get Data From Bid update TRADES Set
BiDCMTAmount = 0.Amount?
BidPrice = 0.mini umnavpct,
BidMemberlD = O.MemberNumber
From Orders 0
Where Trades.ID - ©TradelD And O.ID = ©BidiD update orders
Set Schedul edClosingDate = ©SettlementDate, Status - 4 where id in (©BidiD,©offeriD)
If Exists (Select * From Quotes where Symbol - ©Currentsymbol) Update Quotes Set change = ©TradePrice - LastPrice , LastPrice = ©TradePrice , SystemDate - GetDate() here Symbol - ©Currentsymbol Else
Insert Into Quotes (Symbol, LastPrice, change, SystemDate) values(©currentsymbol,©TradePrice, O.GetDateO)
print 'Updating Trade' COMMIT TRAN
END GO
SET QUOTED-IDENTIFIER OFF
G0
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
PC-George.txt
/****** object: Stored Procedure dbo. sp_RecordEmail Script Date: 6/9/2003 0:44: 39 AM ******/ CREATE PROCEDURE dbo. sp_RecordEmaι I
©individuallD int,
©Subject varchar(140) ,
©Body varchar(400) ,
©FooterTag varchar (25) - "default",
© —FromTag varchar(25) - "default"
)
AS BEGIN
Declare ©FromEmail varchar(lOO) Declare ©FromEmailName varchar(lOO) Declare ©FooterlD int Declare ©ToEmail varchar(lOO) Declare ©ToEmail Fname varchar(lOO) Declare ©ToEmail Lname varcharClOO)
Select ©FromEmail - FROM ΞMAIL,
©FromEmailName = FROM-NAME FROM EMAIL-TAGS WHERE FROM-TAG = ©FromTag
Select ©FooterlD = [Id]
From EMAIL_FOOTERS where FOOTER_TAG = ©FooterTag
Select ©ToEmail Fname = FIRSTNAME,
©ToEmail Lname = LASTNAME, ©ToEmail = EMAILADDRESS FROM pc-accounts..INDIVIDUAL where individuals = ©individuallD
I INNSbEtRKTI I -NI T iOv E t-MriAMIL-—H ΠIJLST I OURISYT
(individualID,ToEmail .FromEmail , Subject, essageBody, FooterlD) Values (©IndividuallD, ©ToEmail, ©FromEmail, ©Subject, ©Body, ©FooterlD)
E ai1ID = ©©identity,
ToFirstName = ©ToEmail FName,
ToLastName = ©ToEmailLName,
ToEma l = ©ToEmail,
FromEmail = ©FromEmail ,
FromEmailName = ©FromEmailName,
FOOTER-TEXT
From EMAIL-FOOTERS here Id = ©FooterlD
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF
GO
PC-George. txt
/****** object: Stored Procedure dbo. sp_RenameSymbol Script Date: 6/9/2003 10:44: 39 AM ******/
Else
BEGIN
COMMIT TRANSACTION select RecordsUpdated - ©RecordsUpdated, Errors = 0
END
END
PC-George.txt
GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF GO
/****** object: Stored Procedure dbo . sp_UpdateFundsymbol Scri pt Date: 6/9/2003
10:44:39 AM ******/
Create Procedure sp-UpdateFundSymbol
©Symbol varcharC25), ©FundName varcharClOO) ) AS BEGIN
Declare ©ID int
If ExistsC Select * from Symbols Where Symbol = ©Symbol )
Return Else
If Exi sts CSel ect * From Symbol s where FundlssuerName = ©FundName)
Return El se
BEGIN
INSERT INTO SYMBOLS CSYMBOL. FUNDISSUERNAME) VALUES C©SYMBOL , ©FUNDNAME)
END
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS OFF GO
/****** object: Stored Procedure dbo.sp_checkFundsymbol Script Date: 6/9/2003
Declare ©ID int if ExistsC select * from symbols where Symbol = ©symbol ) select Symbol, FundlssuerName as FundName, *' as sponsor_desc From
Symbols
Where Symbol = ©Symbol Else If ExistsC Select * From AllFunds where Symbol = ©Symbol) select Symbol, Sponsor_name as FundName, sponsor_desc from allfunds here symbol - ©Symbol
PC-George.txt
Else if Exists(Select * From symbols where FundlssuerName - ©FundName) select Symbol, FundlssuerName as FundName, " as sponsor_desc From Symbols where FundlssuerName = ©FundName Else If Exists(Select * From AllFunds Where Sponsor_Name -
©FundName) select Symbol, Sponsor_Name as FundName, sponsor_desc From AllFunds
Where Sponsor_Name = ©FundName
Else
BEGIN exec sp_GetANumber 'TEMP_SYMBOL\ ©ID out
Select Symbol = 'TEMP.' + cast( ©ID as varchar(5)).
FundName = ©FundName + ' C MP)', sponsor_desc = *'
END
END GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO
SET QUOTED-IDENTIFIER OFF
G S0ET ANSI-NULLS OFF
GO
/****** object: Stored Procedure dbo.sp_Placeθrder Script Date: 6/9/2003 10:44:39 AM ******/
/****** object: Stored Procedure dbo.sp-PlaceOrder Script Date: 10/3/2002 7:45:43 PM ******/
CREATE PROCEDURE sp_Placeθrder ( ©Symbol varchar(25), ©MemberNumber int, ©MemberAction varchar(25), ©sponsor-desc varchar(50), ©quantityDollar int, ©priceDollar int, ©orderType varchar(50), ©Amount money, ©UnfundedAmount Money, ©SellersNav money, ©Mini umNAVpct money, ©Auctionld int, ©AccountID int, ©TicketType varchar(25), ©PortfolioiD int - null, ©BidDueDate datetime
)
A dSeclare ©ord .eri.d-, i•n*t
insert Into orders (
Symbol , MemberNumber , MemberAction , sponsor_desc , quanti tyDol 1 ar. pri ceDol 1 ar, orderType , Amount , UnfundedAmount , Sel 1 ersNav , mi ni umnavpct ,
PC-George. txt . . . aucti oni d , account! d , ti ckettype , schedul edDate , orderdaterecei ved , status , pi pel i ne , f eatu red)
Values (©Symbol , ©MemberNumber, ©MemberActi on , @sponsor_desc, ©quanti tyDollar , ©priceDolla r, ©orderType, ©Amount , ©UnfundedAmount , ©Sell ersNav, ©Mi ni umNavPct,
©Auctionld , ©Accountid, ©TicketType,©BidDueDate , getdateO , 0,1,0) select ©orderid - ©©identity
/* portfol io Logi c */
If ©Portfol i oiD is Not Null
BEGIN - , . -,« ,
IF ©Portfol i oiD = -1
Update orders set OrderLetter = *a* where ID = ©OrderlD
Else
BEGIN
Update Orders Set OrderNumber = ©PortfolioiD, OrderLetter - (
Select Top 1 charC ascii'C OrderLetter ) + 1 ) From orders where OrderNumber = ©PortfolioiD Order by OrderLetter Desc ) Where id = ©OrderlD END END update orders set ordernumber = ©orderid where id = ©orderid exec sp-CreateNotebook ©orderid i ©MemberAction s sel I
INSERT INTO [PERMISSIONS] (Orderid, symbol, UserlD, Granted) values(©OrderlD, ©Symbol, ©MemberNumber, 1) select ©orderid GO
SET QUOTED-IDENTIFIER OFF
GO
SET ANSI-NULLS ON
GO