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

  1. MatthewPeters

    Procomm Plus Meta Key + F4

    Well that was easy enough. Star for you gecko!
  2. MatthewPeters

    Procomm Plus Meta Key + F4

    This is more of a procomm plus question but hopefully someone will be able to help me out. I would like to send a command from a Procomm Plus Meta key that fires the F4 key or any of the function keys. I've figure out how to write an Aspect script that fires the Function keys and then...
  3. MatthewPeters

    View - Tables in more than one database?

    try something like . . . select field1, field2, field3 from DataBaseName.dbo.TableName that should work for you
  4. MatthewPeters

    sql - rename table and also delete table

    To rename: EXEC sp_rename 'customers', 'custs' to Delete: drop tableName
  5. MatthewPeters

    Replacement for IN

    WHERE (ID = @ID) AND (OrderID >=1 and OrderID <= 5)
  6. MatthewPeters

    ASP 0178 0x80070005 access denied permission when using custom vb dll

    I was having this exact same problem in just trying to create a word document and converting it to an HTML on our Intranet. After taking both approaches that it mentioned I was still getting the same error, so I took my approach to solving the problem.[thumbsup2] What I did was the following...
  7. MatthewPeters

    Crosstab query

    Here is a cross tab query example from BOL. This is the SELECT statement used to create the rotated results: SELECT Year, SUM(CASE Quarter WHEN 1 THEN Amount ELSE 0 END) AS Q1, SUM(CASE Quarter WHEN 2 THEN Amount ELSE 0 END) AS Q2, SUM(CASE Quarter WHEN 3 THEN Amount ELSE 0 END)...
  8. MatthewPeters

    Billing dates vs Billing intervals

    What about this one? SELECT Dateinterval, Label, Startdate, Enddate FROM Intervals where DATEPART(month, dateadd(m, -1, GETDATE())) = DATEPART(month, endDate) Matt
  9. MatthewPeters

    Billing dates vs Billing intervals

    Would something like this work? select Dateinterval, Label, Startdate, Enddate from Intervals where DATEPART(month, GETDATE()) = DATEPART(month, endDate) Matt
  10. MatthewPeters

    divide by zero, but divisor is not zero

    bartsimpson Looking up the following two commands in BOL may or may not be of interest to you. set arithignore set arithabort matt
  11. MatthewPeters

    Combine Key

    Not sure exactly what your after here. If you could provide your table structure (with sample data) and your expected outcome then I'm sure someone here can help you.
  12. MatthewPeters

    Nth Consecutive Day Select

    Would this work? select Employee, ItemDate, Start, Stop, WeekEnd, #Hours from yourTableName where itemDate = weekend matt
  13. MatthewPeters

    Tek-Tips down?

    Thanks for the reply. We've tried contacting Tek-Tips management for a couple of weeks now with no response. It's kind of weird because there's one guy here that has been logging into Tek-Tips for over a year and now he can't log in either. But, my account works fine. We'll shoot them...
  14. MatthewPeters

    Tek-Tips down?

    Hello all, I'm not sure if this is the right forum to be asking this but this questions is just on the maintenance side of tek-tips.com . I have some co-workers here that are trying to create a new user here on the site and they are having a problem with their registration. Not sure if the...
  15. MatthewPeters

    PK vs FK - Identity

    Your FK should be the same data type of the PK that it is related to. The identity property for your FK should be set to NO. The identity property is similiar to the Auto-Number functionality in Access. As new records are inserted the value of the identity field will be filled automatically.
  16. MatthewPeters

    inserting a txtbox number into a certain column in a grid

    Give this a shot. It will place the value in your textbox into the first column in your grid. with myGrid .col = 0 For x = 0 To .Rows .row = x .text = txtBox.Text Next end with If memory serves then this should do the same thing. . . For x = 0 To myGrid.Rows...
  17. MatthewPeters

    Drop Table

    try this drop table databaseName.dbo.tableName Matt
  18. MatthewPeters

    Top n from each group

    SqlSister, I have the following three simple indexes applied to the table . . . pcNum_ind cmNum_ind pcNum_cmNum_ind Would I need to defrag the indexes considering that I'm using a temp table? Thanks Matt
  19. MatthewPeters

    Top n from each group

    Well I found a solution that doesn't require a cursor. I found the answer on www.sqlTeam.com. The only problem is that this query is very slow. It's actually slower than using the cursor. I'm sure there's gotta be a way to speed this thing up but I've run out of time to mess with it. So, if...
  20. MatthewPeters

    Top n from each group

    Yes, Top 20 will need to be implemented in the solution but &quot;SELECT TOP 20 * FROM TABLE&quot; will only give me 20 rows. I need 20 rows from each group. Matt

Part and Inventory Search

Back
Top