Re: How to write long string sentences
From: Felipe Blin (felipeblin_at_hotmail.com)
Date: 03/16/04
- Next message: Sameh Ahmed: "Re: creating installation package"
- Previous message: Brian Henry: "Security policies to allow app run on network drive"
- In reply to: Jay B. Harlow [MVP - Outlook]: "Re: How to write long string sentences"
- Next in thread: Jay B. Harlow [MVP - Outlook]: "Re: How to write long string sentences"
- Reply: Jay B. Harlow [MVP - Outlook]: "Re: How to write long string sentences"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Mar 2004 12:46:23 -0400
Hi jay,
I know what your are talking about. The problem if for those cases (they
always exist in complex systems) where that kind of solution is not good
enough or definitely not possible.
So what I want is a way to manage long string manipulation.
Thanks anyway
"Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@msn.com> wrote in message
news:%23v9Z2B3CEHA.2616@TK2MSFTNGP12.phx.gbl...
> Felipe,
> My first choice would be a Stored Procedure.
>
> Whether or not a stored procedure was an option, within my code I would
use
> a data command object placed on an Component to manage my SQL statements
> (either stored procedure calls or straight SQL statements such as your
> select).
>
> You use "Project - Add Component" to add a new component to your project.
>
> Using the visual designer of the Component you can then drag the
Connection,
> Command, and DataAdapter objects that you want to it from the Toolbox.
> Alternatively you can drag & drop items from the Server Explorer. You can
> set properties of these with the properties window. Using the visual
> designer & property window of the component will allow you to use a visual
> query designer on the SQL statement itself (similar to the query builder
in
> Access).
>
> Then from the Code Behind I add any methods that I want exposed via the
> Component. Such as a Fill & Update that calls all of the contained
> DataAdapters to fill or update the selected DataSet.
>
> Hope this helps
> Jay
>
>
> "Felipe Blin" <felipeblin@hotmail.com> wrote in message
> news:%23y0T371CEHA.2616@TK2MSFTNGP12.phx.gbl...
> > Hi,
> > Sorry for this newbie question.
> > I usually have to write long string sentence like this:
> >
> > strSQL= " select ........." _
> > + " from ......." _
> > + " where ....." _
> > + " and....." _
> > + " and ..." _
> > + " group by..."
> > etc....
> > (Note: I can not use store procedure)
> > This kind of sentence is hard to maintain and to write.
> > Is there a way to do it better??
> > Thanks
> > Felipe Blin
> >
> >
> >
>
>
- Next message: Sameh Ahmed: "Re: creating installation package"
- Previous message: Brian Henry: "Security policies to allow app run on network drive"
- In reply to: Jay B. Harlow [MVP - Outlook]: "Re: How to write long string sentences"
- Next in thread: Jay B. Harlow [MVP - Outlook]: "Re: How to write long string sentences"
- Reply: Jay B. Harlow [MVP - Outlook]: "Re: How to write long string sentences"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|