HomeForum
Welcome, Guest

SQL script
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: SQL script

SQL script 1 year, 3 months ago #1626

  • Ali
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
Hi,

I am trying to get a SQL script to execute from a package, the SQL will
run from MS SQL Query Analyser, and I can execute other SQL (both before and after) during a Table Import process, but when trying to execute a SQL script from the package it doesn't seem to execute, it doesn't
fail, it just doesn't do what it is suppose to.

Any ideas ?

Re: SQL script 1 year, 3 months ago #1627

  • admin
  • NOW ONLINE
  • Moderator
  • Posts: 2191
  • Karma: 12
Have you specified sql statements seprator?

It should be like
exec proc1
go
exec proc2
go

Mike

Re: SQL script 1 year, 3 months ago #1628

  • Ali
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
No,

I was just trying to run some SQL as a step of a package.

My SQL looks like this :

UPDATE S_CONTACT_X
SET X_ATTRIB_105 = NULL, X_ATTRIB_106 = NULL
WHERE X_ATTRIB_105 = 'XXX' AND X_ATTRIB_106 = CONVERT(DATETIME,
'2099-01-01 00:00:00', 102)

Do I have to create a stored procedure and execute that? Or do I just
have to write the sql in script?

ali
  • Page:
  • 1
Time to create page: 0.16 seconds

Testimonials

"Advanced ETL Processor is superior software... I highly recommend this to anyone who is building datawarehouse. I would and I  have recommended it to many colleagues and customers."

- Peter Jonson, Data Integration Consultant, MPI

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top