|
|
Choosing A Webhost: |
AW: freetds, php, cron: msg#00170db.tds.freetds
Hi Eddie, >What language are you using for your script insertion? >Perl or PHP? I'm using PHP >For PHP you need to use the addslashes() function to escape characters >for Perl you need to hmmmm...lemme try and remember. >Or this for perl... the quote() function being the fixer of the problem. I am using my own function to simulate an addslashes function for mssql Thanks for the advice but this is definitely not the problem. It seems to be a timing-problem by freetds that the statement is not interpreted properly before being sent to mssql-server. I am using my own function which uses str_replace to replace all characters like single ' to '' and \ to \\ etc. As said before I believe it to be a timing or locale problem since the first statement in the loop does not create an error. PHP generates a statement for mssql and mssql gives me an error that it cannot compute the statement because somehow characters like -, >,<,=,! are interpreted as apostrophes. Thanks again for your thoughts and ideas! Oliver
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: ODBC patch, Peter Deacon |
|---|---|
| Next by Date: | TDS+ODBC 'not in service' patch, Peter Deacon |
| Previous by Thread: | Re: freetds, php, cron, Eddie Johnson |
| Next by Thread: | Could not load localization information, Michael Eales |
| 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 |