Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Inserting data with stored procedure problem: msg#00111

db.tds.freetds

Subject: RE: Inserting data with stored procedure problem


> Well, we are pretty in a hurry. So, I have had some time
> today and I have
> written some tests. Sorry, I was unable to do it several days ago.
> The code below is a little bit modified MSDN
> howto\odbc\ProcessReturnCodes\ProcessReturnCodes.cpp examle.
> But please,
> note that I need to be able to run "{? = call insertT2(1,?)}" call as
> prepared statement too. Though I might be able to change my
> framework to
> calls SPs the way you recommend for FreeTDS.
>
> Thank you for your help.
> -
> Michael Kochetkov.
>
> P.S. The test case code:
> ///////// (Portions copyright by MS MSDN)
> // if exists (select * from dbo.sysobjects where id =
> object_id(N'[dbo].[T2]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
> // drop table [dbo].[T2]
...
>

Thanks for example however I coded another based on your store procedure
and log (also I cannot use "Portions copyright by MS MSDN").
I did some test and I can provide quickly "{call insertT2(1,?)}" but not
"{?=call insertT2(1,?)}" (note "?=" prefix). The reason it's that mssql
do not prepare code that have return inside (you can put return only in
store procedure). Changing code to support correctly store procedure
with constants parameters it's too time expensive now...

About the support of wide character I have a possible work-around (not
tested):
- use unixODBC
- compile unixODBC to use iconv and ucs2 and utf8 as charsets (see
configure and documentation)
- configure FreeTDS to use utf8 encoding
- use *W functions (like SQLDescribeColW)
The only problem it's sending data to server... bind using larger
columns should work.

freddy77


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation