Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jabrony76

    URGENT - running robocopy from EM job!

    Does account that your SQL Server Agent is set up with does not have full access to either reach the folder or execute the command.?.?.?
  2. jabrony76

    URGENT - running robocopy from EM job!

    Are you using the absolute path (\\server\folder\file.txt)of the file rather than a mapped drive location? That can throw it off if the mapped drive does not exist on the server. Also, like Denny says - make sure the SQL server admin account has rights to the path/file in question. If not...
  3. jabrony76

    executing multiple bcp commands

    How are you executing them? If you are executing them via T-SQL via xp_cmdshell, you would just run them in the same statement: declare @sql varchar(1000) --set first bcp set @sql = 'bcp "SELECT * FROM Table" queryout "\\server\folder\filename.txt" -c -q -S"ServerName" -T' exec...
  4. jabrony76

    Row-level history of changes

    I don't know of a tool within SQL Server but you could use Triggers to store a change history to a logging table.
  5. jabrony76

    First Project Using XML

    Thousands of good ideas for xml... One off the top of my head that I did was to create a web based application that reads an xml file to show active processes. Export the sysprocesses table to xml and then have the web app read the xml. Not sure if this is what you were looking for.
  6. jabrony76

    Update using inner joins and there tables

    I believe this is how you would join your tables: UPDATE [TBL-1] SET [TBL-1].txtN = [TBL-2].txtN FROM [TBL-1] INNER JOIN [TBL-3] ON [TBL-1].txtACT = [TBL-3].txtACT INNER JOIN [TBL-2] ON [TBL-2].txtID = [TBL-3].txtID WHERE tblRelationships.txtRelationship = 'P' But if...
  7. jabrony76

    xp_sendmail @message

    Use Carriage Returns (Char(13)) Declare @Msg varchar(100) Set @Msg = 'Line 1' + Char(10) + 'Line 2' exec xp_sendmail 'joeblow@biteme.com', @message = @Msg
  8. jabrony76

    Locking table for BCP Out

    Thanks Denny, have a star. Andy
  9. jabrony76

    Locking table for BCP Out

    Hi All - I've got a job that bcp's a table out at night but the table is quite large (4.2 million rows) and the bcp takes around 15 minutes. I want to make sure that there are no INSERT / UPDATE / DELETE statements executed on the table during the bcp out and it seems the -h"TABLOCK" switch...
  10. jabrony76

    DTS Error - Server is not configured for DATA ACCESS

    Right-click on the properties of the linked server on the host server in Enterprise Manager -> Security -> Linked Servers. Go to the Server Options tab and check "Data Access" checkbox to allow Data Access. You might also want to enable RPC and RPC Out while you are there. See if that works.
  11. jabrony76

    logging dts steps and results

    You can turn on Package Logging, right click the dts window and go to properties and enable package logging but it doesn't contain this level of detail. Package logs will tell you what steps started, completed and their run-time, I belive. To do this, to the level of granularity you...
  12. jabrony76

    DTS Dynamic Properties question - Output to excel problem

    Not sure but you might want to create the file and then move and/or rename it using an activex script bringing in the global variable you caught in the dynamic properties task. Andy
  13. jabrony76

    Should I Convert from VBA to ActiveX

    Lonnie, Not sure if you want to use activex scripts to accomplish this but here is a good page that lists many examples of how to accomplish things in vbscript, the language that activex controls use: http://www.vba-programmer.com/#VBScriptBkmk If you are using access vba now to update...
  14. jabrony76

    File Open dialog box avialable in ActiveX/DTS

    I i'm not sure there is a way with the vb script in the activex controls. I would suggest using VS.NET (or your preferred development environment) and build a windows app if you need a browser dialogue control.
  15. jabrony76

    DTS Global Variable for Export to Excel

    JefB, Not sure why your particular package is failing but I can offer some advice on how i've gotten around this in the past. I would have the DTS export to a standard file name "Template.xls" and after the transform data task, I run an ActiveX script that renames the file to the name...
  16. jabrony76

    Insert Duplicate Records into Access

    Try: Declare @Counter int, @i int Set @Counter = --# of rows you want to insert Set @i = 0 While @Counter > @i BEGIN INSERT INTO TableCouponList ( TrackingNo, Name, ExpirationDate ) SELECT TrackingNo, Name, ExpirationDate FROM TableCoupons; Set @i = @i + 1 END
  17. jabrony76

    E-mail inside DTS

    are you sysadmin on the box? I believe you cannot run activex scripts in DTS if you are not in the sysadmin group. Also might want to try re-registering the cdosys.dll with regsvr32 in a cmd prompt.
  18. jabrony76

    View A Description of a DTS

    If you have used the Description field of the package to type a desription of the package, you can retreive that info from msdb.dbo.sysdtspackages. As for what each step does, I can't think of any way.
  19. jabrony76

    Alter SP across databases

    Just got back to this... and again, the SP is > 8000 chars. Any other thoughts? Thanks all. Andy
  20. jabrony76

    Alter SP across databases

    good idea, unfortunately have tried it already and the text is > 2000 chars... Any other thoughts? Thanks!

Part and Inventory Search

Back
Top