HighTechTalks DotNet Forums  

Sql generator

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss Sql generator in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Kris Desmadryl
 
Posts: n/a

Default Sql generator - 11-25-2004 , 05:51 AM






If you drag a db table to a component in vs.net the DataAdapter is
automatically configured (select, delete, tablemappings, ...). Is it
possible to do this in code. I don't want to use the CommandBuilder because
the statements generated by this are not so nice. For instance the parameter
name is @P1 and not @Person_ID or @Original_Person_ID.

I would like to generate the source code for my accessors.

Kris.



Reply With Quote
  #2  
Old   
Earl
 
Posts: n/a

Default Re: Sql generator - 11-25-2004 , 07:58 AM






The use the dataadapter config wizard (commonly known as DACW). This article
will help get you going:
http://msdn.microsoft.com/library/de...andbuilder.asp


"Kris Desmadryl" <kris.desmadrylN00SPM (AT) tenforce (DOT) com> wrote

Quote:
If you drag a db table to a component in vs.net the DataAdapter is
automatically configured (select, delete, tablemappings, ...). Is it
possible to do this in code. I don't want to use the CommandBuilder
because the statements generated by this are not so nice. For instance the
parameter name is @P1 and not @Person_ID or @Original_Person_ID.

I would like to generate the source code for my accessors.

Kris.




Reply With Quote
  #3  
Old   
Kris Desmadryl
 
Posts: n/a

Default Re: Sql generator - 11-25-2004 , 08:37 AM



thx for the information
Is it possible to approach this DACW in coding ?
It would be nice if I could generate all parameters for all tables in my
database by writing a small program I tried this by using the
commandbuilder, but I have some problems with it. For instance the type is
Int32 but the size is 0 and so on.

Kris

"Earl" <brikshoe (AT) newsgroups (DOT) nospam> wrote

Quote:
The use the dataadapter config wizard (commonly known as DACW). This
article will help get you going:
http://msdn.microsoft.com/library/de...andbuilder.asp


"Kris Desmadryl" <kris.desmadrylN00SPM (AT) tenforce (DOT) com> wrote in message
news:ul7L5yt0EHA.1260 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
If you drag a db table to a component in vs.net the DataAdapter is
automatically configured (select, delete, tablemappings, ...). Is it
possible to do this in code. I don't want to use the CommandBuilder
because the statements generated by this are not so nice. For instance
the parameter name is @P1 and not @Person_ID or @Original_Person_ID.

I would like to generate the source code for my accessors.

Kris.






Reply With Quote
  #4  
Old   
Earl
 
Posts: n/a

Default Re: Sql generator - 11-25-2004 , 03:28 PM



Use the DACW to generate your parameters, then go in and tweak them. I can't
think of an easier way. Forget about the commandbuilder and life will
improve :=)

"Kris Desmadryl" <kris.desmadrylN00SPM (AT) tenforce (DOT) com> wrote

Quote:
thx for the information
Is it possible to approach this DACW in coding ?
It would be nice if I could generate all parameters for all tables in my
database by writing a small program I tried this by using the
commandbuilder, but I have some problems with it. For instance the type is
Int32 but the size is 0 and so on.

Kris

"Earl" <brikshoe (AT) newsgroups (DOT) nospam> wrote in message
news:eeDPq5u0EHA.2040 (AT) tk2msftngp13 (DOT) phx.gbl...
The use the dataadapter config wizard (commonly known as DACW). This
article will help get you going:
http://msdn.microsoft.com/library/de...andbuilder.asp


"Kris Desmadryl" <kris.desmadrylN00SPM (AT) tenforce (DOT) com> wrote in message
news:ul7L5yt0EHA.1260 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
If you drag a db table to a component in vs.net the DataAdapter is
automatically configured (select, delete, tablemappings, ...). Is it
possible to do this in code. I don't want to use the CommandBuilder
because the statements generated by this are not so nice. For instance
the parameter name is @P1 and not @Person_ID or @Original_Person_ID.

I would like to generate the source code for my accessors.

Kris.








Reply With Quote
  #5  
Old   
Paul Jones
 
Posts: n/a

Default RE: Sql generator - 11-21-2007 , 02:26 AM



Can not wait for VS2008 and framework 3.5 to come out and be stable as it will change the way we buid data layers and connect to database.



Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.