|
|
Choosing A Webhost: |
RE: Inserting data with stored procedure problem: msg#00111db.tds.freetds
> 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> |
|---|---|---|
| Previous by Date: | RE: Inserting data with stored procedure problem, Michael Kochetkov |
|---|---|
| Next by Date: | RE: Inserting data with stored procedure problem, Michael Kochetkov |
| Previous by Thread: | RE: Inserting data with stored procedure problem, Michael Kochetkov |
| Next by Thread: | RE: Inserting data with stored procedure problem, Michael Kochetkov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |