Utilities

Technical Article

ODBC --SQL -- ConnectionPool -- Statement with ReturnValue

  • Topic

I have an aplication written in VC 6.0 that uses ODBC API 3.0 with connection pooling activated. I execute a STATEMENTlike this pStatement = (SQLCHAR *) "{call MyProc(?,?)}"; rc = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_VARCHAR, lstrlen(pParam1)+1, 0,pParam1, 0, &cbNTS);  if(!MYSQLSUCCESS(rc)){error_out(0,0,hstmt);return false;} rc = SQLBindParameter(hstmt, 2, SQL_PARAM_OUTPUT, SQL_C_SLONG ,SQL_INTEGER, 4, 0, &i_NoOfRows, 4, &ii_NoOfRows);  if(!MYSQLSUCCESS(rc)){error_out(0,0,hstmt);return false;} rc = SQLPrepare(hstmt,pStatement,strlen((char*) pStatement)); […]

You rated this post out of 5. Change rating

2005-05-19

4 reads

Technical Article

RE: tables sizes and recovery models

  • Reply

You can use the stored procedure sp_spaceused to obtain the size information for each table. You will need to supply the table name as a parameter, so if you want all tables in a database I would suggest using a cursor. For the recovery modes you can execute the following command on each database:SELECT DATABASEPROPERTYEX(N'Your […]

You rated this post out of 5. Change rating

2005-05-18

Blogs

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Snowflake + Azure blob

By

Let’s go back to data platforms today and I want to talk about a...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers