Click here to Skip to main content
15,898,939 members
Home / Discussions / Database
   

Database

 
GeneralRe: ADO.NET --> Dataset... Pin
Sindhu Saravanan28-Jun-05 4:03
sussSindhu Saravanan28-Jun-05 4:03 
GeneralMicrosoft.JET Engine- need help Pin
...---...22-Jun-05 15:50
...---...22-Jun-05 15:50 
GeneralObject must implement IConvertible Pin
gharryh22-Jun-05 8:05
gharryh22-Jun-05 8:05 
GeneralBARCODE (Code39) Pin
OMalleyW22-Jun-05 7:42
OMalleyW22-Jun-05 7:42 
GeneralAny Comments? Pin
OMalleyW23-Jun-05 3:51
OMalleyW23-Jun-05 3:51 
GeneralRe: BARCODE (Code39) Pin
Mike Dimmick24-Jun-05 2:38
Mike Dimmick24-Jun-05 2:38 
GeneralRe: BARCODE (Code39) Pin
OMalleyW24-Jun-05 4:12
OMalleyW24-Jun-05 4:12 
GeneralRe: BARCODE (Code39) Pin
Ian Darling29-Jun-05 23:22
Ian Darling29-Jun-05 23:22 
I've got a comment: this implementation is rubbish. I've seen an implementation of web-based barcode displays written by a tenth-rate Visual Basic programmer that was better than this.

Why is this written in T-SQL when a database isn't needed at all for this particular routine? The only thing you could justifiably use a database for here is the lookup from character to light/dark sequence, and you haven't done it.

Where's the separation between representation and display?

A C# function to return the sequence of light and dark bars (as and array of bools or just a string) for a given string, followed by a separate C# (or ASP.NET) rendering routine that takes a light/dark sequence, would be significantly more useful, easier to maintain, and wouldn't require a call to a database each time!

Even if your original string comes from a database, chucking a short string over makes much more sense than chucking over a wodge of HTML.

The rendering of a barcode should be done in an ASP.NET web control (or if you aren't using ASP.NET, the functional equivalent). That way, if you later on need to render a barcode in a Windows application, you've got one routine written already to work out the light/dark sequence, and all you need to do is write a GDI renderer that accepts it. With care, this could be extended to support any barcode symbology.


Ian Darling
The world is a thing of utter inordinate complexity ... that such complexity can arise ... out of such simplicity ... is the most fabulous extraordinary idea ... once you get some kind of inkling of how that might have happened - it's just wonderful ... the opportunity to spend 70 or 80 years of your life in such a universe is time well spent as far as I am concerned - Douglas Adams
GeneralRe: BARCODE (Code39) Pin
OMalleyW30-Jun-05 10:58
OMalleyW30-Jun-05 10:58 
GeneralRe: BARCODE (Code39) Pin
Ian Darling30-Jun-05 12:15
Ian Darling30-Jun-05 12:15 
GeneralRe: BARCODE (Code39) Pin
Ian Darling30-Jun-05 12:54
Ian Darling30-Jun-05 12:54 
GeneralRe: BARCODE (Code39) Pin
OMalleyW1-Jul-05 1:55
OMalleyW1-Jul-05 1:55 
GeneralADO.NET - Best way to use the mighty SELECT Pin
BinaryHead22-Jun-05 3:53
BinaryHead22-Jun-05 3:53 
GeneralRe: ADO.NET - Best way to use the mighty SELECT Pin
Colin Angus Mackay22-Jun-05 6:03
Colin Angus Mackay22-Jun-05 6:03 
GeneralRe: ADO.NET - Best way to use the mighty SELECT Pin
david cohoon22-Jun-05 8:06
david cohoon22-Jun-05 8:06 
GeneralRe: ADO.NET - Best way to use the mighty SELECT Pin
BinaryHead22-Jun-05 22:25
BinaryHead22-Jun-05 22:25 
Generalreplication: remote login error Pin
NickKnife22-Jun-05 2:02
NickKnife22-Jun-05 2:02 
GeneralSQL Server 2000 CE Edition... Pin
Jan van den Baard22-Jun-05 1:54
professionalJan van den Baard22-Jun-05 1:54 
GeneralSQL SERVER 2005 INSTED OF Trigger Pin
Yaakov Davis22-Jun-05 1:28
Yaakov Davis22-Jun-05 1:28 
GeneralSQL Server Manager 2005 animated wait thingie Pin
nxtwothou21-Jun-05 10:37
nxtwothou21-Jun-05 10:37 
GeneralConnection Pooling Pin
anju21-Jun-05 8:30
anju21-Jun-05 8:30 
GeneralRe: Connection Pooling Pin
Colin Angus Mackay21-Jun-05 8:38
Colin Angus Mackay21-Jun-05 8:38 
GeneralRe: Connection Pooling Pin
anju21-Jun-05 8:44
anju21-Jun-05 8:44 
GeneralRe: Connection Pooling Pin
Colin Angus Mackay21-Jun-05 8:57
Colin Angus Mackay21-Jun-05 8:57 
GeneralRe: Connection Pooling Pin
anju21-Jun-05 9:11
anju21-Jun-05 9:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.