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

    DTS Schedule Parameters month range

    Hi All, I have a simple DTS Package which executes a stored procedure and exports the result to an Excel file. In the stored procedure I use two dates like: Select * from Table1 where ScanDate betweeen @StartDate and @EndDate. Now I want to schedule the DTS Package so that it runs once every...
  2. Shal2

    Combine two select in stored procedure for report

    Hi All, This is related to one of my previous posts but different issue. This stored procedure has two select statement which returns two different sets of data, (one may return 200 rows, the other may return 400), but I want to have both on a single report for comparision. I have tried union...
  3. Shal2

    Group by days of week

    I have a stored procedure. It takes two parameters @StartDate and @EndDate. When any date range is entered, @startdate always selects the closest monday and @enddate always selects the closest sunday(some one helped me out). It works fine as I did this for weekly results. Now they want to enter...
  4. Shal2

    Dates rounding to nearest monday

    Hi All, If I have two dates in a stored procedure, like @StartDate and @EndDate, if the user puts in any dates for these two parameters, how can I round it to the nearest monday. Let's say user inputs: @StartDate = '06/04/2004' and @EndDate = '06/12/2004' I want @StartDate ='06/07/2004' and...
  5. Shal2

    Temp variable table data type update

    Hi All, How do I update a temp variable of table data type in SQL stored procedure. What is the syntax for that. Thank you, Shal
  6. Shal2

    Ideas for duty drawback query

    Hi All, I am trying to create a report, for which I need suggestions to write the query. I have a table1 which is shown below. Below that are month1 and month2 which are the reports I want to create, I have left the last column empty, which should be filled. If you see the table1, for the...
  7. Shal2

    Text field in select- aggregate-group by

    Hi all, I have a select statement with a text field along with other fields with aggregate functions. If I use the text field in my group by I get the following: "The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator" If I don't use...
  8. Shal2

    Self join and date difference

    This is related to the query that I had posted earlier. The table is like: -------------------------------------- TYPE DOCUMENTNUM TRANDATE ---------------------------------------- TFO 06305 2004-03-01 TFI 07231 2004-02-12 TFO 07231 2004-02-10 TFI...
  9. Shal2

    Query date difference

    Hi all, I have a table which has rows like below: ----------------------------------- Documentnum TYPE TRANDATE ------------------------------------ 907837 TFI 2004-02-25 907837 TFO 2004-02-23 907688 TFI 2004-02-24 907688 TFO 2004-02-20...
  10. Shal2

    DTS SQL query to text file

    Hi all, I have created a package using export wizard, which exports data to a text file by executing an SQL query. It works fine when I execute it. Now in the query I added an input parameter, this also works fine when I put a default value to the input parameter(global variables). Now I want...
  11. Shal2

    DTS Export text file on server

    Hello everyone, I used the wizard to export data from a table to a text file. I have given the path for text file as C:\testwrite.txt It works fine, but the file is created on my local machine, how do I specify the path so that it is saved on the database server? Thank you, Shal
  12. Shal2

    stored procedure email attachments CDONTS

    Hi all, I am using the stored procedure below to send emails. It was posted by Colin Leversuch-Roberts on the web. It works very well, I get the emails, but without the attachment. Is it because of the file path I have given which is on my local machine? Should the file be on the database...
  13. Shal2

    SetCookie - Client and Server

    Hello, > > The cookie from the file below seems to work fine if all of our code > files are on a one machine. But if it is moved to the server and the > webpage is accessed from a client machine, the cookie is not being > set. > > Below is the code, could anyone please give some more...
  14. Shal2

    Reading cookies or session

    Hi All, I have an application which writes (php script) the cookies to the client browser. I would like to access this using visual basic code from another application. Could any one let me know how to do this. Or is there any other way to do this,like if I have session variables how could I...
  15. Shal2

    SQL Query - values not equal for the same column

    Hi all, I have a table which has 3 columns with values like shown below: Style Region Price 1 NZ 10 1 AUS 10 2 NZ 20 2 AUS 20 3 NZ 30 3 AUS 30 4 NZ 40 4 AUS 50 Now, is it possible to just display the last two rows using...
  16. Shal2

    writing to a text file -FSO- formatting problem

    Hello, I am using ASP to run a SQL Server Stored procedure and then write the output to a text file using FSO. It is working fine. But I am having difficulty formatting the result in the text file. I want the output to be "Unicode text format, tab delimited". Could anyone help me...
  17. Shal2

    UPDATE statement

    Hello everybody, I have two tables, table1 and table2. Both have "barcode" column as primary key. Both have also got a column called "Weight" I want to update "table1", column "Weight" with values from "table2", column "Weight" where...
  18. Shal2

    Open new form and display all records

    Hi, I have two forms.Contacts and Events. I am opening Events form from Contacts form and the form link criteria is Contactid.So right now I am able to open the Events form form contacts and see the one particular record.But I want to be able to see all the records in the Events form, not just...
  19. Shal2

    Check box data entry

    Hello, I have a data entry form with data type check box.Let's say if I have about 500 records in the table and if I want to check a certain checkbox for all those records at once(which is empty at the moment), what is the best approach, appreciate help, thank you, Shalini

Part and Inventory Search

Back
Top