BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wierd problem about Stored Procedure

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Cenk
Guest





PostPosted: Thu Aug 10, 2006 12:21 am    Post subject: Wierd problem about Stored Procedure Reply with quote



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





PostPosted: Thu Aug 10, 2006 8:12 pm    Post subject: Re: Wierd problem about Stored Procedure Reply with quote



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





PostPosted: Thu Aug 10, 2006 11:12 pm    Post subject: Re: Wierd problem about Stored Procedure Reply with quote



I just wanted to know, why it gave error when i used STORED PROCEDURE?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.