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!

Search results for query: *

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

    Declaring a class for use throughout a code behind page

    Hi All, I'm trying to find a way to declare a class in a code behind page that will allow me to use it within different functions and procedures without having to declare it each time. Another question while I'm asking, when I declare the class, I pass it a userID which is stored as a session...
  2. johnrg1

    Advice on a large query

    Hi All, I am about to write a Stored Procedure and thought i would ask if anyone had any advice. The query is to take values from a default table, and add them to another "live" table. Every monday an "A" shift is to take place. - From the default table I want to take the that shift and make...
  3. johnrg1

    Set a GUID to null

    Hi All, I was wondering if anyone knows how, it at all, a guid can be removed from a table. Just the existing value, not the row. I have a table with a guid column that relates to another table and its value is a guid. I want to set the guid to nothing if it is deleted from the other table...
  4. johnrg1

    Select query form a table and List

    Hi All, I am trying to find a way to use a stored procedure to filter out the records i do not want rather than in my program. I have a list of shifts that are linked to a piece of equiptment, which has an equiptmentID. I have a table that links workerID's to what equiptment they can work...
  5. johnrg1

    Very Wierd March Date problem

    Hi All, I am have been looking into why a script of mine does not work, when I came across i very strange error. My server does not like the day 29th March 2004. Then when i dig a little deeper, it turns out it does not like the last Sunday of March in any year. Although I am able to format...
  6. johnrg1

    Very Strange Problem

    Hi All, I'm very new to PHP, I'm an ASP guy traditionally. I have come across a very strange problem when extracting data from a MySQL DB. It seems to "skip" bits of data. I have used the following code: echo "Serial Number: $row[SerialNo] echo "Repair Type: &quot...
  7. johnrg1

    Real Challange

    Hi all. I'm looking for the genius of all genius's! I have wrtitten an DLL in VB to access a MS Word installation on a server to use its thesaurus components. Why i hear you ask, well becuase the client insists it is needed! Well, i have it working on my test server, and i also have it...
  8. johnrg1

    Changing Database connections

    In ASP, an include file could be used to hold the the database connection string, meaning changing it in the one file would mean the entire site would connect differently. is there a way to do this in ASP.NET? At the moment i use VS.NET to create a connection, from which i drag the data onto...
  9. johnrg1

    Conversion proble, in SP

    Hi all, I am trying to create a SP that will insert some data into a table, where the table name is provided as a varialbe. ALTER PROCEDURE InsertStudentAttendance ( @Date datetime, @tableName varchar(15) ) as DECLARE @myStr varchar(500) declare @CDATE varchar(25) set @CDATE =...
  10. johnrg1

    Listbox text and values

    In the web listbox, there isa command to add an item with a seperate value, listbox1.item.add(new listitem(VALUE,"TEXT")) But I can not find anything like it in the windows form listbox. It is possible to do this through databinding, but i am not using a dataset, i want to add the...
  11. johnrg1

    Lottery Results

    Hi Guys, Some advice please, What do you think is the best way to find winners from a database? Jackpot is easy, but matching 3, 4, 5 and 5 + Bonus Ball had got me stumped. Its out of 49 balls. Is there an easy way to do it, or is it just gonna be a very long select statement? John.
  12. johnrg1

    inserting into a table from a CSV file

    Hi guys, I want to insert records into a table from a csv file. the file currently hold 700+ records, and there are 2 new records added each week, but they need to entered seperatly into the database on seperate days. I have seen the bulk insert and concidered deleting all the records and...
  13. johnrg1

    I am trying to insert a record into

    I am trying to insert a record into a table that was created on the fly. The table is created with errors, and when i check it, all the columns are of the correct data types. I am using the code ALTER PROCEDURE InsertStudenttoClass ( @tableName varchar(10), @StudentID int ) AS DECLARE @myStr...
  14. johnrg1

    Removing Spaces

    Hi, Is there a way to remove empty spaces held by the database? I am using an SQL statement: SELECT LecturerTitle + ' ' + LecturerInitial + ', ' + LecturerSurname As LecturerName to select a name out of a database. but the initial field is two characters long, do when it is extracted it...

Part and Inventory Search

Back
Top