Computed Column Parser

Ukończone Opublikowano Apr 30, 2004 Płatność przy odbiorze
Ukończone Płatność przy odbiorze

My application contains a textbox that allows the user to specify a valid SQL expression that will be used to create the 'computed' portion of a computed column.

This project will create the parsing mechanism to ensure the textbox contains a valid expression. The parser should support all available expressions available to SQL Server 2000 including:

- Arithmetic operators

- String operators

- Existiing Columns

- Parentheses

- Type conversion using 'cast'

The list of existing column names and types will be available to you in a Listbox that the user can use to add existing fields to the textbox. The order may also simply type the column name into an expression.

The purpose of this algorithm is to prevent a malformed expression from being executed by the SQL server engine and producing an error.

This validation code must be written in javascript as the user must be given a chance to correct any errors before the input is accepted.

Examples

The following are some sample expressions:

[UnitPrice] * 10

valid

([UnitPrice]*10)+1.05

valid

([UnitPrice]*10)+1.05)

invalid because of mismatched parentheses

[Unit Price] * 10

invalid because the column name does not exist

[FirstName] + ' ' + [LastName]

valid

([FirstName] + ' ' + [LastName]) * 7

invalid because of the type mismatch

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

SQL Server 2000 syntax

Javascript

ASP

ASP Inżynieria JavaScript MySQL PHP Architektura oprogramowania Testowanie oprogramowania SQL

Numer ID Projektu: #3195317

O projekcie

5 ofert Zdalny projekt Aktywny May 7, 2004

Przyznany użytkownikowi:

programarvw

See private message.

$89.25 USD w ciągu 19 dni
(4 ocen)
2.7

5 freelancerów złożyło ofertę za $51 w tym projekcie

shuravw

See private message.

$51 USD w ciągu 19 dni
(7 Oceny)
4.4
vw1135462vw

See private message.

$25.5 USD w ciągu 19 dni
(7 Oceny)
3.3
delhifreelancers

See private message.

$29.75 USD w ciągu 19 dni
(7 Oceny)
2.5
leadervw

See private message.

$57.8 USD w ciągu 19 dni
(13 Oceny)
1.7