Search the web
Sign In
New User? Sign Up
DatabaseTemplateLibrary · The Database Template Library
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 1001 - 1030 of 2479   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
1001
Hello, Is the following code supposed to work? I believe there is something wrong with strings binding. Please note then commented AAAA section is due to I do...
mkochetkov
Offline Send Email
Jun 1, 2004
11:24 am
1002
The problem, as usual, is that stupid SQL server does not support SQLPutData()/SQLGetData() for columns in any order. This means you cannot use variable length...
Corwin Joy
corwinjoy
Offline Send Email
Jun 1, 2004
2:46 pm
1003
... Thank you for your quick response. I have already almost rearranged my code not to use bound strings' expressions. But I cannot do without blobs and they...
mkochetkov
Offline Send Email
Jun 1, 2004
3:09 pm
1004
... Ooops, sorry. It looks like the equivalent code with blobs works. -- Michael Kochetkov....
mkochetkov
Offline Send Email
Jun 1, 2004
3:42 pm
1005
... I have made the tests and here is the result. The following test case: //////////////// #include <dbaccess/dtl/dtl.h> class TestParmBCA { public: void...
mkochetkov
Offline Send Email
Jun 1, 2004
6:00 pm
1006
To get the return value you will need to call MoreResults()....
Corwin Joy
corwinjoy
Offline Send Email
Jun 1, 2004
9:44 pm
1007
... I will read it as output parameter because return value is OK. I have just tried this: // print_it.MoreResults(); // BBBB r = *print_it; ...
mkochetkov
Offline Send Email
Jun 1, 2004
11:18 pm
1008
Oops. You're right. You don't need MoreResults() here. The output parameters are returned right away because this procedure does not return a result set. CJ...
Corwin Joy
corwinjoy
Offline Send Email
Jun 2, 2004
1:08 am
1009
Hi Corwin, I am using a select_iterator on a view that has about 2000 entries. Just iterating over the view with an empty loop takes at least 5 seconds. Can...
ChessBoy
v11_dmatsumo
Offline Send Email
Jun 7, 2004
5:37 pm
1010
If you are reading that many records I would recommend you use the ODBC bulk fetch operations as these are much faster than regular ODBC fetches. Take a look ...
Corwin Joy
corwinjoy
Offline Send Email
Jun 7, 2004
5:41 pm
1011
Hi Corwin, Can you suggest a faster way to get the size of the view besides using distance? If I use bulk_copy with distance, it takes longer than it did with...
ChessBoy
v11_dmatsumo
Offline Send Email
Jun 7, 2004
11:18 pm
1012
If you just want to get the number of records I can suggest two ways: Method 1: Run a select count(field_name) on a copy of your join conditions and tables to...
Corwin Joy
corwinjoy
Offline Send Email
Jun 7, 2004
11:24 pm
1013
Hello, I believe BYTE pointer parameters of the dtl::blob append and assign member functions shall be const. -- Michael Kochetkov....
mkochetkov
Offline Send Email
Jun 9, 2004
12:27 pm
1014
... Yes, they should be const. I have changed this for the next release. CJ...
Corwin Joy
corwinjoy
Offline Send Email
Jun 9, 2004
6:20 pm
1015
Hello, I believe addminutes and addyears functions are missing in DTL. They were propably considered to be trivially achievable through addsecs and addmonths...
mkochetkov
Offline Send Email
Jun 17, 2004
4:36 pm
1016
Hi! I'm writing an application wich needs to skip some first rows in resultset before real fetching. I want to get, for example, rows 10-20 from the results of...
redart_98
Offline Send Email
Jun 21, 2004
11:11 am
1017
Take a look at the random access container in DTL. http://dtemplatelib.sourceforge.net/RandomDBView.htm...
Corwin Joy
corwinjoy
Offline Send Email
Jun 21, 2004
1:00 pm
1018
Hello, is it possible to make DTL to use column binding (SQLBindCol) for blobs in select queries? We used not to bother ourselves with making Blobs to be the...
mkochetkov
Offline Send Email
Jun 21, 2004
11:29 pm
1019
If you want to do this you should be able to just bind directly to a char array. E.g. struct my_row { char my_blob[500]; } And (optionally) when you bind you...
Corwin Joy
corwinjoy
Offline Send Email
Jun 22, 2004
5:57 am
1020
... (rowbuf.my_blob); ... by above ... Thank you for your help. I fail to mention each time that I cannot use boundIOs["BLOB_VALUE"] == … expressions because...
mkochetkov
Offline Send Email
Jun 22, 2004
1:16 pm
1021
... Yes, it is not too hard to change DTL to use SQLBindCol for blobs. (We used to actually bind blobs this way). I will take a look at what it would take to...
Corwin Joy
corwinjoy
Offline Send Email
Jun 22, 2004
5:28 pm
1022
I cannot see my reply for a very long time so I will try to repeat it as close as I can. ... am ... (my ... Thanks!!! It would be very kind of you. And please,...
mkochetkov
Offline Send Email
Jun 22, 2004
9:37 pm
1023
Hello, can anyone show me the working sp_helplogins MS SQL Server stored procedure call with DTL? The only thing I need to know is that if it return records or...
mkochetkov
Offline Send Email
Jun 22, 2004
11:25 pm
1024
Hello, DTL uses std::exception to signal about errors. In many cases it is OK but more flexible approach, IMO, would be to signal about errors through...
mkochetkov
Offline Send Email
Jun 23, 2004
9:29 am
1025
... am ... (my ... Thanks!!! And please, give it a test that blobs buffers up to 6MB are reasonably fast. They are not usable (IMO) in the current SQLGetData ...
mkochetkov
Offline Send Email
Jun 23, 2004
10:12 am
1026
For many kinds of exceptions we already have something like this. Take a look at the docs here: http://dtemplatelib.sourceforge.net/IOHandler.htm...
Corwin Joy
corwinjoy
Offline Send Email
Jun 23, 2004
3:31 pm
1027
Hello, I have problems with inserting/updating large blobs. Here is the code that illustrates the problem. Thank you in advance, -- Michael Kochetkov. #include...
mkochetkov
Offline Send Email
Jun 23, 2004
4:13 pm
1028
... Thank you. As far as I can see the documentation emphasizes DB_iterator operations. And it will not work for DBConnection or DBStmt, will it? -- Michael...
mkochetkov
Offline Send Email
Jun 23, 2004
4:16 pm
1029
... Yes, this handler is really for errors in DB_iterator operations. Mike has been talking for some time about upgrading the exception hierarchy but I am not...
Corwin Joy
corwinjoy
Offline Send Email
Jun 23, 2004
8:56 pm
1030
This comes down to another defect of SQL server. In SQL server, when you bind a parameter you must tell it in advance the maximum length it might be (Oracle...
Corwin Joy
corwinjoy
Offline Send Email
Jun 24, 2004
4:19 am
Messages 1001 - 1030 of 2479   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help