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 strongm 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: sqlsamurai
  • Order by date
  1. sqlsamurai

    String.Replace is case sensitive...

    You're right ca8msm I could but I want to preserve the case of the text. Thanks for the sugg though.
  2. sqlsamurai

    Need help creating RegEx expression...

    I'm sorry if i was unclear. I'm looking for an expression that will find the word INTO. Basically i would like the pattern to find the word INTO followed by a space then a pound sign (#) then a wildcard for the temp table name then another space. Thanks
  3. sqlsamurai

    String.Replace is case sensitive...

    Thanks jebenson! I just posted another question about regular expressions... think you could take a peak. ;-) [2thumbsup]
  4. sqlsamurai

    Need help creating RegEx expression...

    These are my examples: SELECT * INTO #TEMP FROM TABLE SELECT * INTO #TEMP FROM TABLE Could somebody please show me how to create a regex pattern that would find the bolded area in the texts above. The portion in italics, TEMP, can vary as that will be the name of the temp table. Thanks
  5. sqlsamurai

    String.Replace is case sensitive...

    Can I do a case insensitive replace using String.Replace? Is there a better way?
  6. sqlsamurai

    HowDoI Test and object for type...

    Thanks for all the suggestions guys. ;-) In the end this is what I used. If My.Settings("StartDate").GetType.Equals(GetType(Date)) Then End If
  7. sqlsamurai

    HowDoI Test and object for type...

    I want to test an object for type and I'm not sure how. Here is the object: My.Settings("StartDate") I want to test the value to see what type it is. Like this If My.Settings("StartDate").GetType = DateTime then ... End IF Could somebody help?
  8. sqlsamurai

    HowTo consolidate SQL statements...

    Yes it is... I guess I was making it more complicated that it was. ;-) Star for you.
  9. sqlsamurai

    HowTo consolidate SQL statements...

    How would I consolidate these three statements? The only difference is one of the fields in the WHERE statements. I'm using SQL Server 2005 if that makes any difference. SELECT Inventory.*, Products.IjoistTypeID FROM Products INNER JOIN Inventory ON Products.ProductID = Inventory.ProductID...
  10. sqlsamurai

    Throwing exceptions question...

    Here is an excerpt from a book called: "Visual Studio .NET Tips and Tricks" By Minh T. Nguyen Rethrowing the Same Exception Whenever an exception needs to be logged, developers tend to use code similar to the following to log an exception without eating it up: Try {...} catch (Exception...
  11. sqlsamurai

    Need help decifering a concept...

    Here's a response I got on another board just thought it might help somebody else: The reason you can butt the parenthasis together is because of the way the properties work. It is the same concept as that of chaining together a bunch of dots, like this: Me.TextBox1.Text The first dot tells...
  12. sqlsamurai

    Need help decifering a concept...

    Thanks guys. I just wasnt sure if there was a name for this concept.
  13. sqlsamurai

    Need help decifering a concept...

    Can someone help me decifer this line of code? I saw it somewhere and have used it a couple of times but I'm not sure what the concept is called or why it works. Me.cboDivisions.Properties.GetDataSourceRowByKeyValue(Me.cboDivisions.EditValue)("LocationID").ToString If this piece of code were...
  14. sqlsamurai

    Where can i find...

    I cant find "Generate Method Stub" in VB .Net 2005. Anybody know where it is? I was also bummed to learn that VB doesnt have all the refactoring features that C# does. :(
  15. sqlsamurai

    Explain code "System.Nullable(Of Integer)"...

    I was messing around with the datasources window, I drug a stored procedure from there onto a form and a lot of stuff created itself automatically. Here is my question. The Fill method on the TableAdapter looks like this: and the code created looks like this...
  16. sqlsamurai

    How to study VB.NET?

    vovan1415, my advice is and has always been to invest in some type of training rather than a book. .NET is immense and there is a lot to learn and it can be overwhelming. Check out the .NET training series from AppDev, its what I used and it brought me up to speed a lot quicker than a book...
  17. sqlsamurai

    Binding Datagrid to stored procedure...

    How do I bind a grid to a stored procedure in Visual Studio 2005? The twist is that I would like to setup the grid at design time. Column headings, sizes, any additional formatting that I would otherwise have to do in code. Do I somehow create a dataset to bind the grid to initially?
  18. sqlsamurai

    can I have ssome notes whicch will help me in learning VB.net?

    longolongo, my advice is and has always been to invest in some type of training rather than a book. .NET is immense and there is a lot to learn and it can be overwhelming. Check out the .NET training series from AppDev, its what I used and it brought me up to speed a lot quicker than a book...
  19. sqlsamurai

    SQLParameter Array...

    chrisse1, I'm using the Data Access Application Block and I'm able to just pass in the name of the stored procedure and a parameter array and it figures everything else out... I'm not creating my own command object... the DAAB is doing that for me.
  20. sqlsamurai

    SQLParameter Array...

    Consider this code... If a = True Then 'add sqlparameter to parameter array End If If b = True Then 'add sqlparameter to parameter array End If If c = True Then 'add sqlparameter to parameter array End If Each time this code runs the parameter array could change sizes... The first...

Part and Inventory Search

Back
Top