Truncate that does not work in a SSIS package but works in SSMS

Hi guys I have this simple code
if object_id('[dbo.generator Only production 2011]') is not null
begin
truncate table [generator Only Production 2011]
end
embedded in a SSIS package. It does not work and I don't understand why. If I run the truncate table [generator Only Production 2011] directly from SSMS it works perfectly.
Any clue?
Thanks

if object_id('[dbo.generator Only production 2011]') is not null
You quoted the whole schema + object name with brackets; that query will never return a result =>
if object_id('[dbo].[generator Only production 2011]') is not null
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

  • I am running Lion on both my Macbook Pro and iMac.  Outlook 2011 bombs out and does not even open on my iMac but works perfectly on my Macbook Pro.  Help please.

    I am running Lion on both my Macbook Pro and iMac.  Outlook 2011 bombs out and does not even open on my iMac but works perfectly on my Macbook Pro.  Help please.

    Check for updates by running MS Office Update directly from:
    /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
    (Open Finder, ⇧⌘G, paste in the above and click)

  • Satellite A660-11M: Does not start with 8GB of RAM, but works with 6GB

    Satellite A660-11M:
    I upgraded my RAM from 4GB (2x2GB) to 8GB (2x4GB). When I start the computer I can see in the BIOS it reads the 8GB of RAM. However, when it boots up, it does not go past the blank DOS screen (just before starting Windows).
    If I remove one of the 4GB & replace with a 2GB (so I have 6GB in total) it starts ok.
    Does anyone know how can I get it to work with 8GB of RAM?

    Hey,
    To be honest I never heard about SanMax RAM modules...
    In my opinion the problems is related to your RAM modules Not compatible to your notebook or defective.
    Can you test it with high quality modules from Kingston or pretested modules from an authorized service provider?

  • I bought a new iphone in miami that does not work, how can i get it repaired by apple?

    I live in Argentina. I bought a new iphone 3gs unlocked on January 20th, 2012, in Aventura Mall in Miami, Florida. I arrived in Buenos Aires last Saturday, 28th, turned it on, and it never worked. It shuts down, and freezes for long periods of time, strange things appear on the screen, basically, it DOES NOT WORK AT ALL.
    I want to give it back, and get my money back, but there's no contact mail, or telephone I can call from Argentina. There are only 1-800 telephone numbers which I cannot use from here. Also, there is no official Apple Store or Repair Centre here in Buenos Aires.
    I call to the Aventura Apple Store and a machine answers me, and does not re-direct my call to a repair centre or support centre.
    I find no way to contact Apple regarding my problem. It seems I could only contact them if I lived in USA.
    I can't believe I have bought an Apple product that does not work, and that I cannot claim to anybody. I have no way of asking for a replacement.
    Thanks for your help.

    dologimenezzapiola wrote:
    I call to the Aventura Apple Store and a machine answers me, and does not re-direct my call to a repair centre or support centre.
    I find no way to contact Apple regarding my problem. It seems I could only contact them if I lived in USA.
    This is the way of Apple all over the world, Their toll free telephone numbers for AppleCare support are all country specific.  Apple does not provide an international support number anywhere.
    http://support.apple.com/kb/HE57

  • Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort  by kind but that does not work. It arranges all folders but not the files in the folder., Is there

    Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort  by kind but that does not work. It arranges all folders but not the files in the folder., Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort  by kind but that does not work. It arranges all folders but not the files in the folder.

    Bridge will do the job. View > Sort > ByType. Then you can choose a group of one type and put the files in a separate folder.

  • With previous editions of iTunes for Windows, I could play a CD at the same time as it was being imported. That does not work anymore. Why not, and is there a way to do both with the most current version?

    With previous editions of iTunes for Windows, I could play a CD at the same time as it was being imported. That does not seem to work anymore. Why not, and is there a way to do both with the most current version? I am running a Surface Pro 2 with Windows 8.1 and the most recent vesion of iTunes, which, in all other respects, works well. I just can't listen to an album for the 1/2 to 1 hour that it takes to import it into my library.

    Two JVM's ? I thought that J2EE worked within a single JVM and run everything in containers. Can you see the two processes?

  • TS1398 After updating to ios 6 my iphone 4 would no longer connect to my home wifi. At work we have a free wifi connection that does not require a password. However my wifi at home is password protected. I have the right password. It works on my ipod touc

    After updating my iphone 4 with the ios 6 update. My iphone would no longer connect to my home wifi that is password protected. I know that I have the right password entered in. At work we have a free wifi connection that does not require a password and I can connect no problem to it. My ipod touch has no problem connecting to my home wifi. It is a 3rd gen ipod and does not have the ios 6 update on it. Please help!

    I'm having the same issues. Started when I upgraded iphone 4S and ipad1 to 5.1.1. Wife's iphone 4g on 4.4.2 has been ok. I've forgot the network on both devices and restored the iphone, none of which changed the issue. I've upgraded to ios 6 on the iphone 4s, problem still persists.
         One thing that will help for a time: go to your router and change the wireless control channel. When I first did this I got full connectivity for about 48 hours... and now the problem is back. I'm now changing the wireless control channel every 12 hours, which is a pain but at least keeps me connected. I've tried a few other solutions that are out there and that has been the best one so far.
         to do this on a motorola router: type 192.168.0.1 in your address bar.
    username: admin and password:motorola if you have not changed the factory defaults.
    Click on the word "wireless" and look for the "control channel" field. This may be set to auto or to 1, try changing it to 6 or 11 (preferred) or any other channel.
    The control channel can cause static in the wireless system IF there are several networks nearby that are on the default setup.
    There is a fair bit of buzz about this issue out there, some other things I've seen:
    This is a hardware issue. Go to the store and have your wifi antenna checked, some users reporting that they get free replacement devices.
    Check against other wifi networks that require a password (this is next for me). Logon to those networks and surf until your wifi stops. If your wifi connects to the internet but stops responding, then this is a software (or hardware) issue and apple needs to step up. Some are claiming this to be the case.
    IF you connect and stay connected/on the internet on another password protected wifi, then the issue is with your router. this is where things get cute.
    Comcast may tell you to update your firmware. Motorola may tell you that your cable provider is the only one who can push through firmware updates. Comcast may tell you that you are not in an area that is being updated. It's unclear if they say that to all customers, or just those who have purchased cable modems and aren't renting them from comcast.
    Good luck, more to come if I figure out anything else, and please post any solutions you may find.

  • Safari 5.1.1 I no longer have access to my bookmark folders, just a search that does not work well. How can I retrieve access to bookmark folders?

    OS 10.6.8 Safari 5.1.1 I no longer have access to the bookmark folders. There is just a search function that does not work well. Is there any way to get access back to my bookmark folders?

    This site didn't say anything about one wrong ID, but only talks about changing the Apple ID.  If it didn't work the first time why should it work now?

  • HT1222 I just installed this update and now I cannot access "Mail" at all.  I tried reinstalling the program, but that does not work, either.  Help!!!!!!

    I just installed this update and now I cannot access "Mail" at all.  I tried reinstalling the program, but that does not work, either.  Help!

    Paldeng, thanks for the suggestion.  I've done all that.  I can connect to the server, but apparently they are not recognizing my ID and password.  I can use the server program if I don't go through Mail (using the same ID and password).  My mother in another state with another provider has had the same email issue, as also my husband on his laptop who uses the same internet connection I do.  His worked fine until we had it repaired at the Apple store and all the original programs reloaded (with the required updates, I assume).  We can receive email in Mail, we just cannot send.
    I contacted my service provider, and we went over my connections.  They said it was not their problem and connected me with Apple, resulting in a charge to me because my warranty is long expired.  Apple swears it is not their problem, it is the provider, so here I sit.  My son was able to fix my Mom's Mail (she's 97) and got my husband's working also, until mine went out, by tweaking connection descriptions and ports remotely.  The thing is, we had not messed with any of those settings, so what changed?  I just did not want to bother my son again, as he has many other demands on his time.
    Since this fiasco with the Mail v4.6 update, I'm wondering if something else was updated that works well with Lion and Mountain Lion, but does not work well with Snow Leopard and Leopard.  I think the problem I had with the Mail update was that my Mail program had been renamed to Mail (original), and therefore was not being recognized by the update.  Perhaps they had another tweak in there somewhere that is affecting outgoing mail connections?

  • I have a 4th gen iPod touch and I can not connect to the Internet even though my iPad works and my computer let's me get into the Internet. It gives me a message cannot to server. Please help I have tried to reset it but that does not work

    I have a iPod touch 4th gen. And I cannot get into the Internet I get a message that say cannot connect to server. The other computer and my iPad still work with the Internet . I have reeked to reset it but that does not work. Please help me.

    I do not know wat "reeked to reset" means.
    Try the following:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears
    - Power off and then on your router.
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections

  • I was billed for a renewal with eHarmony that does not work. Eharmony said itunes claims the charge didnt go through but I have already been billed. How do I get my money back or get my subscription working??

    I was billed for a renewal with eHarmony via iTunes that does not work. Eharmony said itunes claims the charge didnt go through but I have already been billed it is on my bank statement. How do I get my money back or get my subscription working?? I have all transaction ID's and invoice numbers. Please help this has been very frustrating, thanks.

    Yes, I reported the problem using that exact sequence immediately after discovering the problem with the app.  When I submitted my complaint and request, Apple redirected me the website of the app manufacturer where I submitted the same complaint/request for refund.  I have not heard back from either, and was still charged, so I can only assume that is not the correct way to "Report a Problem" even though Apple would have you believe otherwise.

  • I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the

    I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the least very disappointed with such horrible service

    Which service did you subscribe to?  Adobe PDF Pack?
    Once I know the service that you subscribed to, I can move this post to the right forum so that you can get in touch with the folks who can assist you.

  • I used to be able to refresh a page by hitting the F5 key. That does not seem to work anymore. Is there a keyboard shortcut for refresh, or can I create one?

    I used to be able to refresh a page by hitting the F5 key. With 4.0.1, that does not seem to work. Is there a different keyboard shortcut, or can I create one?

    Click the Refresh button on the right hand side of the location bar container on the Navigation Toolbar or press "Ctrl + R" or F5 to reload a web page.
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

  • Ipad displays "ipad is disabled connect to itunes", I have tried putting the ipad into recovery mode and then restoring but that does not work. I have also tried doing a hard reset of the ipad and that does not work either. Any ideas?

    Ipad displays “ipad is disabled connect to itunes”, I have tried putting the ipad into recovery mode and then restoring but that does not work. I have also tried doing a hard reset of the ipad and that does not work either. Any ideas?
    My son let one of his friends use his ipad. The next time he tired to use it he could not get it unlocked, I tired to unlock it but it kept telling me that I had the wrong pass code. With out me knowing my son continued to tire until it completely disabled it self.

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • TS1292 How do I redeem a card with a code that does not work?  The support store takes me in circles?

    Help and support sends you in circles and does not help redeem a card with a code that does not work.

    Well, they have a website, but here is a link to their information about unlocking iPhones.
    http://www.att.com/esupport/article.jsp?sid=KB414532&cv=820#fbid=6d7EKuCF_dr
    You may not qualify for an unlock though.

Maybe you are looking for

  • Payment run has been cancelled

    Hi Experts, We have a problem in Payment Run. In proposal there are 154 line items are ready for payment (status is Green).  But once we did the payment run the status is Posting orders: 109 generated, 109 completed and Payment run has been cancelled

  • Changing field lable (header) in Table control.

    Hi all,         I am currently working on a table control. The requirement is to change the label in the column heading dynamically based on few conditions. Could any one please help me in finding out a way for changing the heading labels dynamically

  • I can't excess my old email and forgot my security questions *** I just put 15 on and can't do anything

    Sumone tell me I even changed my primary I'd but still

  • Standby database on different version than prod.

    Is it possible to have a standby database running on a different version of Oracle than the production database? In this case I have production DB on the following version: 7.3.4 8.1.7.4.0 9.2.0.4.0 9.2.0.6.0 Would it be possible to run the a stand b

  • Problem to Open OEM

    Hi, I just installed Oracle AS 10g (10.1.2.0.0) on RHEL 3 Advance Server Update 4. After finish installation, i unable to access OEM page. Is there other configuration that i need to configure?