Problem with full backup with copy only in maintenance plan sql server 2008

Hello
I am starter DBA for sql server in general
I have problem related to backup with maintenance plan in sql server 2008 and 2008 r2
I created maintenance plan to take full back up  with copy only option checked, but when I check the back up in backupset table is_copy_only column it shows 0 for databases that I run job for.
I did the same steps on sql server 2012 and I checked backupset table is_copy_only column it shows 1 for databases that I run job for .so it works as it should be
Note: all the servers I mention here are production servers 

Copy-only Backup  by using GUI ( SSMS) in SQL Server 2008 but it was not available in  Maintenance Plan "Back
Up Database Task". Now in SQL Server 2012 It is included in "Back Up Database
Task". 
http://sqlage.blogspot.in/2013/06/dba-maintenance-plan-back-up-database.html

Similar Messages

  • How to only migrate data from SQL Server 2008 to Oracle 11?

    According to our requirement, We need to only migrate data from a SQL Server database to an existed
    Oracle database user.
    1) I tried to do it with SQL Developer 3.0.04 Migration Wizard, But find an issue.
    My SQL Server database name is SCDS41P2, and my Oracle database user name is CDS41P2;
    When I used SQL Developer to do offline move data by Migration Wizard, I found all oracle user
    name in movedata files which gotten by run Migration Wizard
    is dbo_SCDS41P2. If the Oracle user name is not the same as my existed Oracle user name,
    the data can't be moved to my existed Oracle user when I run oracle_ctl.bat in command line window.
    So I had to modify the Oracle user name in all movedata files, but it's difficult to modify them because there are many tables in
    databases. So could you please tell me how to get the movedata files which the oracle user name in them is my
    expected Oracle user name?
    2) I also tried to use the 'copy to Oracle' function to copy the SQL Server database tables data
    to the existed Oracle database user. When clicked 'copy to Oracle', I selected 'Include Data' and 'Replace' option
    But I found some tables can't be copied, the error info is as below:
    Table SPSSCMOR_CONTROLTABLE Failed. Message: ORA-00955: name is already used by an existing object
    Could you please tell me how to deal with this kind of error?
    Thanks!
    Edited by: 870587 on Jul 6, 2011 2:57 AM

    Hi,
    Thanks for you replying. But the 'copy to oracle' function still can't be work well. I will give some info about the table. I also search 'SPSSCMOR_CONTROLTABLE' in the target schema, and only find one object. So why say 'name is already used by an existing object'? Could you please give me some advice? Thanks!
    What is the 'Build' version of your SQL*Developer ?
    [Answer]:
    3.0.04
    - what does describe show for the SPSSCMOR_CONTROLTABLE in SQL*Server ?
    [Answer]:
    USE [SCDS41P2]
    GO
    /****** Object: Table [dbo].[SPSSCMOR_CONTROLTABLE] Script Date: 07/18/2011 01:25:05 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[SPSSCMOR_CONTROLTABLE](
         [tablename] [nvarchar](128) NOT NULL,
    PRIMARY KEY CLUSTERED
         [tablename] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    - what does describe show for the SPSSCMOR_CONTROLTABLE in Oracle ?
    [Answer]:
    -- File created - Monday-July-18-2011
    -- DDL for Table SPSSCMOR_CONTROLTABLE
    CREATE TABLE "CDS41P2"."SPSSCMOR_CONTROLTABLE"
    (     "TABLENAME" NVARCHAR2(128)
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    -- DDL for Index SYS_C009547
    CREATE UNIQUE INDEX "CDS41P2"."SYS_C009547" ON "CDS41P2"."SPSSCMOR_CONTROLTABLE" ("TABLENAME")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    -- Constraints for Table SPSSCMOR_CONTROLTABLE
    ALTER TABLE "CDS41P2"."SPSSCMOR_CONTROLTABLE" MODIFY ("TABLENAME" NOT NULL ENABLE);
    ALTER TABLE "CDS41P2"."SPSSCMOR_CONTROLTABLE" ADD PRIMARY KEY ("TABLENAME")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE;
    Edited by: 870587 on Jul 18, 2011 1:42 AM

  • SSIS 2012 package scheduling with SQL Server 2008 R2

    Hi, We have a ssis 2012 package with parameters & would like to schedule this package in SQL Server 2008 R2 agent. Is there a way to pass parameters to the ssis package from SQL Server 2008 R2 agent?
    Thanks in advance..........
    Ione

    You cant use SQL 2008 R2 to schedule it as dtexec 2008 cant execute package created using SSIS 2012. The inverse can be done though
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Is ODI compatible with Microsoft SQL Server 2008??

    Hi,
    We are trying to set ODI for SQL Server 2008 but we are getting an error: "connection failed". I do not know if the problem is the driver or the incompatibility between ODI and SQL Server 2008.
    Does someone use them together? Are compatible?
    If the response is yes, where is the problem? We are using the following JDBC driver:
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    jdbc:microsoft:sqlserver://<host>:<port>
    And we have download the sqljdbc_2.0 driver.
    Thank you very much,
    Araitz.-

    Hi Araitz,
    I have ODI Connecting to a Master and Work Repository on SQL Server 2008
    Couple of things:
    - Have you put the JDBC driver in the drivers folder of you ODI installation?
    - In terms of the connection strings, your driver name seems OK; This is the string I have for my URL - jdbc:sqlserver://localhost:1433;databaseName=odimaster; IntegratedSecurity=false
    For the user name and password, put those in the connection area. By using IntegratedSecurity=false, you are forcing the password to be picked up from the connection area and not trying to use your AD credentials
    Note - The connection string contains odimaster (this is for our ODI Designer login)
    Hope this helps.
    Best Regards,
    geeo

  • Installing Full-Text Search in SQL Server 2008 Standard

    Hello,
     We have a SQL Server 2008 Standard server, and I need to install full-text search in order to take advantage of some features with Autodesk Vault.  I believe that I understand the procedure to do so, but, does the installation of the setup tools
    and full-text search component cause any interruption to the database instances (or require a reboot)?
    Thanks

    Hi Indiana Grumpycooter,
    Full text search feature is supported by the SQL Server 2008 standard version, so you can install this feature in
    installation page of the SQL Server Installation Wizard. There is an similar example about adding SQL Full-Text Search to an existing SQL Server, you can review the following steps.http://www.techrepublic.com/blog/data-center/adding-sql-full-text-search-to-an-existing-sql-server/
    In addition, you can also install this feature via command line as follows. For more information, see:
    http://msdn.microsoft.com/en-us/library/ms144259(v=sql.100).aspx
    Setup.exe /q /ACTION=Install /FEATURES= Full-Text /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="<DomainName\UserName>" /SQLSVCPASSWORD="<StrongPassword>" /SQLSYSADMINACCOUNTS
    As other post, it will not cause interruption, and you require a reboot after installing Full-Text feature.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Backup Restore With SQL Server 2008 R2 although it succeeded with SQL Server 2008

    Dears;
    I have a Full backup of some DB of around 417 GB within SQL Server 2008 R2 , and when I tried to restore it , i get  stuck several times with the error below :
    Restore failed for Server   (Microsoft.SqlServer.SmoExtended)
    A system assertion check has failed. Check the SQL Server error log for details. Typically, an assertion failure is caused by a software bug or data corruption. To check for database corruption, consider
    running DBCC CHECKDB. If you agreed to send dumps to Microsoft during setup, a mini dump will be sent to Microsoft. An update might be available from Microsoft in the latest Service Pack or in a QFE from Technical 
    Although I have restored
     successfully other several Full+ Deferential backups for the same DB while it was in SQL Server 2008 not 2008 R2.
    And so I have rounded all different possible assumptions for such common know error by Microsoft for SQL Server 2000, 2005, 2008 but 
    no way as next:
    1-     
    I have attempted to restore it within 2 environments clustered and non-clustered of SQL Server 2008 R2.
    2-     
    I have attempted to restore verify it and it was so fine .
    3-     
    I have attempted to restore it using Continue_after_error ,no_checksum but no way.
    4-     
    I have attempted to move Backup file to another Storage but no way.
    5-     
    I have scheduled jobs to DBCC
     Checkdb the live DB and it wasn’t any errors since long time right now
    6-     
    I have also DBCC check all master +msdb+model+Tempdb ,and they are so fine
    7-     
    I have also checked all I/O subsystem of SAN and Network controllers , but they are fine evidenced much more by my trial on 2 different environments.
    8-     
    I have also checked Memory and it is so fine all the time since I have 128 GB memory and I control it also so well.
    For DB Design +Structure :
    It has 20 Files containing tables partitioned horizontal +Vertically
     (Schema Partitioning +File Stream partitioning ) through these 20 files.
    I have Data compression of the required tables only.
    I have one table of more than 300 GB alone which is partitioned as mentioned above.
    I have implemented Read Committed Snapshot isolation level using row versioning integrated so well with File stream technology since it is a new feature of SQL 2008 R2.
    DB is in simple recovery model for garbage collection of all file stream data as a result of much Delete /update in images themselves.
     So any one has any idea about such case..How to solve it…?

    Hi Ashwin,
    When i searched with no answers these are listed out. So i thought this is still existing. Now on wards let me check the data and time of latest reply. Thanks for guidance.
    It was happening by oversight. Thanks for guidance.
    Regards, Pradyothana DP. Please Mark This As Answer if it solved your issue. Please Mark This As Helpful if it helps to solve your issue. ========================================================== http://www.dbainhouse.blogspot.in/

  • Problems with SQL server 2008 nvarchar type to varchar in oracle.

    Hello    
    I did an Heterogeneous Connectivity between SQL server 2008 db and Oracle 11g, so far so good, but when i try to view colum data on RPD (only varchar type) i only see the first character of the string.
    One more thing, when i try to see the data on Oracle SQL developer i get some strange characters, like when we have the wrong character encoding on our browser.
    Some print to illustrate the problem.
    Oracle SQL developer query:
    http://postimg.org/image/5cvyqw6ih/
    Microsoft SQL developer query :
    http://postimg.org/image/skddx991f/
    RPD printscreen :
    http://postimg.org/image/aok2337cp/
    SQLplus  (as you can see the are spaces between the characters ) :
    http://postimg.org/image/664xw1xjh/
    To finish the data will be use to build an mobile app with oracle mobile app designer.
    Thank you

    The spaces you see between the characters when using the gateway indicate a wrong charset is being used.
    1. Which gateway are you using - DG4MSQL or Dg4ODBC?
    2. Could you please post the gateway init file and just in case it is DG4ODBC also the odbc.ini file
    3. What's the character set of the Oracle database?
    4. Looks like you're connected using Putty to a Unix box - what is the Putty NLS setting?
    5. What is the NLS setting when starting SQL*Plus and what is the LOCALE setting?
    6. Was a NLS_LANG parameter set when the gateway was started? Please change in your gateway init file the HS_FDS_TRACE_LEVEL to DEBUG, then run again the query and post it to a share.
    => There's a note that guides you step by step to configure the gateway and your env correctly - please have a look at:
    NLS Guide for Generic Connectivity and Gateways (Doc ID 230239.1)
    - Klaus

  • I'm having issues with iCloud backup with comcast since iO6 update

    I'm having issues with iCloud backup with comcast since iO6 update.  I'm able to back via work wifi but not at home.  Any ideas?

    Hi BmoreHunter.
         As far as using the bridge mode method you'd need to see what CLJDOhas to say, as that user is the only one that I see in this thread who used this method. The method that worked for me is different. I went out and bought a new modem. This made the most sense to me since the firmware in the unit that comcast gave me had issues and I am paying to rent the thing, I figured that I'll save some money if I just buy my own.
         I ended up purchasing a motorola SURFboard eXtreme (model SB6121) for $70 (happened to be on sale) from my local Target. For another $7 I was able to secure a 2yr warranty against failure, which was my only hesitation in buying vs renting.
         This modem should work just fine for you since you are a comcast customer. If you decide to go with a different modem, the important thing is to make sure that you purchase a modem that is compatible with the technology that your ISP (in this case comcast) uses. Also DOCSIS 3.0 is the "flavor" of cable modem you want as it will give you better performace than DOCSIS 2.0 devices (such as an older Motorola SURFboard).
         Once you buy the modem you will have to call comcast and have them add the modem to your account. They'll ask for the MAC address of the modem, then send a re-set signal to it, so make sure you are home when you call and can connect/disconnect the modem as needed. After your modem is added to your account and up and running you can then connect your new AirPort Express to the modem (via ethernet cable) and you should be all set!

  • Problem with restore database in sql server 2008

    hi,,,when i want to restore database from a .bak file i see this error
    TITLE: Microsoft SQL Server Management Studio
    Restore failed for Server 'ALI-PC'.  (Microsoft.SqlServer.SmoExtended)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1447.4+((KJ_RTM).100213-0103+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476
    ADDITIONAL INFORMATION:
    System.Data.SqlClient.SqlError: The database was backed up on a server running version 10.50.4000. That version is incompatible with this server, which is running version 10.00.1600. Either restore the database on a server that supports the backup, or use a
    backup that is compatible with this server. (Microsoft.SqlServer.Smo)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1447.4+((KJ_RTM).100213-0103+)&LinkId=20476
    BUTTONS:
    OK
    i checked overwrite the existing database(WUTH REPLACE) in option,but i cant restore again,,,please help me

    Hi,
    You need to install SQL Server 2008 R2 Service Pack 2
    Download
    http://www.microsoft.com/en-us/download/details.aspx?id=11093, you are currently running the RTM and the backup was from Version 10.50.4000 and your attempting to restore to version 10.00.1600.
    To find your current SQL Version open a New Query and paste the following then execute
    SELECT @@VERSION AS 'SQL Server Version
    Reference:
    http://sqlserverbuilds.blogspot.com/
    http://support.microsoft.com/kb/321185
    http://technet.microsoft.com/en-us/library/ms177512.aspx
    Cheers,
    -Ivan

  • Local Network Connection Problem with SQL Server 2008 R2

    Hi,
    I have CRM application which uses SQL server 2008. Weird thing is that I have no problems connecting from client machines to the server when using a particular router (via LAN) and when I upgrade the firmware of the same router (A common open source firmware
    which is used by many also works perfect apart from mentioned problem) and restart the server, the connection cannot be established. I get Error 40. 
    When i downgrade the firmware and restart the server, the connection works again.
    Please note that I am absolutely not touching any configuration of the server. Also the CRM software allows remote connections from public IPs which this feature works fine with both downgraded and upgraded firmwares. 
    As for my understanding, the routers do not block ports in LAN connections. So how can I diagnose the reason for this connection problem?

    Hi Leony83,
    Please also help to check Windows Event Log information regarding this issue, so that we can do further investigation. In additin, here is the general steps to troubleshoot SQL Server Error 40 issue. Please see:
    SQL SERVER – Fix : Error : 40 – could not open a connection to SQL server – Fix Connection Problems of SQL Server:
    http://blog.sqlauthority.com/2008/08/24/sql-server-fix-error-40-could-not-open-a-connection-to-sql-server-fix-connection-problems-of-sql-server/
    Hope this helps.
    Regards,
    Elvis Long
    TechNet Community Support

  • Creating New db(with new name) with the old db backup sql server 2008

    Friends..
    version: Sql Server 2008
    I have a database in a name college1 (more than 200 tables and view etc...)
    i want to create a new db with all the structures including the data of the above db college1 with a new name college2
    so...i finished the step 1 successfully.. what are the other steps i have to do...like validating the invalid objects. etc....
    Step 1:
    RESTORE DATABASE college2 FROM DISK = 'D:\DailyDBbackup\college1.bak'
      WITH replace,
      move 'college2 ' TO 'D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\college2 .mdf',
      move  'college2 _log' TO 'D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\college2 _log.ldf';
    step 2: ?
    Step 3: ?
    thanks...

    but...when i type
    use college1
    select * from (it will display all tables under the above db)
    but when i do..
    use college2
    select * from (only system tables are displaying..)
    Did restore completed successfully ? If yes Expand database , can you see tables in the new database you restored ?. Sometimes when you type incorrect word which does not matches anything you wont get help from intellicense you should not be worried about this
    if tables are there in new database college 2
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • SQL Server 2008 R2 with Tools Evaluation Copy

    Hello,
    Is the SQL Server 2008 R2 software (SSMS, BIDS) still available for evaluation download?  I was only able to find the Express edition, but I cannot open my solutions using Express.  I tried to upgrade Express to Evaluation, but I get the below
    error.
    Rule Check Result
    Rule "SQL Server 2008 R2 edition upgrade" failed.
    The selected SQL Server instance does not meet upgrade matrix requirements.
    OK   
    Thank you - Brett

    Hello,
    SQL Server 2008 R2 Evaluation Edition seems no longer available on Microsoft Download as you can see on the following link:
    http://www.microsoft.com/en-us/download/details.aspx?id=8158
    However, if you are a MSDN subscriber you can download the full media of any paid edition of SQL Server 2008 R2, run SQL Server setup and choose Evaluation Edition
    on the “Product Key” page of SQL Server setup.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Error on setup failover cluster with Windows 2008 R2 enterprise and SQL Server 2008 R2 (also with SP1)

    Hi!
    The setup process fails with this error:
      Configuration error code:     
    0x1C2074D8@1216@1
      Configuration error description: There was an error setting private property 'VirtualServerName' to value 'CLUSTER02' for resource 'SQL Server'.  Error: Value does not fall within the expected range.
    I have found some hints by google, but nothing really helpfull.
    Has anyone had a simular problem when installing SQL server 2008 R2?
    All posts I found are about sql server 2008 (no R2!).
    The cluster itself is working (storage, network, msdtc, quorum...).
    Any hints?
    Andreas
    Here is the complete log:
    Overall summary:
      Final result:                  Failed: see details below
      Exit code (Decimal):           -2067791871
      Exit facility code:            1216
      Exit error code:               1
      Exit message:                  Failed: see details below
      Start time:                    2012-04-06 11:23:57
      End time:                      2012-04-06 12:01:21
      Requested action:              InstallFailoverCluster
      Log with failure:              C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120406_112205\Detail.txt
      Exception help link:           http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.50.2500.0%26EvtType%3d0x625969A3%400x294A9FD9
    Cluster properties:
      Machine name: OC-SQLCL02ND01
      Product              Instance             Instance ID                   
    Feature                                  Language            
    Edition              Version         Clustered
      Machine name: OC-SQLCL02ND02
      Product              Instance             Instance ID                   
    Feature                                  Language            
    Edition              Version         Clustered
    Machine Properties:
      Machine name:                  OC-SQLCL02ND01
      Machine processor count:       32
      OS version:                    Windows Server 2008 R2
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  Yes
    Product features discovered:
      Product              Instance             Instance ID                   
    Feature                                  Language            
    Edition              Version         Clustered
    Package properties:
      Description:                   SQL Server Database Services 2008 R2
      ProductName:                   SQL Server 2008 R2
      Type:                          RTM
      Version:                       10
      Installation location:         G:\x64\setup\
      Installation edition:          STANDARD
      Slipstream:                    True
      SP Level                       1
    User Input Settings:
      ACTION:                        InstallFailoverCluster
      AGTDOMAINGROUP:                <empty>
      AGTSVCACCOUNT:                 MANAGEMENT\sqladmin
      AGTSVCPASSWORD:                *****
      ASBACKUPDIR:                   S:\OLAP\Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   S:\OLAP\Config
      ASDATADIR:                     S:\OLAP\Data
      ASDOMAINGROUP:                 <empty>
      ASLOGDIR:                      S:\OLAP\Log
      ASPROVIDERMSOLAP:              1
      ASSVCACCOUNT:                  MANAGEMENT\sqladmin
      ASSVCPASSWORD:                 *****
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            MANAGEMENT\administrator
      ASTEMPDIR:                     S:\OLAP\Temp
      CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120406_112205\ConfigurationFile.ini
      CUSOURCE:                     
      ENU:                           True
      ERRORREPORTING:                False
      FAILOVERCLUSTERDISKS:          Cluster Disk 3,Cluster Disk 4,Cluster Disk 5
      FAILOVERCLUSTERGROUP:          SQL Server (MSSQLSERVER)
      FAILOVERCLUSTERIPADDRESSES:    IPv4;172.29.2.122;Cluster Network 2;255.255.255.0,IPv4;172.29.3.122;Cluster Network 3;255.255.255.0
      FAILOVERCLUSTERNETWORKNAME:    CLUSTER02
      FARMACCOUNT:                   <empty>
      FARMADMINPORT:                 0
      FARMPASSWORD:                  *****
      FEATURES:                      SQLENGINE,REPLICATION,FULLTEXT,AS,RS,BIDS,CONN,IS,BC,SSMS,ADV_SSMS
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  NT AUTHORITY\LOCAL SERVICE
      FTSVCPASSWORD:                 *****
      HELP:                          False
      INDICATEPROGRESS:              False
      INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           C:\Program Files (x86)\Microsoft SQL Server\
      INSTALLSQLDATADIR:             S:\
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    MSSQLSERVER
      INSTANCENAME:                  MSSQLSERVER
      ISSVCACCOUNT:                  NT AUTHORITY\SYSTEM
      ISSVCPASSWORD:                 *****
      ISSVCSTARTUPTYPE:              Automatic
      PASSPHRASE:                    *****
      PCUSOURCE:                     d:\install\mssql\sp1
      PID:                           *****
      QUIET:                         False
      QUIETSIMPLE:                   False
      RSINSTALLMODE:                 FilesOnlyMode
      RSSVCACCOUNT:                  MANAGEMENT\sqladmin
      RSSVCPASSWORD:                 *****
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         *****
      SECURITYMODE:                  SQL
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLDOMAINGROUP:                <empty>
      SQLSVCACCOUNT:                 MANAGEMENT\sqladmin
      SQLSVCPASSWORD:                *****
      SQLSYSADMINACCOUNTS:           MANAGEMENT\administrator
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               L:\MSSQL10_50.MSSQLSERVER\MSSQL\Data
      SQLUSERDBDIR:                  T:\MSSQL10_50.MSSQLSERVER\MSSQL\Data
      SQLUSERDBLOGDIR:               L:\MSSQL10_50.MSSQLSERVER\MSSQL\Data
      SQMREPORTING:                  False
      UIMODE:                        Normal
      X86:                           False
      Configuration file:            C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120406_112205\ConfigurationFile.ini
    Detailed results:
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:     
    0x1C2074D8@1216@1
      Configuration error description: There was an error setting private property 'VirtualServerName' to value 'CLUSTER02' for resource 'SQL Server'.  Error: Value does not fall within the expected range.
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120406_112205\Detail.txt
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:     
    0x1C2074D8@1216@1
      Configuration error description: There was an error setting private property 'VirtualServerName' to value 'CLUSTER02' for resource 'SQL Server'.  Error: Value does not fall within the expected range.
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120406_112205\Detail.txt
      Feature:                       Full-Text Search
      Status:                        Failed: see logs for details
      MSI status:                    Passed
      Configuration status:          Failed: see details below
      Configuration error code:     
    0x1C2074D8@1216@1
      Configuration error description: There was an error setting private property 'VirtualServerName' to value 'CLUSTER02' for resource 'SQL Server'.  Error: Value does not fall within the expected range.
      Configuration log:             C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120406_112205\Detail.txt
      Feature:                       Analysis Services
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Reporting Services
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Integration Services
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Client Tools Connectivity
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Management Tools - Complete
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Management Tools - Basic
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Client Tools Backwards Compatibility
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
      Feature:                       Business Intelligence Development Studio
      Status:                        Passed
      MSI status:                    Passed
      Configuration status:          Passed
    Rules with failures:
    Global rules:
    There are no scenario-specific rules.
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120406_112205\SystemConfigurationCheck_Report.htm

    Hi Andreas Plachy,
    Please make sure that the Virtual Server Name ‘CLUSTER02’ is unique on the network. In addition, are there any resources named ‘SQL Server’ on the Windows cluster? If that is the case, you may need to rename the related resources to avoid conflicting with
    SQL Server, and try again.
    Stephanie Lv
    TechNet Community Support

  • SQL Server 2008 Express -- Process exited with code -2068643839

    When installing SQL Server 2008 Express, I continue to get the following info in the install log.  I notice that I only get this issue with 64-bit PC's (win 7 & win 8.1).  Ideas?
    Thanks.
    The following components failed to install:
    - SQL Server 2008 Express
    See the setup log file located at 'C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\install.log' for more information.
    The following properties have been set:
    Property: [AdminUser] = true {boolean}
    Property: [InstallMode] = SameSite {string}
    Property: [ProcessorArchitecture] = AMD64 {string}
    Property: [VersionNT] = 6.1.0 {version}
    Running checks for package 'Windows Installer 3.1', phase BuildList
    The following properties have been set for package 'Windows Installer 3.1':
    Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
    Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
    'Windows Installer 3.1' RunCheck result: No Install Needed
    Running checks for package 'SyncSDK', phase BuildList
    The following properties have been set for package 'SyncSDK':
    Running checks for command 'SynSDK\syncsdk-v2.1-x86-enu.msi'
    Result of checks for command 'SynSDK\syncsdk-v2.1-x86-enu.msi' is 'Install'
    'SyncSDK' RunCheck result: Install Needed
    Running checks for package 'Windows Installer 4.5', phase BuildList
    Looking up path for special folder 'WindowsFolder'
    Running check with folder 'C:\Windows\System32' and file 'msi.dll'
    Attempting to find file 'C:\Windows\System32\msi.dll'
    File version is '5.0.7601.18637'
    Setting value '5.0.7601.18637 {version}' for property 'VersionMsiDll'
    The following properties have been set for package 'Windows Installer 4.5':
    Property: [VersionMsiDll] = 5.0.7601.18637 {version}
    Running checks for command 'WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true
    Result of checks for command 'WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe' is 'Bypass'
    Running checks for command 'WindowsInstaller4_5\WindowsXP-KB958655-v2-x86-ENU.exe'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true
    Result of checks for command 'WindowsInstaller4_5\WindowsXP-KB958655-v2-x86-ENU.exe' is 'Bypass'
    Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x86.exe'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true
    Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x86.exe' is 'Bypass'
    Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB958655-v2-x86-ENU.exe'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true
    Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB958655-v2-x86-ENU.exe' is 'Bypass'
    Running checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x64.exe'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '4.5': true
    Result of checks for command 'WindowsInstaller4_5\WindowsServer2003-KB942288-v4-x64.exe' is 'Bypass'
    Running checks for command 'WindowsInstaller4_5\WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22299': true
    Result of checks for command 'WindowsInstaller4_5\WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe' is 'Bypass'
    Running checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x86.MSU'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22308': true
    Result of checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x86.MSU' is 'Bypass'
    Running checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x64.MSU'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsiDll' and value '4.5.6001.22308': true
    Result of checks for command 'WindowsInstaller4_5\Windows6.0-KB958655-v2-x64.MSU' is 'Bypass'
    'Windows Installer 4.5' RunCheck result: No Install Needed
    Running checks for package 'Microsoft .NET Framework 4 (x86 and x64)', phase BuildList
    Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full'
    Read string value '4.5.50938'
    Setting value '4.5.50938 {string}' for property 'DotNet40Full_TargetVersion'
    The following properties have been set for package 'Microsoft .NET Framework 4 (x86 and x64)':
    Property: [DotNet40Full_TargetVersion] = 4.5.50938 {string}
    Running checks for command 'DotNetFX40\dotNetFx40_Full_x86_x64.exe'
    Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': false
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'DotNet40Full_TargetVersion' and value '4.0.30129': true
    Result of checks for command 'DotNetFX40\dotNetFx40_Full_x86_x64.exe' is 'Bypass'
    Running checks for command 'DotNetFX40\dotNetFx40_Full_setup.exe'
    Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': true
    Result of checks for command 'DotNetFX40\dotNetFx40_Full_setup.exe' is 'Bypass'
    'Microsoft .NET Framework 4 (x86 and x64)' RunCheck result: No Install Needed
    Running checks for package 'Microsoft .NET Framework 4 Client Profile (x86 and x64)', phase BuildList
    Reading value 'Version' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Client'
    Read string value '4.5.50938'
    Setting value '4.5.50938 {string}' for property 'DotNet40Client_TargetVersion'
    The following properties have been set for package 'Microsoft .NET Framework 4 Client Profile (x86 and x64)':
    Property: [DotNet40Client_TargetVersion] = 4.5.50938 {string}
    Running checks for command 'DotNetFX40Client\dotNetFx40_Client_x86_x64.exe'
    Result of running operator 'ValueEqualTo' on property 'InstallMode' and value 'HomeSite': false
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'DotNet40Client_TargetVersion' and value '4.0.30129': true
    Result of checks for command 'DotNetFX40Client\dotNetFx40_Client_x86_x64.exe' is 'Bypass'
    Running checks for command 'DotNetFX40Client\dotNetFx40_Client_setup.exe'
    Result of running operator 'ValueNotEqualTo' on property 'InstallMode' and value 'HomeSite': true
    Result of checks for command 'DotNetFX40Client\dotNetFx40_Client_setup.exe' is 'Bypass'
    'Microsoft .NET Framework 4 Client Profile (x86 and x64)' RunCheck result: No Install Needed
    Running checks for package 'SQL Server 2008 Express', phase BuildList
    Running external check with command 'C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\SqlExpress2008\SqlExpressChk.exe' and parameters '10.0.1600 1033'
    Process exited with code 1
    Setting value '1 {int}' for property 'SQLExpressChk'
    The following properties have been set for package 'SQL Server 2008 Express':
    Property: [SQLExpressChk] = 1 {int}
    Running checks for command 'SqlExpress2008\SQLEXPR32_x86_ENU.EXE'
    Result of running operator 'ValueNotExists' on property 'VersionNT': false
    Result of running operator 'VersionLessThan' on property 'VersionNT' and value '5.1.2': false
    Result of running operator 'VersionEqualTo' on property 'VersionNT' and value '5.2.0': false
    Result of running operator 'VersionEqualTo' on property 'VersionNT' and value '5.2.1': false
    Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
    Result of running operator 'ValueEqualTo' on property 'SQLExpressChk' and value '-1': false
    Result of running operator 'ValueEqualTo' on property 'SQLExpressChk' and value '-2': false
    Result of running operator 'ValueEqualTo' on property 'SQLExpressChk' and value '-3': false
    Result of running operator 'ValueEqualTo' on property 'SQLExpressChk' and value '-4': false
    Result of running operator 'ValueLessThan' on property 'SQLExpressChk' and value '-4': false
    Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'Intel': true
    Result of checks for command 'SqlExpress2008\SQLEXPR32_x86_ENU.EXE' is 'Bypass'
    Running checks for command 'SqlExpress2008\SQLEXPR32_x86_ENU.EXE'
    Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'Intel': true
    Result of checks for command 'SqlExpress2008\SQLEXPR32_x86_ENU.EXE' is 'Bypass'
    Running checks for command 'SqlExpress2008\SQLEXPR_x64_ENU.EXE'
    Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'amd64': false
    Result of running operator 'ValueNotEqualTo' on property 'SQLExpressChk' and value '1': false
    Result of checks for command 'SqlExpress2008\SQLEXPR_x64_ENU.EXE' is 'Install'
    Running checks for command 'SqlExpress2008\SQLEXPR_x64_ENU.EXE'
    Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'amd64': false
    Result of running operator 'ValueNotEqualTo' on property 'SQLExpressChk' and value '2': true
    Result of checks for command 'SqlExpress2008\SQLEXPR_x64_ENU.EXE' is 'Bypass'
    'SQL Server 2008 Express' RunCheck result: Install Needed
    EULA for components 'SQL Server 2008 Express' was accepted.
    Installation of components 'SyncSDK' was accepted.
    Copying files to temporary directory "C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\"
    Copying from 'C:\Installs\NewMBA\SynSDK\syncsdk-v2.1-x86-enu.msi' to 'C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\SynSDK\syncsdk-v2.1-x86-enu.msi'
    Verifying file integrity of C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\SynSDK\syncsdk-v2.1-x86-enu.msi
    WinVerifyTrust returned 0
    File trusted
    Copying from 'C:\Installs\NewMBA\SqlExpress2008\SQLEXPR_x64_ENU.EXE' to 'C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\SqlExpress2008\SQLEXPR_x64_ENU.EXE'
    Verifying file integrity of C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\SqlExpress2008\SQLEXPR_x64_ENU.EXE
    WinVerifyTrust returned 0
    File trusted
    Running checks for package 'SyncSDK', phase BeforePackage
    The following properties have been set for package 'SyncSDK':
    Running checks for command 'SynSDK\syncsdk-v2.1-x86-enu.msi'
    Result of checks for command 'SynSDK\syncsdk-v2.1-x86-enu.msi' is 'Install'
    'SyncSDK' RunCheck result: Install Needed
    Verifying file integrity of C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\SynSDK\syncsdk-v2.1-x86-enu.msi
    WinVerifyTrust returned 0
    File trusted
    Installing using command 'C:\Windows\SysWOW64\msiexec.exe' and parameters ' -I "C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\SynSDK\syncsdk-v2.1-x86-enu.msi" -q '
    Will attempt to elevate process.
    Process exited with code 0
    Running checks for package 'SyncSDK', phase AfterPackage
    The following properties have been set for package 'SyncSDK':
    Running checks for command 'SynSDK\syncsdk-v2.1-x86-enu.msi'
    Result of checks for command 'SynSDK\syncsdk-v2.1-x86-enu.msi' is 'Install'
    'SyncSDK' RunCheck result: Unknown
    Running checks for package 'SQL Server 2008 Express', phase BeforePackage
    Running external check with command 'C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\SqlExpress2008\SqlExpressChk.exe' and parameters '10.0.1600 1033'
    Process exited with code 1
    Setting value '1 {int}' for property 'SQLExpressChk'
    The following properties have been set for package 'SQL Server 2008 Express':
    Property: [SQLExpressChk] = 1 {int}
    Running checks for command 'SqlExpress2008\SQLEXPR_x64_ENU.EXE'
    Result of running operator 'ValueNotEqualTo' on property 'ProcessorArchitecture' and value 'amd64': false
    Result of running operator 'ValueNotEqualTo' on property 'SQLExpressChk' and value '1': false
    Result of checks for command 'SqlExpress2008\SQLEXPR_x64_ENU.EXE' is 'Install'
    'SQL Server 2008 Express' RunCheck result: Install Needed
    Verifying file integrity of C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\SqlExpress2008\SQLEXPR_x64_ENU.EXE
    WinVerifyTrust returned 0
    File trusted
    Installing using command 'C:\Users\Roy\AppData\Local\Temp\VSDE1F7.tmp\SqlExpress2008\SQLEXPR_x64_ENU.EXE' and parameters '/q /hideconsole /action=Install /features=SQL /instancename=SQLEXPRESS /enableranu=1 /sqlsvcaccount="NT Authority\Network
    Service" /AddCurrentUserAsSqlAdmin /skiprules=RebootRequiredCheck'
    Process exited with code -2068643839
    Status of package 'SyncSDK' after install is 'InstallUnknown'
    Status of package 'SQL Server 2008 Express' after install is 'InstallFailed'

    The SP3 patch installed ok.
    When I ran my software installer, it failed again w/ the error 1001.
    Here is the summary.txt.
    Overall summary:
      Final result:                  Passed
      Exit code (Decimal):           0
      Exit message:                  Passed
      Start time:                    2015-01-20 19:26:40
      End time:                      2015-01-20 19:37:08
      Requested action:              Patch
    Instance MSSQLSERVER overall summary:
      Final result:                  Passed
      Exit code (Decimal):           0
      Exit message:                  Passed
      Start time:                    2015-01-20 19:31:48
      End time:                      2015-01-20 19:34:52
      Requested action:              Patch
    Instance MBA overall summary:
      Final result:                  Passed
      Exit code (Decimal):           0
      Exit message:                  Passed
      Start time:                    2015-01-20 19:34:57
      End time:                      2015-01-20 19:36:17
      Requested action:              Patch
    Instance MBANEW overall summary:
      Final result:                  Passed
      Exit code (Decimal):           0
      Exit message:                  Passed
      Start time:                    2015-01-20 19:36:21
      End time:                      2015-01-20 19:37:01
      Requested action:              Patch
    Machine Properties:
      Machine name:                  JOHN
      Machine processor count:       4
      OS version:                    Windows Vista
      OS service pack:              
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                   
    Feature                                  Language            
    Edition              Version         Clustered
      Sql Server 2008      SQLEXPRESS           MSSQL10.SQLEXPRESS             Database Engine Services                
    1033                 Express Edition      10.1.2531.0     No       
      Sql Server 2008      SQLEXPRESS           MSSQL10.SQLEXPRESS             SQL Server Replication                  
    1033                 Express Edition      10.1.2531.0     No       
      Sql Server 2008      MSSQLSERVER          MSSQL10.MSSQLSERVER            Database Engine Services                
    1033                 Express Edition      10.3.5500.0     No       
      Sql Server 2008      MBA                  MSSQL10.MBA                   
    Database Engine Services                 1033                 Express Edition     
    10.3.5500.0     No       
      Sql Server 2008      MBANEW               MSSQL10.MBANEW                 Database
    Engine Services                 1033                 Express Edition     
    10.3.5500.0     No       
    Package properties:
      Description:                   SQL Server Database Services 2008
      SQLProductFamilyCode:          {628F8F38-600E-493D-9946-F4178F20A8A9}
      ProductName:                   SQL2008
      Type:                          RTM
      Version:                       10
      SPLevel:                       3
      KBArticle:                     KB2977321
      KBArticleHyperlink:          
      PatchType:                     GDR
      AssociatedHotfixBuild:         5869
      Platform:                      x64
      PatchLevel:                    10.3.5520.0
      ProductVersion:                10.3.5500.00
      GDRReservedRange:              10.0.1000.0:10.0.1099.0;10.0.3000.0:10.0.3099.0;10.0.4010.0:10.0.4250.0;10.0.5501.0:10.0.5750.0
      PackageName:                   SQLServer2008-KB2977321-x64.exe
      Installation location:         c:\adcd5df38e670a98a9f2aafcc70e\x64\setup\
    Updated product edition:
      Instance             Edition            
      MSSQLSERVER          EXPRESS            
      MBA                  EXPRESS            
      MBANEW               EXPRESS            
    User Input Settings:
      ACTION:                        Patch
      ALLINSTANCES:                  False
      CLUSTERPASSIVE:                False
      CONFIGURATIONFILE:            
      HELP:                          False
      INDICATEPROGRESS:              False
      INSTANCENAME:                  <empty>
      QUIET:                         False
      QUIETSIMPLE:                   False
      X86:                           False
    Rules with failures:
    Global rules:
    There are no scenario-specific rules.
    Rules report file:               C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20150120_192631\SystemConfigurationCheck_Report.htm

  • How to export data with column headers in sql server 2008 with bcp command?

    Hi all,
    I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
    am trying to import data with bcp command data has been copied but column names are not came.
    I am using the below query:-
    EXEC master..xp_cmdshell
    'BCP "SELECT  * FROM   [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
    Thanks,
    SAAD.

    Hi All,
    I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
    DECLARE @BCPCMD
    nvarchar(4000)
    DECLARE @BCPCMD1
    nvarchar(4000)
    DECLARE @BCPCMD2
    nvarchar(4000)
    DECLARE @SQLEXPRESS
    varchar(50)
    DECLARE @filepath
    nvarchar(150),@SQLServer
    varchar(50)
    SET @filepath
    = N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
    as varchar(4))
    +RIGHT('00'+CAST(MONTH(GETDATE())
    as varchar(2)),2)
    +RIGHT('00'+CAST(DAY(GETDATE())
    as varchar(2)),2)+'.log" '
    Set @SQLServer
    =(SELECT
    @@SERVERNAME)
    SELECT @BCPCMD1
    = '''BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT '
    SELECT @BCPCMD2
    = '-c -t , -T -S '
    + @SQLServer + 
    SET @BCPCMD
    = @BCPCMD1+ @filepath 
    + @BCPCMD2
    Print @BCPCMD
    -- Print out below
    'BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
    EXEC
    master..xp_cmdshell
    @BCPCMD
      ''BCP' is not recognized as an internal or external command,
    operable program or batch file.
    NULL
    if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
    EXEC
    master..xp_cmdshell
    'BCP "SELECT  * FROM  
    [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
    Thanks, SAAD.

Maybe you are looking for

  • ITunes 7.3 won't recognize some mp3 files

    I'm using iTunes 7.3 on a dual-G5 with Mac OS X 10.4.10. After upgrading, I noticed that some tracks were missing from my iTunes Library, even though they are in the iTunes Music folder. When I tried to reimport these files (by dragging them from the

  • Addl Account assignment in Sales order

    We are in Make-to_order Scenario. Following is an item which as generated from a SD invoice: marketing and management Free : 1300 In the additional account assignment data, sales order = 1500989 Cost centre & Internal order fields are blank. Can I as

  • Receiver mail adapter - Payload as a Text attachment

    Hi, In my proxy to mail adapter scenario, when i want to send payload to email as a Text email, where i need to content conversion in XI (XML to Txt file) when i send payload, currently i am receiving as a XML file. I try to follow like Rushikesh Des

  • Updating to ios 7.1.1 my vibrate has failed

    updating the latest software has caused my vibrate to fail any answers please?

  • VBAP FIELD

    hi, i want to know the field in the table VBAP which do give the quantity of the material sold. thanks in advance.