Is it possible to change the SQL Text of Command thr' code which is created in DataEn

Reply

Join Date: Mar 2005
Posts: 40
Reputation: sham is an unknown quantity at this point 
Solved Threads: 0
sham sham is offline Offline
Light Poster

Is it possible to change the SQL Text of Command thr' code which is created in DataEn

 
0
  #1
Apr 4th, 2005
Hello,
I created command object in DataEnvironment. Now I wish to change to command object's Sql Text since table name gets changed depending upon year of working.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Is it possible to change the SQL Text of Command thr' code which is created in DataEn

 
0
  #2
Apr 4th, 2005
Could you be a little more specific, and possibly attach the project and database?
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 68
Reputation: RahulV is an unknown quantity at this point 
Solved Threads: 0
RahulV's Avatar
RahulV RahulV is offline Offline
Junior Poster in Training

Re: Is it possible to change the SQL Text of Command thr' code which is created in DataEn

 
0
  #3
Mar 18th, 2009
Let me try to help in this case, (Since i got the same doubt),

See, there is a DataEnvironment, it has a Connection object and both's required properties set at design time. There is also a Command1 which has a SQL string command which is set during design time.

Now,
At runtime I want to change the Command1's SQL string, but since its a constant value it give an error, how to solve it?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC