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 Chriss Miller 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: VIJSQL01
  • Content: Threads
  • Order by date
  1. VIJSQL01

    Need help in writing Concatenation query

    Hi, I am trying to execute a select query, that will have concatenation of four columns. I am not just interested in concatenating, but also interested in inserting a constant values between these concatenations. Also i want to have a word in between, which is again concatenated. [highlight...
  2. VIJSQL01

    Need to test table partitioning & index creation

    Hello, I have been assigned to test partitioning and index creation for tables created in SQL Server environment. I do not know the approach. If possible i would like to automate this process. Can anybody throw some light on this? Thanks, VIJSQL
  3. VIJSQL01

    Unable to find exact length of the number in Sybase IQ, when the data type is CHAR- Need workaround

    hi, i have a table in Sybase IQ and one of the column data type is defined as CHAR(5). The column has numbers which have 5 digits as well as 4. When i query the length of each row from that column, the length is returned as 5, even for the numbers which are actually 4 digits. But this is not...
  4. VIJSQL01

    Help required for Operating system error code 1311

    Hi, When i am trying to load a SQL table by using BCP command, i am getting below error. Msg 4861, Level 16, State 1, Line 1 Cannot bulk load because the file "\\10.48.164.48\Datamove1\REAS_QA_DATA\REAS1407\HPI_Bulk_Export_by_STATE_201407.csv" could not be opened. Operating system error code...
  5. VIJSQL01

    Unable to Load the CSV file, using BCP command in SQL 2008

    Hi, I am trying to load large data which is available in .CSV file format. I am getting below error, Msg 4866, Level 16, State 1, Line 1 The bulk load failed. The column is too long in the data file for row 1, column 20. Verify that the field terminator and row terminator are specified...
  6. VIJSQL01

    BCP(Bulk Copy Program) is failing for a large file

    Hi, I am facing following issue, when i tried to transfer large volume of data into a SQL(2008) table by using BCP utility. The file format is .CSV and the amount data in it is 180 megs. Msg 4863, Level 16, State 1, Line 1 Bulk load data conversion error (truncation) for row 2081, column 18...
  7. VIJSQL01

    Unable convert varchar to Decimal, in dynamic query

    hi, i am unable to convert Varchar to Decimal. I am getting error as follows. Msg 8114, Level 16, State 5, Line 1 Error converting data type varchar to numeric. SQL query used: select * from RT_STATE_MASTER where Convert(Decimal(10,4),CAP_RATE_MEAN)<0 i would like to mention here that, when...
  8. VIJSQL01

    Use of Concatenate Function

    hi, I am struggling to add a prefix to one of the column value in my table. The scenario goes like this. I have values in a column, which are 4 as well as 5 digits. The values which have 4 digits should be added with '0' as prefix. I already tried out following way, but it turned out be wrong...
  9. VIJSQL01

    Need Help Writing a Complex Query

    hi, I have a table, which contain 8 different columns. I need to figure out the values which are same across selected four columns with in a table. In the same query, i want to see the value in those two columns where values are different. An example would be as follows, Table Name: Table1...
  10. VIJSQL01

    Having an issue with BCP Command

    hi, I am trying to load a table in SQL 2008 by using a data present in .csv file by using BCP command. I am unable to do this, as it is throwing following error. Msg 4866, Level 16, State 1, Line 1 The bulk load failed. The column is too long in the data file for row 1, column 15. Verify that...
  11. VIJSQL01

    Data validation and error handling during insertion of data into a temp table bu using Stored Proced

    Hi, I have a stored procedure in SQL 2008 which does certain calculations based on business rules. In order to do the calculations, we need to supply data in the form of file in .csv format. As of now, the stored procedure is unable to process the data, if the data file has a header. The...
  12. VIJSQL01

    Header Validation of an uploaded file

    hi, I have a stored procedure in SQL 2008 which does certain calculations based on business rules. In order to do the calculations, we need to supply data in the form of file in .csv format. As of now, the stored procedure is unable to process the data, if the data file has a header. My...
  13. VIJSQL01

    Apply Condition by using two columns in Dynamic Query

    Hi, I am writing a dynamic query where in i need to put data exclusion criteria by using two columns from a table. The two columns which i am using are 'FLOP_PRICE_AMT' and 'REO_PRICE_AMT'. The condition goes like this, if FLOP_PRICE_AMT is less than 90% of REO_PRICE_AMT, then that...
  14. VIJSQL01

    Learn Microsoft Access Database

    hi, I am a beginner for using Microsoft Access databse which we have for one of our product. The qurying on Access database is quite different than any other traditional databases like SQL ,Sybase, Netizza etc. Sometimes i need to do some kind of testing on Access databse and i face lot...
  15. VIJSQL01

    Error Handling in Stored Procedure

    hi, I need to handle the error message in stored procedure. I am doing following things... 1. First i will be loading data into a table from flat file which is of .CSV format. 2. I am loading the data along with header. 3. I use normal delete statement to delete the row which has...
  16. VIJSQL01

    Query to fetch the table names

    hi, Is there any query i can use single query to fetch all the table names present in a whole database. This i need to perform on SQL database. I am finding it difficult to copy from the table tree view on the left hand side of the SQL for listing out all the tables avaialable, since it has...
  17. VIJSQL01

    How to find any number having all the four decimal places

    hi, I am facing a difficulty in finding the whether the number is in four decimal accuracy has all the values for all the four decimals instead of zeros in a huge set of data. Example: i have a number, 6.0000 and the other number 16.5600 and the other number 15.6754 I am interested to find...
  18. VIJSQL01

    Discussion SSIS Packages in SQL 2008

    hi, i am trying to create a SSIS package in SQL 2008. The steps i am following are as follows. a. Open import/export wizard b. Specify data source as SQL Server Native client 10.0 c. Specify server name d. Use SQL server authentication e. Choose database f. In the next page, specify the...
  19. VIJSQL01

    Date and Time Format's Usage

    hi, i am facing an issue in converting one of the date format to other. The current date format is 1/1/2010 Required format is Jan-10 I have used the following code to convert it. Its working fine in source table not in the target table. In both tables, i have defined data type in both the...
  20. VIJSQL01

    DML Usage in SQL 2008

    In this thread, i need to discuss about DML commands usage in SQL 2008.

Part and Inventory Search

Back
Top