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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by whatduh00

  1. whatduh00

    Help with SubQueries

    SQL is not like "exactly" like Access where you can base queries off of other queries. But what you can do is combine these three steps into one procedure. How I see it you have a couple choices. First, is to build all these as one big select with subqueries. Like a so... CREATE PROCEDURE...
  2. whatduh00

    variable

    I'm not exactly sure what you want to do with the variable @MessageBody but the code below will print out the results of the query. You'll basically have to load the query results into a cursor and add them to the variable. If you lets us know what your going to do with the variable @MessageBody...
  3. whatduh00

    Stored Procedures - Returning String Values

    Ok, try this out. In sp2's parameter declartions type this; create procedure sp2 @RETURN_VALUE varchar(50) output as /rest of procs code set @RETURN_VALUE = @test_codes Declare a variable in sp1 to hold the text and use the following line when calling sp2 to bring back the string...
  4. whatduh00

    Grouping help please

    try this one out select dbo.TravelerLot.LotID, dbo.TravelerLot.TravLotID, min(dbo.Process.ProcNum) from dbo.TravelerLot inner join dbo.Process on dbo.Process.ProcNum = dbo.TravelerLot.ProcId group by dbo.TravelerLot.LotID, dbo.TravelerLot.TravLotID
  5. whatduh00

    best way to import text file into relational database?

    How about just importing the raw data into a table in your database using dts first. Once the data is in this "temporary" table you can modify the procedure you have right now to look at the new table. This does add a step to the process but it may cut down on the amount of time overall since...

Part and Inventory Search

Back
Top