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 gkittelson 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. vipinkrshamra

    How to pass multipe value to SP from Crystal

    Hi Dave, Thx for input. Yes I am usign dynamic parameters. If you dont mind could you share your workaround. I am using Crystal Enpterprise to publish the report for users and dont have any .Net/VB application at present to display report. I know how to pass parameters from application and also...
  2. vipinkrshamra

    How to pass multipe value to SP from Crystal

    Hi!!, I have SP as follows ************SP**************** CREATE proc dbo.Test ( @Emp as varchar(8000) ) as Select EmpId,Emp from tblEmp Where Emp in ( Select * from SplitString(@Emp,':::')) ************SP**************** I can execute above SP as follows from...
  3. vipinkrshamra

    Reading line from txt with special charater problem

    thx a lot earthandfire .. that will do :-)
  4. vipinkrshamra

    Reading line from txt with special charater problem

    thx a lot earthandfire and keeping this thread alive. I can use any of these methods. One last question in your opinion, which would be faster and efficient way of tackling this problem and what could be possible pros and cons of each technique
  5. vipinkrshamra

    Reading line from txt with special charater problem

    Yes I also had this solution in my mind but since my txt file could be 10 mb or some time even bigger. This solution could have memory issue and also may be little slower. I was expecting while opening file-using StreamReader there must be way to ignore special characters like ASCII(10). As I...
  6. vipinkrshamra

    Reading line from txt with special charater problem

    Ok the character which is causing problem is ASCII(10). Now is there any stream to open txt file to ignore ASCII(10) character. I guess it should be possible since NOTEPAD and many other text editor like Edit Plus are able to ignore this character and are displaying complete line as single...
  7. vipinkrshamra

    Reading line from txt with special charater problem

    thx Earhandfire, I have two concern with your suggestion #1 How will I differentiate between that special character and actual line feed. As I mention there are 1000s of line in txt file, only one or two line may have that special character and I need to maintain original line sequence as I...
  8. vipinkrshamra

    Reading line from txt with special charater problem

    Thx a lot Chiph for help. I do understand what you are saying but kind of stuck to fins the solution. As I mentioned I need to process each line separately and this line feed character is creating extra line with Readline. Since notepad is able to ignore these characters and could show that...
  9. vipinkrshamra

    Reading line from txt with special charater problem

    Hi!, I am trying to read txt file from .Net app using following code. *****code**** Dim myReader As New System.IO.StreamReader(FileName, System.Text.Encoding.Default) While myReader.Peek <> -1 mystring = myReader.ReadLine End While *****code**** This txt file is created by some 3rd party...
  10. vipinkrshamra

    Violation of UNIQUE KEY

    I would like to clear one thing that I get error only for few records. For example if I isnert 300 records in database, I may get error for let say 10/12 records. And I am very sure data whcih is breaking the Unique constraint is not there in database.
  11. vipinkrshamra

    Violation of UNIQUE KEY

    Let me give you more information about my problem. I am parsing some txt files with 1000's of line into database. If the file from which I am getting error is inserting in blank table then I dont get error but if the file is processed into table with existing data then I get this exception. I...
  12. vipinkrshamra

    Violation of UNIQUE KEY

    Is it possible that actuall error is different but during scanning the errorrows I am getting wrong error message Here is function I am uisng to scan through rows having error *********Function Start******** Private Sub HandleSQlError(ByVal ErrorTable As DataTable) 'Dim myTable As...
  13. vipinkrshamra

    Violation of UNIQUE KEY

    Yes. I am sure about it. There are no duplicate recrods either my Datatable or database table.
  14. vipinkrshamra

    Violation of UNIQUE KEY

    I am using adapter.update method to insert a datatable. One of the field in database table to which datatable ois referring is UNIQUE key. here is complete error message : Error : Violation of UNIQUE KEY constraint 'IX_tblJunk'. Cannot insert duplicate key in object 'tblJunk'. The statement has...
  15. vipinkrshamra

    How to use transaction

    Thanks a lot jebenson for pointing out my mistake. That was the problem. I appreciate your time as well as of SMURF75.
  16. vipinkrshamra

    How to use transaction

    Thanks a lot for helping me on this issue. In my code "bldr1" is object of "SqlCommandBuilder". I could not find "Transaction " property for "SqlCommandBuilder". I may be missing something. Please advice.
  17. vipinkrshamra

    How to use transaction

    I have wasted lots of time to troubleshoot this problem but with no result. I would appreciate if anyone could help me on this.
  18. vipinkrshamra

    How to use transaction

    Hi , I am trying to use use dataadapter.update with in trascantion. But it is failing with following exception. "System.InvalidOperationException: Execute requires the command to have a transaction object when the connection assigned to the command is in a pending local transaction. The...

Part and Inventory Search

Back
Top