|
|
Choosing A Webhost: |
RE : Empty string in insert query: msg#00056db.tds.freetds
I'm using protocol version 7.0 (I tried with 8.0 too) Here my freetds.conf : [MyEolas] host = 213.XXX.XXX.XXX port = 1433 tds version = 7.0 text size = 500000 client charset = ISO 8859-1 -----Message d'origine----- De : ZIGLIO, Frediano, VF-IT [mailto:Frediano.Ziglio@xxxxxxxxxxxx] Envoyé : mardi 14 septembre 2004 11:23 À : FreeTDS Development Group Objet : RE: [freetds] Empty string in insert query > > Hello, > > I'm on PHP 4.3.8 + FreeTDS 0.61 + MSSQL 2000 > > I'm trying to execute a simple query with empty value like this : > $sql = "INSERT INTO MY_TABLE (COL1, COL2) VALUES ('TOTO', '')"; > mssql_query($sql) or die($sql) > > Unfortunatly, when query is executing, it will insert the > value ' ' for COL2. > > I saw there was a thread in the forum for a similar problem > but it concerns > stored procedure and NULL value. > > Once again when I used an old version of freeTDS, I didn't > have this problem > > > CREATE TABLE [MY_TABLE] ( > [COL1] [varchar] (50) NULL , > [COL2] [varchar] (50) NULL > ) Probably you are using protocol version 4.2. Check your configuration. freddy77 _______________________________________________ FreeTDS mailing list FreeTDS@xxxxxxxxxxxxxxxxx http://lists.ibiblio.org/mailman/listinfo/freetds
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Empty string in insert query, ZIGLIO, Frediano, VF-IT |
|---|---|
| Next by Date: | RE: dblib and thread safety, ZIGLIO, Frediano, VF-IT |
| Previous by Thread: | Empty string in insert query, Cédric Dumetz |
| Next by Thread: | Character set problem, Hannu Niemi |
| 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 |