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 Wanet Telecoms Ltd 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: lawlerpat
  • Content: Threads
  • Order by date
  1. lawlerpat

    Testing for is Not Null in an Or statement

    I have a query (works just great in SQL Server 200) in which I need to test on one of two conditions which due to my schema are usually mutually exclusive of each other. Snipit: ...where (Field1 = 'aName' or Field2 is Not Null) The problem is for the most part when Field1='aName', Field2 is...
  2. lawlerpat

    xmlDom.LoadXML() method failes in ASP

    I have An ASP file in which I create two msxml2.domdocument objects. Populate one with an xml string, and the other with an xsl string. Then translate the xml using the xsl. Finally load the final translated xml into the xls object to write it to the hard drive. This seems to work in 3 out of...
  3. lawlerpat

    Clear cache for query optimizing

    IN SQL Server I am aware of two statements that drop the caching of a query plan. I am looking for the equivalent in Oracle to use when optimizing a query. The SQL Server statements are. dbcc dropcleanbuffers dbcc freeproccache
  4. lawlerpat

    Check to see if a procedure already exists

    Need to be able to check if a Stored procedure already exists. I am familiar with SQL Server code as in Begin If Exists (select name from sysObjects where name = 'procName' and type = 'P) Drop procedure 'procName' End Can I replicate that in concept Oracle. I don't plan to replace...
  5. lawlerpat

    Execution Plan did not like a #temp table

    In an attempt to compare two diff. SP methods I have created a T-sql batch to replicate the SP for the purposes of looking at the execution plan. One of my tests uses a simple temporary table but Quary Analyzer will not give me a plan instead I keep getting an error however I can run the query...
  6. lawlerpat

    How do I disable Query Analyzer caching of Query Plans.

    When tying to optimize some statements, I know that QA will cache the query plan and data buffers. However, this throws off the testing. I know there are some settings or statements that I can enable/disable these two built in features with. Thanks
  7. lawlerpat

    Dynamically union selects in a Stored Procedure

    This is difficult to put into words. I have a very long Stored Procedure (SP) for a collection of reports. The SP has 6 unioned selects in it and also has 6 optional parameters. By passing yes or no into each of those 6 parameters I can have the SP return data from only the unions that I want...
  8. lawlerpat

    I am looking for clean wat to parse street addresses

    I will have the full street address in a database field and need to break it into 3 pieces street # street name street type (comparing it against a pre defined list of types. street - st, road = rd and so on) Thanks
  9. lawlerpat

    XSL:for-each and sibling nodes

    Hello, Question: From within a xsl:for-each statement can I use an xsl:if statement to compare a node value from w/in the for-each branch to a node outside the for-each Example: <data> <app> <record/> </app> <tenant> <handle/> </tenant> <data> Can I have a for-each...
  10. lawlerpat

    Replacing XML entities or special characters

    I am looking for a way to replace the XML entities from varchar type data in a query. For example if my query returns 'Bob&Mary' I want that to be replaced with 'Bob&amp;Mary'. My problem is what if the db field already has the replacement in it. I don't want to replace the & that is part...
  11. lawlerpat

    Testing for Null dates in version 8 and 9

    Using the Record selection formula editor I am having difficulty illiminating NULL Dates. Per Seagates website ( http://support.crystaldecisions.com/library/kbase/articles/c2006588.asp ) They acknowledge this problem. However their solution will only work in either version 8 or version 9...
  12. lawlerpat

    Validating select options before and after selection

    I have an option object that I need to evaluate the selection of by comparing the original value that was loaded when the page was sent to the new value on changes. Once the onChange() event occurs, I have lost the original value in object.options[obj.selectedIndex].value Question: &quot;How...
  13. lawlerpat

    Locating an Index in system files

    What system table and field values do I need to search to determine whether an index of a known name exists on a specific table and whether the index was created as Unique or not. SP_Help is not what i am looking for. Using sql 2000 I need to be able to do this from VB code Thanks
  14. lawlerpat

    Locating an Index in system files

    What system table and field values do I need to search to determine whether an index of a known name exists on a specific table and whether the index was created as Unique or not. SP_Help is not what i am looking for. I need to be able to do this from VB code Thanks
  15. lawlerpat

    Keep cross tab from page breaking

    I have a cross tab that may only have 5-10 rows, lives in the report footer but but will not print on one page. If the last group footer finishes with some room left on a page, the cross tab is started on that page then continued on the next (whihc is the last) page. I have tried using the...
  16. lawlerpat

    Unable to communicate with the debugger

    When using the debugger I get the above error. There is good instructions in the MS SQL Server Help files on how to configure dcomcnfg.exe to allow permissions to this service. THe instructions worked on my Windows 2000 machine. I am unable to duplicate the fix on a Windows XP machine. Largely...
  17. lawlerpat

    Programming for both SQL2000 and SQL7

    I would like to create a stored procedure which utilizes some user defined functions if the DB version is 2000 if not don't look for the UDF. The following example displays what I would like to do, but does not work. It seems that SQL server will try to find the UDF even if it not actually...
  18. lawlerpat

    Using Insert Into with a Stored Procedure

    I would like to use the &quot;Select Into&quot; syntax to populate a temptable but instead of using a select statement in the select into I would like to use an execute proc_name statement Standard Example: I know the following works Select * into #myTable from some_real_table What I want to...
  19. lawlerpat

    Execute a Stored Procedure Record Set into a Table

    BACKGROUND: I have a number of stored procedures used to return very detailed and wide (many columns) recordsetS for reporting. I have found that I can execute this SP recordset into a table or temp table to then manipulate the data further using a syntax as follows: Insert into #temp_Charges...
  20. lawlerpat

    Text rotation of 45 degrees

    It appears as if the only options for text object rotation are 0, 90, and 270 (for version 8.0). I am wanting to put a bunch of column headings on a 45 degree slant. Has anyone figures out a way to do this? Thanks PL

Part and Inventory Search

Back
Top