Re: script dies yet there are no errors in error log



On Oct 22, 2:54 pm, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx> wrote:
lawrencek wrote:

Bizzare. I took out the UPPER and strtoupper() stuff from the queries,
so the SQL became simple:

$query = "UPDATE tracks SET status=4 WHERE isrc_id = '$upc' ";

The script now seems to work. I was able to run 200 UPCs through the
script and the script ran in less than a second.

That would make sense. The UPPER requires a table scan, where without
it MySQL probably is using an index.


That's a hot tip. I suppose if I'd thought clearly about it I might
have realized that. But that is good to know.




.



Relevant Pages

  • Re: Vista hosting XPe tools/db
    ... Are you running this script on the machine that actually has the SQL server ... machine hosting the database. ... i don't know if you can install a second instance of SQL ...
    (microsoft.public.windowsxp.embedded)
  • Re: ActiveX script works in DTS but not in job, why?
    ... Account that SQL Agent runs under and it is a Local Admin on the box. ... As another test I saved the script as a .vbs file and tried running it, ... Microsoft OLE DB Provider for SQL Server ... that would be since I need to be able to load DTS packages from either a SQL ...
    (microsoft.public.sqlserver.dts)
  • Re: Enterprise Manager Newbie Question
    ... a SQL backup is not a simple copy of the database files. ... Is it possible to write a script that one could run from a workstation and ...
    (microsoft.public.sqlserver.tools)
  • Re: Vista hosting XPe tools/db
    ... here's an alternative script using the Microsoft ADO as ... opposed to the SQL DMO - this should allow this script to work ... Microsoft Windows XP Embedded Test Team ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.windowsxp.embedded)
  • Re: SQL Security
    ... except I'm having problems making it work in a script. ... ;Set properties of DB objects and open connection to database ... > from Books Online (within the SQL Server program group): ... > communicate with SQL Server. ...
    (microsoft.public.sqlserver.server)