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 Chriss Miller 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: MarkButler
  • Content: Threads
  • Order by date
  1. MarkButler

    Retrieving stored procedures name..

    I wish to create a log when scheduled procedures are run to capture some counts and totals. I want to insert a record into a log file each time the procedure is run. I wish to store the name of the stored procedure to this log file. What I am looking for is a way to determine from within the...
  2. MarkButler

    Trouble accessing file from job.

    I have a SQL job which the first step executes a 'extract.bat' script. Within this script is a copy from another physical server as follows: copy \\serverb\temp\xxx.txt e:\xxx.txt It seems that it never finds the file to copy. I placed an "if exist echo nofile" in front of the copy and it...
  3. MarkButler

    BCP help needed.

    I have a database with a table within it that I want to extract into a text file. On my laptop I have the database defined and have no problem with the following command. The difference is that on my laptop the database name is test and on the actual server it is a numeric name. I beleive...
  4. MarkButler

    Field type VARCHAR vs TEXT

    Is there a performance or other advantage to using VARCHAR over the TEXT field definition? I am converting from a FoxPro database which has a MEMO type field. It would be easy to say for any MEMO field in FoxPro to just define it as TEXT to SQL. In most cases the maximum characters used in...
  5. MarkButler

    Missing files or not registered.

    I have a laptop which has Windows XP pro installed. I had SQL 2000 personal and Crystal Reports 7 applications installed. I was no longer using Crystal on the laptop and wanted to remove it. I did an uninstall and the uninstall had some problems but I did respond to leave the shared files...
  6. MarkButler

    Insert statement raising 8626 error.

    Why does the following insert statement produce the error that follows the code. INSERT INTO diary ( di_user, di_type, di_task_dt, di_subject, di_rem_fl, di_sta_cd, di_sta_dt, di_notes, di_dest_pk, di_dest_fm ) SELECT froi.fr_efroi, 'A'...
  7. MarkButler

    Second instance

    Why would you install a second instance of SQL server? What is the major advantage of doing so? TIA
  8. MarkButler

    Collation conflict resolution

    I have a stored procedure which is failing on the following statement/error. DELETE FROM provider WHERE EXISTS (SELECT * FROM t8_work WHERE t8_provid = pvb_provid) -------------- Server: Msg 446, Level 16, State 9, Line 54 Cannot resolve collation conflict for equal to operation. Over the...
  9. MarkButler

    Stored procedures that are case sensitive...

    I have a number of stored procedures that work in my development environment and at many clients without any problem. I am trying to install the same procedures on a new server and it is requiring that I capitalize the table names in the SELECT/UPDATE/INSERT statements. All servers are running...
  10. MarkButler

    How to check for existance of a text file.

    I want to check for the existance of a text file, the file name being passed to a stored procedure. If the file exists inport it and archive it, if not do an early exit. Do I just need to act on it as though it exists and catch the error or is there a cleaner way? Thanx Mark
  11. MarkButler

    Bulk insert parameter specification

    I am having a problem supplying a file name to a bulk insert command. In the following I am trying to build the file name using a directory which may change between servers and the fixed file name. DECLARE @updates_dir varchar (500), @provlist varchar(500) SET @updates_dir = 'd:\updates\' SET...
  12. MarkButler

    TextBox Time Control.

    I have seen a number of DateTime controls referenced in this forum and was wondering if someone had a Time only control. I am about to embark on making one if someone does not have one or can steer me to a place with one. What I am looking for is a control that will maintain a military time...
  13. MarkButler

    Suggested methodology for SP update

    I have read a number of times in this forum about the use and expense of using a cursor in a stored procedure. With that in mind I was wondering how one might best accomplish the following without using a cursor. Select all records from a table which have a status of open. If open and the due...
  14. MarkButler

    XML to text file question...

    I need to do what seemed like a very simple thing. Run a SQL query, producing XML output and saving that output to a text file which will be input to an EDI package. After looking around the best I have come up with thus far is the "sp_makewebtask" method as follows: sp_makewebtask...
  15. MarkButler

    Communicating Between remote Servers...

    I have a local production server, and a web server at a remote ISP connected via a VPN. Both servers are running MS SQL 2000. I wish to do an extract of data on the production server and update it to the web server daily. The web server only gets a subset of the information on the production...
  16. MarkButler

    VFP Updating Remote SQL very slow...

    I have a process which weekly inserts a number of records into a SQL 2000 database. The file is provided to me as a text file with 200K records in it. I create a cursor from the updated text file and then in a scan loop I use a scatter, check to see if the record exists and either do a...
  17. MarkButler

    Candidate key problem

    I have a problem where I insert a number of records into a table using an updateable view. Once I issue the tableupdate(.t.) I get an error stating that I have a non-unique candidate key. Following is the basic code. --------------------------- <code>SELECT 0 USE parameterizedview...
  18. MarkButler

    BULK INSERT/BCP Problem

    I get multiple files daily that are in a flat file format with fields delimited with a @ and each record delimited with a CRLF. The first field is a file type identifier, the second field is a record type identifier. The first record in the file is a header record that contains the creator...
  19. MarkButler

    Backing out an update question

    I have a remote view using MS SQL 2000 database and table. I use a framework and had a problem I was trying to solve regarding updates that did not back out correctly when an error was encountered. I wrote the following small program to test the transaction and subsequent backout when a failure...
  20. MarkButler

    2542 Connection xxx is busy

    I have an application which has been running in production for about a year. The user has just uncovered a situation which causes the application to bomb with error "1541 - Connection XXX is Busy". What does this mean and is there a connection parameter or ODBC parameter which may...

Part and Inventory Search

Back
Top