Jump to content

Query runs on Query Analizer but not trough php code


Bennett

Recommended Posts

Greetings, I have a strange problem, that is that my query would run good on analyzer but id returns warning through PHP, here is the script:

 

IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE' AND TABLE_NAME='cart082010') UPDATE a SET 
a.c_empresa=b.c_empresa,.........
from cart082010 a, Sogfih_TOC.Sogfih_OPDF.dbo.cart082010 b  
WHERE a.c_empresa = b.c_empresa AND ..........
ELSE SELECT * into cart082010 FROM  Sogfih_TOC.Sogfih_OPDF.dbo.cart082010

 

 

please help....

Link to comment
Share on other sites

here are the general setting I use:

mssql_query('set nocount off

set arithabort on

set concat_null_yields_null on

set ansi_nulls on

set cursor_close_on_commit off

set ansi_null_dflt_on on

set implicit_transactions off

set ansi_padding on

set ansi_warnings on

set quoted_identifier on

set parseonly off

');

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.