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 wOOdy-Soft 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: *

  • Users: Zukkster
  • Content: Threads
  • Order by date
  1. Zukkster

    Distributing Excel Macros and Forms

    What is the best way to distibute an Excel (2003) macro and a form that's associated with it? Version control, as it's own workbook What are the pitfalls and things to look out for? Are there any specific things I need to do with my code? I appreciate this may be a large topic, so links to...
  2. Zukkster

    Grant and Revoke excute permission on xp_cmdshell from a SP

    One of my stored procedures uses the xp_cmdshell to export data usig the following code SET @cmdline = 'bcp reporter..' + @SummaryTableName + ' OUT "\\cmcukfs01\Userdata\Reporter\AccessApplication\Import Data\SummaryFile_' + @UserID + '.txt" -T -t "," -c' EXEC master..xp_cmdshell @cmdline...
  3. Zukkster

    Monitoring whether a query is still working or it's killed the server

    I set off a query to update a table with a 40 million rows by referencing an equally big table. It's been running for a long time - over the weekend. I know if I stop the query it will take as long to undo as it took to run. The transaction log hasn't grown too big and when I look at the task...
  4. Zukkster

    Stopping a transaction rollback

    I stupidly ran a big update query on a table over the weekend and when I got in on Monday it was still running and all the space had been used because it had created a huge transaction log and the tempdb was massive. Even more stupidly I stopped the query thinking that it wasn't working due to...
  5. Zukkster

    Broken Table

    I have a table that has just stopped working. When I try to run a query on it, it just runs and runs. I can't drop the table, I can't delete the data. When I go to the task pad view it says the table is zero rows but is 33,408 KB What could be wrong?
  6. Zukkster

    Using VB AxtiveX controls (.ocx and .dll files) in VBA

    I'm trying to FTP data from and Access database using the iNet control. This uses the Microsoft Internet Transfer Control (msinet.ocx). This is a VB control and not an Access control. I have VB on my PC, so I can reference it fine and it works. The trouble is when someone who doesn't have VB6...
  7. Zukkster

    Referencing ActiveX controls

    I want to use the msinet.ocx contol within my access app. It isn't currently available to any of the users who will be using the app (i.e. it isn't in their c:\windows\system32 directory) I found some code on the internet (see below) that copies the msinet.ocx file from a network location to...
  8. Zukkster

    Using Command Shell to FTP files

    I've read that you can use the command shell ftp functionality to FTP files to a site I've hunted around a bit on the internet, but so far haven't managed to find the VBA code syntax that I would need to run this. Also, I'm wanting to FTP many files and from what I can make out I need to make...
  9. Zukkster

    Creating a banding Function using a CASE statement

    In Access I create banding functions, that when you pass them a numerical value they return a string that can be used to band ranges of values. For example; Public Function CouponSelection(Spend As Double) As String Select Case Spend Case Is > 70 CouponSelection = "Over...
  10. Zukkster

    Problem with List box parameter when closing a form

    I've included a list box in my form that has a SQL statement as the Row source. The SQL statement references a text box on the form. the SQL statement is; SELECT DISTINCTROW tblCouponDetail.PrintingMCLU, tblCouponDetail.Description, tblCouponDetail.Segment, tblCouponDetail.CouponType FROM...
  11. Zukkster

    Setting up a Proxy account

    I want users to be able to run DTS packages to export data from the database. I know that I need to set up a Proxy account and give the proxy account execute rights for the XP_cmdshell stored procedure, to allow non-members of the sysadmin role can run the following SQL statement to execute the...
  12. Zukkster

    Creating and Dropping Temorary Tables

    I'm trying to create a user specific table. The table is used in a process to hold data before carrying out further calcualtions. Because multiple users might be running the process the table needs to be user specific. I started off with a stored procedure that created a permanent table, but...
  13. Zukkster

    Using Proxy account to run DTS with the xp_cmdshell

    I'm trying to set up a task on an Access database that runs a Data Transformation package using a pass through query. It works OK on my account using exec master.dbo.xp_cmdshell 'DTSRun /S CMCUKSQL2000 /N REPORTER: Update DIST_CSW /E' but I'm a member of sysadmin. I want other users to be...
  14. Zukkster

    Running DTS package using xp_cmdshell and Proxy Account

    I'm trying to set up a task on an Access database that runs a Data Transformation package using a pass through query. It works OK on my account using exec master.dbo.xp_cmdshell 'DTSRun /S CMCUKSQL2000 /N REPORTER: Update DIST_CSW /E' but I'm a member of sysadmin. I want other users to be...
  15. Zukkster

    Multiple Users & Stored Procedures

    I want to run a stored procedure that has a number of steps 1) Runs and Insert query that inserts the data into an empty table 2) Execute a Data Transformation package that exports the data from the table to a text file 3) Repeats step 1 and 2 for two further different queries on seperate...
  16. Zukkster

    Excel range of cells: setting the range as a variable

    I want to create a vlookup calculation in a cell using code. The problem is that the range used in the vlookup calculation can change. Therefore I need to select a range of cells and then use this range in a variable to be inserted into the line of code that contains the calcualtion. I know...
  17. Zukkster

    SQL Loops - Calculating number of days between records in table

    I have a table that has records in it for customers and the days they shopped. The fields are Customer DayShopped Spend I want to sort the table by customer, then by date and loop through the data adding a field that is the number of days between shopping trips for each customer. Obviously for...
  18. Zukkster

    Populating a list box from a SQL server table

    I'm having trouble populating a list box from a SQL server datasource. I can link the table to my access database and set it to be the RowSource of the list box, but when I do this it takes a little too long to refresh the data. If I populate the table using code, will it be quicker? If so can...
  19. Zukkster

    Populating controls from SQL Server data - Bind controls or VB code ?

    I'm trying to move the back end of an Access database that I set up over to SQL server, but keep the front end in Access. On one of the forms I've got a list box that is populated by a table. In Access I had it as a bound control. When I copy the table to SQL Server, link the table and then...
  20. Zukkster

    Using "If exsists" statement to drop a table with a variable name

    I'm creating a user specific table in my database. The table name will have the format [dbo].[tablename_user1] So the table will have variable names. I'm trying to adapt the drop table statement (below) so that it will handle this variable table name. if exists (select * from sysobjects...

Part and Inventory Search

Back
Top