Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

taibc

@taibc
About
Posts
83
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error exporting crystal report to doc, xls file ?
    T taibc

    Hi everyone, I am getting a problem: I am using Crystal report XI R2 cliet, Visual Studio 2005, VB.NET. I can export report to .xls, .doc without errors on my computer (development machine). But, when run my application (exe file) on another computer (test enviroment): Some my reports can export to file doc, xls file without errors, some reports get error: "Error in file C:\...\Temp\... The request could not be submitted for background processing" (when exporting to .xls file) and another error: "Error detected by export DLL (when exporting to .doc file)" Are there anyone know this problem ? Thank you very much !

    Visual Basic csharp help visual-studio question

  • Error connecting Oracle on localhost: Could not get JDBC Connection ?
    T taibc

    Hi everyone, I am trying to connect Oracle database from my web application using Eclipse. But I got the error:org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; I used below code:

    public static void initDB(){
    try {
    BasicDataSource ds = new BasicDataSource();
    ds.setDriverClassName("oracle.jdbc.driver.OracleDriver");
    ds.setUrl("jdbc:oracle:thin:@localhost:1521:xe");
    ds.setUsername("mybank");
    ds.setPassword("123456");

    		jdbcTemplate  = new JdbcTemplate(ds); // throw exceptiong after this line
    		isConnected = true;
    		initSystemPros();
    	} catch (Exception e) {
    		System.err.println("Cannot connect to DataBase");
    		isConnected = false;
    	}
    }
    

    I tried to use SQL Developer to create a connection using above settings and successful. Do you know what is wrong ? Thanks and regards, Tai

    Java database question oracle help

  • Error: Can't delete row or update row in SQL Server ?
    T taibc

    Hi, I checked the log error file. For the select query, I got the below error: Error: 7886, Severity: 20, State: 1. 2014-07-14 11:27:01.50 spid52 A read operation on a large object failed while sending data to the client. A common cause for this is if the application is running in READ UNCOMMITTED isolation level. This connection will be terminated. For the delete statement, I got the message: Error: 824, Severity: 24, State: 2. 2014-07-14 13:34:10.12 spid51 SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0x4da7af2c; actual: 0xda5e9af7). It occurred during a read of page (1:40403) in database ID 6 at offset 0x00000013ba6000 in file 'D:\CLCData\23_01_2013\CLC_LIS_Data.mdf'. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online But, I don't know how to fix it.

    Database database help sql-server sysadmin performance

  • Error: Can't delete row or update row in SQL Server ?
    T taibc

    Hi everyone, I am creating a query to my database using SQL Server Management Studio There is a data error in my image field of my row. I still can select another fields, but when I select content of the image field I get below error: My query:

    select diagram from Mytable where id = 5

    Error 1: A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) When I tried to delete this row. I got another error (Error 2): SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0x4da7af2c; actual: 0xda5e9af7). It occurred during a read of page (1:40403) in database ID 6 at offset 0x00000013ba6000 in file 'D:\CLCData\23_01_2013\CLC_LIS_Data.mdf'. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online. When I select all data from the table, I got the error 1 at the above row position. So, now I can't update or delete this row. Do you know this problem and how to fix it ? Thank you very much, Tai

    Database database help sql-server sysadmin performance

  • How to merger data from two sql databases that have a same structure ?
    T taibc

    Hi everyone, I am writting an program in C#, that use SQL Server database. My program include a blank database (sample database) that allow users can create a new database. For example: - User 1 use my program to create a new database (DB1) on his computer, then he import/enter some data into DB1 - User 2 use my program to create a new database (DB2) on his computer, then he import/enter some data into DB2 Now, I have both two database (DB1, DB2). Do you know how to merge/combine two databases to have unique database that contain all users' data ? Can you help me ? Thank you very much, Tai

    C# database tutorial csharp sql-server sysadmin

  • How to export pdf data (byte[] format) from SQL database to PDF using C# ?
    T taibc

    Very useful. Thank you very much !

    C# database csharp tutorial question

  • How to export pdf data (byte[] format) from SQL database to PDF using C# ?
    T taibc

    Hi everyone, I saved a pdf file into my database in byte[] format. And now, I want to show it in PDF reader program when clicking a button. But I don't want to create the pdf file in my hard drives (because, if create it, I need to delete it). Do you know how to export my data to pdf ? Thanks and regards, Tai

    C# database csharp tutorial question

  • How to check a field/property is existing in Win32_DiskDrive ?
    T taibc

    Yes, do you know what is the property that I can get an unique value for computers that using win xp ? Thanks and regards, Tai

    C# tutorial database question

  • How to check a field/property is existing in Win32_DiskDrive ?
    T taibc

    Hi Simon_Whale, Do you know what are differences between the property "SerialNumber" in Win32_PhysicalMedia and Win32_DiskDrive ? Thanks and regards, Tai

    C# tutorial database question

  • How to check a field/property is existing in Win32_DiskDrive ?
    T taibc

    Thank you. Do you know what is difference between the property: SerialNumber of "Win32_PhysicalMedia" and SerialNumber of "Win32_DiskDrive" ? When I use Win32_DiskDrive, I can't get SerialNumber on Win XP Regards, Tai

    C# tutorial database question

  • How to check a field/property is existing in Win32_DiskDrive ?
    T taibc

    Thank you

    C# tutorial database question

  • How to check a field/property is existing in Win32_DiskDrive ?
    T taibc

    Hi everyone, I am using below codes to get information from HardDisk.

    ManagementObjectSearcher HardwareQuerySearcher = null;

    HardwareQuerySearcher = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive");

    foreach (ManagementObject hard in HardwareQuerySearcher.Get())
    {
    Hard hdd = new Hard();
    hdd.Model = hard["Model"].ToString();
    hdd.Type = hard["InterfaceType"].ToString();
    hdd.Type = hard["SerialNumber"].ToString();
    }

    Do you know how to list/or show all fields/properties that existing in this query ? For example: I am want to know wherether the field "SerialNumber" existing or not ? Thanks and regards, Tai

    C# tutorial database question

  • Error "Retrieving the COM..." when running program that writen in Visual Studio 2010 (C#) on other computers ?
    T taibc

    Hi everyone, I created a setup package in Visual Studio 2010 (C#) to install my program into other computers. I can install and run without error on my computers. But on other computers, I got the error: Retrieving the COM class factory for component with CLSID {AC0E...} failed due to the following error: 80040154 Then, I tried to use Depends to check .exe file (application file) in the installation path, and discover some error dll files: API-MS-WIN-SERCURITY-SDDL-L1-1-0.dll CRYPTSP.dll SSPICLI.dll WERUI.dll ,... PS: I tried to build my solution in both: Release and Debug configuration, but still error. Are there anyone know how to fix this ? Thank you very much, Tai

    C# csharp help workspace visual-studio com

  • How to get xml node with a specified value ?
    T taibc

    Hi everyone, I have xml string like this:

    <content>
    <person>

      <firstname>Peter</firstname>
      <lastname>John</lastname>
    

    </person>
    <person>

      <firstname>Tom</firstname>
      <lastname>Crui</lastname>
    

    </person>
    <person>

      <firstname>Holse</firstname>
      <lastname>Moul</lastname>
    

    </person>

    </content>

    Now I want to get the node that has value: Tom Do you know how can do that (I don't want to use a for/foreach statement to check) Thanks and regards, Tai

    C# xml tutorial question

  • How to dispose all resources after closing the application ?
    T taibc

    Yes. I found out a way to do that by use the statement: Process.GetCurrentProcess().Kill(); Thanks and kind regards,

    C# csharp visual-studio tutorial question

  • How to dispose all resources after closing the application ?
    T taibc

    Hi everyone, My application was written in Visual Studio 2010. After closing my application, there is still a running process that showed in the Task Manager. Do you know, how to dispose all resources after I close my C# application ? Thanks and regards, Tai

    C# csharp visual-studio tutorial question

  • Convert string array from C# to C++ ?
    T taibc

    Hi Karthik, Thank you very much. Your link is very useful. I will try it. Kind regards, Tai

    Managed C++/CLI question csharp c++ graphics data-structures

  • Convert string array from C# to C++ ?
    T taibc

    Thanks Freak30, I am using Visual Studio 2010. I tried to send string[] in C# to string[] in C++, but not successful In C#, I used below codes:

    [DllImport("DgnShpConverter.dll")]
    public static extern Boolean ConvertDgnToShp(string source, string destinationPath, string shpFileName, string [] strArray);

    And in C++ (file DgnShpConverter.dll), I used below codes:

    __declspec(dllexport) bool ConvertDgnToShp(const char* sourceFile, const char *destinationPath, const char *shpFileName, string myArray[])
    {
    // do something ....
    }

    Do you know how to fix this ? Thanks and kind regards, Tai

    Managed C++/CLI question csharp c++ graphics data-structures

  • Convert string array from C# to C++ ?
    T taibc

    Hi everyone, I have a string array in C# includes 4 strings: {"string1", "string2", "string3", "string4"} In C#, I can use List or string[] to process. But now I want to send this array to a function in C++ (may be is vector). How can I do that ? and what is the suitable type of string array in C++ Thanks and regards, Tai

    Managed C++/CLI question csharp c++ graphics data-structures

  • Create a procedure to change date value of a column in a table ? (SQL)
    T taibc

    Thank you. I got an error when trying your code: "Type TIME is not a defined system type" I am using Microsoft SQL Server

    Database database tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups