 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Cenk Guest
|
Posted: Thu Aug 10, 2006 12:21 am Post subject: Wierd problem about Stored Procedure |
|
|
Hi,
I m using BDS 2006, MS SQL Server 2000. I was using TQuery to do DB
operations like select, insert..etc. I decided to call stored procedures
instead of using TQuery directly from BDS2006. Before , when i was writing
statements like below;
....
String table = "MONTH1(EUR/USD)";
CountQuery->SQL->Add("select column1 from ["+table+"]");
CountQuery->Open();
....
Its OK. There is no table name error, but when i call a Stored procedure
instead of using the code segment above, it gives error, because of the "/".
How can i fix this? I wanna use those characters (/,-).
thanks |
|
| Back to top |
|
 |
MarkR Guest
|
Posted: Thu Aug 10, 2006 8:12 pm Post subject: Re: Wierd problem about Stored Procedure |
|
|
I trust you will be the only person maintaining the code you are producing?
If some else picked up your code, they would probably look at the table name
and think EUR divided by USD (especially c++ programmers)
I don't know what to suggest, other than finding an entirely different
mechanism for querying the database. If the compiler tells you have an error
because you are using an invalid character, then you must either use a
different compiler, or the easy option, stick to the normal standards when
naming things, alphanumeric and underscore characters only.
No help, but just you are asking the same question again. |
|
| Back to top |
|
 |
Cenk Guest
|
Posted: Thu Aug 10, 2006 11:12 pm Post subject: Re: Wierd problem about Stored Procedure |
|
|
I just wanted to know, why it gave error when i used STORED PROCEDURE? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|