Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Loading The Different Language Data From Excel File To The Single Table


can anyone help me to solve this problem
i have created a ssis package to load the data from excel file to the table, but we are getting the data in different language ie in french,english and in china after loading the data when we view the data it is showing as junk characters for chinese data but we are able to see other language data ie french and english.
so please tell me how to solve that
reply to my mail id(sandeep_shetty@mindtree.com)
 




View Complete Forum Thread with Replies

Related Forum Messages:
Loading Data From Multiple Rows Into Single Row In Excel Sheet
 
Hi,
 
I want to load data into Excel file with following format,
 




Country

State

Total

Location


ABC

A

20

X1


30

Y1


C

100

 


XYZ

X

40

 
 
Basically I want to insert records from multiple rows into a single row; how can I achieve this using SSIS.
I am using Excel as a data source.
 
Any help is appreciated.
 
Regards,
Omkar.
 
 

View Replies !
Excel File Loading In SSIS
Hi All,
 
We did the development of SSIS packges on 32 bit machine. We have few excel files which is loaded using SSIS.
Now the same was deployed to anothe rmachine(64 bit). This 64-bit machine does not have Microsoft office installed.
And all packages(which loads excel files) failed. Hence can someone answer my following questions:-
 
1) In order to load excel files using SSIS, is it necessary that Microsoft excel software should be installed on that machine?

2) If answer to above is yes, Can Microsoft excel viewer be used instead of Microsoft office(excel)?
 
Thanks
Sid

View Replies !
Class Not Registered Error | Loading Excel File
 
Hi All,
 
I have SSIS package which loads excel data in SQL server. Now when I execute the package by double clicking it(GUI Utility for Dtexec) or by running it in SSIS Editor it works great.
However if I run it using the command line dtexec.exe then following error arises. Note that machine on which I am executing does not have Microsoft Office installed and is 64 bit.
 
Error: 2007-08-03 16:53:27.42
   Code: 0xC0202009
   Source: PkgExtract Connection manager "SRC_Connection"
   Description: An OLE DB error has occurred. Error code: 0x80040154.
An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".
End Error
Error: 2007-08-03 16:53:27.42
   Code: 0xC020801C
   Source: Data Flow Task - Extract  Data Excel Source [1860]
   Description: The AcquireConnection method call to the connection manager "SRC_Connection" failed with error code 0xC0202009.
End Error
Error: 2007-08-03 16:53:27.43
   Code: 0xC0047017
   Source: Data Flow Task - Extract Data DTS.Pipeline
   Description: component "Excel Source" (1860) failed validation and returned error code 0xC020801C.
End Error

 
 
Any pointers or help is greatly appreciated.
 
Thanks
Sid

View Replies !
Loading Excel File(.xls) Into Sqlserver (ASP.net Web Application)(ASP.net Framework 1.0)
I am using framework 1.0 to do the above tasks. Since there is no fileupload function in .net 1.0, i will be using the html control tools (file field) to do the upload option.

i have totally no idea of how to start coding it...can anyone guide me through the steps???

 

thanks

View Replies !
Loading Data From Excel
Can this be done in SSIS?
 
I have an xls spreadsheet with multiple worksheets.  From each worksheet I need to load the data into sql server.  The data I need to retrieve from each worksheet is not row by row, but cell by cell.  For example, I need to load data from cells C44, G65, I23, A78, etc.  in all the worksheets.  Is this possible using SSIS? 

View Replies !
Move Data From Excel File To A Table (MS SQL)
I have an application , user will read information in Excel file and insert that data into my application, I think it spend a lot of time. I want to make a tool which move data from Excel file to a table in My application (MS SQL) automaticly. How to do it, anybody has tool or know how to do, pls help me.thanks.

View Replies !
Data Formate When DTS Table To Excel File
I tried to dts a table to an excel file. The data types of all the columns in the table are varchar. I also want the data in the destination excel file to be text, so I didn't change the data format in the dts package. But after ran the dts, every value of every cell of the excel file has a single quote before it (not in the cell itself, but in the value shown space right below the toolbar). I tried to dts the table into a excel template which I predefined all cells to be text type. But some of the columns do not have the single quote anymore, while others still keep them. Since the other system that going to process the excel file does not expect the single quote, the process always fails.

Would anybody tell me how to get rid of the single quote?
Thanks a lot.

Qing

View Replies !
Write Data From A SQL Server Table Into An Excel File
Hi,

 

I need to export data from a table of SQL server 2000 database, into an Excel 2000 sheet. I tried following query from the sql query analyzer




Code SnippetSELECT * INTO [Excel 4.0;Database=F:ew.xls].[sheet1] FROM tab1

 



It gave me following error




Code SnippetServer: Msg 2760, Level 16, State 1, Line 1
Specified owner name 'Excel 4.0;Database=F:ew.xls' either does not exist or you do not have permission to use it.


 

The F:ew.xls file is present and it has no additional security applied, hence I think it should be writable.

 

Please tell me where am I doing wrong.

I don't know if this is the correct news group or not. Let me know if I have to post to some other news group.


- Abhijit

 

View Replies !
C# Code Or Document For Loading Excel Sheet Into An Sql Table
Hi,

I am trying to find some document or code that will load an excel spreadsheet into an sqlserver database.

Can anyone please point me in the right direction.

View Replies !
Loading Excel Data Into SQL Server In A ASP.NET Web Application
I need to be able to load data from an Excel spreadsheet into SQL Server via a web application. I was able to load the spreadsheet data into the application and store it into a DataSet. How do I get the data in the dataset into a table in SQL Server?

View Replies !
Help Loading Data From Excel To Analysis Services
I have a 40 MB database in excel format.I need to use it in Analysis Services, I imported the data by DTS (DataTransformation Services), everything is working I can see the database,but I can't load it in the analysis services.I have to construct a cube but I can't see the database in any way Itried.Thank youI hope my message is quite clearHope to find somebody that can answer me in Italian, but English is goodas well.

View Replies !
Need Some Advise On Loading Data From Excel Sheet
I insert/update thousands of line items daily to my MS SQL 2k db each day from multiple excel sheets that are uploaded. In Microsoft's infinite wisdom Excel and MS SQL is not "Fully" compatible and some characters throw off the uploads, cause errors in loading, etc. Each Excel sheet has from a few rows up to 50,000 rows or more. We load around 100 of these Excel sheets each day depending on what our users upload.

Our main problem appears to be with "Special Characters", anything that is not a number or letter seems to be an issue in loads. We have written our scripts to ignore a certain set of characters such as #,!, -, ', ", [, ], {, }, +, =, *, %, ~, `, <,>, etc. But we still get errors. This has become a frustrating nightmare. Any help in the right direction would be greatly appreciated.


I have tried ASP scripts, VB created exe's, converting the Excel sheet to a text file, then uploading, and other various means to get this process error free. Some files never have issues loading, some excel files will error out and not at the same point each time. We can run the same file 5 times in a row and it will stop/error at a different point each time without any rhyme or reason.

Now we are not just doing an "Insert", there are several variables that are at work when loading the data, like combining exact items into one row, associating data with ID's in another table, etc. It is not just a simple, take this data and place it here scenerio which makes this a serious headache to figure out how to make this error free and troubleshoot.

Is there some information or a direction I should look to consider a solid solution to importing data from Excel sheets to a MS SQL 2k db? These files are loaded into a specific folder and on upload they are also recorded in a table marked ready for update in the db. Our scheduler runs the exe associated with that users ID and loads their data, overwriting their previous data load, then marks the file as done.

Is there a proven method, some external program that can be used to make this a solid process, or any direction you can provide for me to research?

View Replies !
HELP,,Imports A Data From Excel File Into A Table In SQLserver Database
Dear all,,
I need your help,,I'm work in website project using ASP.NET,,I have to register the users of this site,, the users are over 200,,so,,I'm thinking in away to save my time,,All the information of these users are stored in Excel file,,What I want to do is to imports these data from the excel file into a table in my database(SQLserver database),,Could you help in coding by VB.NETThanks in advance,,

View Replies !
How To Update Selected Columns Of A Table In SQL Server Db Using Data From A Excel File?
Hi,I have an Excel file with 400 rows of old values and the correspondingnew values. My table currently has 10 columns out of which 3 columnsuse the old value specified in the excel file. I need to update thoseold values in the columns with the new values from the Excel file.Please guide me as to how to proceed with this.Thanks in advance!

View Replies !
Exporting Data From SQL Table To Excel File - How To Delete Rows Before Inserting New
Hi,

Question pls. I have an MS SQL local package where it exports data from SQL table to Excel file. My question is, how can erase all the records in my excel file before i export the new data from SQL table?

What i want is to delete the rows in the destination file before inserting new records.

Thanks a lot.

View Replies !
Combine Data In Single Row From Single Table
How can i combine my data in single row ? All data are in a single table sorted as employeeno, date


Code:

Employee No Date SALARY
1 10/30/2006 500
1 11/30/2006 1000
2 10/25/2006 800
3 10/26/2006 900
4 10/28/2006 1000
4 11/01/2006 8000


Should Appear


Code:

EmployeeNo Date1 OLDSALARY Date2 NEWSALARY
1 10/30/2006 500 11/30/2006 1000
2 10/25/2006 800
3 10/26/2006 900
4 10/28/2006 1000 11/01/2006 800

PLEASE HELP I REALLY NEED THE RIGHT QUERY FOR THIS OUTPUT.

THANKS IN ADVANCE

View Replies !
SSIS - Data Loading Job -- Update Col B With Col A If Col B Is NULL In The Data File?
How do u achieve this -- While SSIS Data Load Execution itself?

Update Col B with Col A value if Col B is NULL in the Data File?

View Replies !
Loading Data Froma A Text File To SQL Data Base
Hello!! searching information about how to migrate some date from an old data base (any tipe) from SQL I´v found this:
 LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name.txt'
[REPLACE | IGNORE]
INTO TABLE tbl_name
[FIELDS
[TERMINATED BY 'string']
[[OPTIONALLY] ENCLOSED BY 'char']
[ESCAPED BY 'char' ]
]
[LINES
[STARTING BY 'string']
[TERMINATED BY 'string']
]
[IGNORE number LINES]
[(col_name_or_user_var,...)]
[SET col_name = expr,...)]
 Does anybody know how does it works and how to use it????I´d like to know because I have to load data from a text file to a SQL Data Base and this seems to be te fastest an easiest way to do it...Thanks!!!!bye!

View Replies !
Help Loading A Text File Into Db Table
I am familiar with the MySQL Load Data command to load an external ascii file into a database table, but am having trouble finding a T-Sql command that is equivalent without creating an executable...any help would be appreciated...

View Replies !
Loading Data From .mdb File Into Sql Server 2005
I am so new to SQL Server 2005 and just studying.  Saying that...
We use SQL Server 2005 Express edition.  Some one sent me a file (info.mdb) and asked me to load the data in this file in to a table called Products and also asked me to load in another table (ProdCat) where id = 'X05'.
So being not knowing anyting regarding data loading etc, how should I do this and proceed?  The .mdb means its a Access database file?  If that is the case, I dont have Access in my machine and what should I do?

View Replies !
Do We Have To Alawys Use Slowly Changing Dimensions (SCD) Component In The Data Flow For The Loading Of Table Data?
Hi, all experts here,
Do we always have to use SCD component for the loading of data into data warehouse to handle changes of rows?
I am looking forward to hearing from you and thank you very much in advance for your help.
With best regards,
 
 

View Replies !
Using A Excel Source To Get The Data From An Excel File Gets Null Values For A Couple Columns
 I am using a Excel Source to get the data from an excel file to sql server 2005 table. A couple columns are coming in a double precision float, but some values have characters in them, but those values are coming out as null, even though I changed the datatype from float to unicode string. Any inputs on resolving this will be much appreciated.

Thanks,
Manisha

View Replies !
Correcting Invalid Dates From A Text File Before Loading SQL Table
Each month we process 100+ text files into our ERP system.  Occasionaly the Voucher Date in the text file does not contain a valid date.  I would like to check to see if it is a valid Date, if it isn't replace it with the current date.
 
I thought I would use a Derived Column transformation, but I don't know how to check a field to see if it is a valid date.
 
Can anyone help?
 
Thanks,
 
Jeff

 

View Replies !
Rename Table After Loading Data Into Temp Table
WE have a job that loads data from an Oralce DB into our SQL Server 2000 DB twice a day. The schedule has just changed so that now there is a possibility of having my west coast users impacted when it runs at 5 PM PST and my east coast users impacted when it runs at 7 AM EST. As a workaround, I have developed a DTS package that loads the data into temp tables instead of the real tables. IE. Oracle -> XTable_temp instead of Oracle -> XTable. The load sometimes takes about an hour to an hour and a half to load, so this solution works great, but I want to then lock the table, delete it and rename the temp table to table X. The pseudo code would be:
 
Begin Transaction

 
Lock Table XTable
 
Drop XTable
 
Alter Table XTable_temp rename to XTable
 
Release Lock XTable
 
End Transaction
 
Create XTable_temp
 
I see two issues with this solution. 1) I think if I can lock XTable that the lock would be released when the table is dropped and the XTable_temp was being renamed. 2) I can't find a command to rename a table.
 
Any ideas on a process that might help?

 
TIA,
 
A

View Replies !
Need Help On Ragged Right Flat File Data Loading Into SQL Server DB
 

Iam trying to load a RR Flat File(Ragged Right) into SQL Server DB Destination.
 
The file feeds the data into two tables and the logic looks like this..

If Position 30 = ''

Record Set goes into Table 1
Else

Record Set goes into Table 2
 
I have no clue where to start with my limited SSIS Exposure.. Any Ideas as to what i shud be starting with (Transformations)??
 
Thanks in Advance.


 

View Replies !
Loading Data Into Sql Table
I want to read file from c:abc.txt through sql programming and Insert this file data into table.

suppose c:abc.txt has following data
aman 10 50,000
sumesh 20 40,000

suppose I have created table abc( a varchar(30), b int, c int)
How I will do it

Thanks
Ajay

View Replies !
Loading Data To A Table
Hi,
I created a package to load a fact table
which loads more than 7 million records.
When loading the table it took nearly 15 minutes.
Then indexes were created for the table at the DB level after which the time to load same number of records has increased.
How to resolve this time delay?

View Replies !
SSIS Flat File Loading - Data Type Conversion
It seems I can do the type conversion in two place:

1. The advanced editor for flat file source => Input and output roperties. And I can set the output columns data type properties there.

2. Using a Data conversion box in Data flow transformation.

Any difference between these two? Which one should be used?

View Replies !
Loading Data File In SSIS With Multiple Record Layouts
I am trying to load a file using SSIS that contains records with two different layouts in one data file but in the flat file connection I can only specify one layout and this is causing the records with the second layout to be loaded incorrectly.

 

The different record layouts can be identified by the first character of the record. Example: If Field begins with "A" then assign one layout; "B" assign second layout.

 

Has anybody come accross this issue, if so some guidence would be appreciated.

 

Thanks,

 

ire_ssis

View Replies !
Error During Loading Data Form A Falt File Into DB2 Database??ß
Hi,

 

I have a problem loading data from a flat file into a DB2 Dtabase by using the OLE DB Provider for DB2.

I read the data from a flat file in the unicode format and as soon as the data is to be written in the DB2 database the following error occurs and the loading process is aborted:

Information: 0x402090DE at Data Flow Task, Flat File Source [813]: The total number of data rows processed for file "C:Dokumente und EinstellungenAdministratorDesktopSSIS1.txt" is 2.
Error: 0xC0202009 at Data Flow Task, OLE DB Destination [842]: An OLE DB error has occurred. Error code: 0x80040E53.
Error: 0xC0047022 at Data Flow Task, DTS.Pipeline: The ProcessInput method on component "OLE DB Destination" (842) failed with error code 0xC0202009. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.
Error: 0xC0047021 at Data Flow Task, DTS.Pipeline: Thread "WorkThread0" has exited with error code 0xC0202009.
Information: 0x40043008 at Data Flow Task, DTS.Pipeline: Post Execute phase is beginning.......

......Warning: 0x80019002 at Package: The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "Package 1.dtsx" finished: Failure.

 

I dont know waht those error codes meanand I tried so many things already. The tables in the database are created correctly and also, SSIS can read the data from the database if I use the preview function, but somehow, the program never starts to write data into the database for some reason. Can anyone help me???

 

Thx,  andy

View Replies !
Error During Loading Data Form A Falt File Into DB2 Database??ß
Hi,

 

I have a problem loading data from a flat file into a DB2 Dtabase by using the OLE DB Provider for DB2.

I read the data from a flat file in the unicode format and as soon as the data is to be written in the DB2 database the following error occurs and the loading process is aborted:

Information: 0x402090DE at Data Flow Task, Flat File Source [813]: The total number of data rows processed for file "C:Dokumente und EinstellungenAdministratorDesktopSSIS1.txt" is 2.
Error: 0xC0202009 at Data Flow Task, OLE DB Destination [842]: An OLE DB error has occurred. Error code: 0x80040E53.
Error: 0xC0047022 at Data Flow Task, DTS.Pipeline: The ProcessInput method on component "OLE DB Destination" (842) failed with error code 0xC0202009. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.
Error: 0xC0047021 at Data Flow Task, DTS.Pipeline: Thread "WorkThread0" has exited with error code 0xC0202009.
Information: 0x40043008 at Data Flow Task, DTS.Pipeline: Post Execute phase is beginning.......

......Warning: 0x80019002 at Package: The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "Package 1.dtsx" finished: Failure.

 

I dont know waht those error codes meanand I tried so many things already. The tables in the database are created correctly and also, SSIS can read the data from the database if I use the preview function, but somehow, the program never starts to write data into the database for some reason. Can anyone help me???

 

Thx,  andy

View Replies !
Fast Loading Of Data To Table
Hi Every one,

How can I load or copy say millions of rows to a table in the database faster?

Thanks,
Mejo George

View Replies !
Loading Crosstab Data Into Database Table
Hi, there,
 
I have a Excel cross-tab (multilevel column) report that need to be loaded into a database table. Currently, I am using a Excel macro that convert the columns into rows before loading into the database table. I was thinking whether there is a better way of doing this perhaps in SSIS or using XML.
 
Any ideas greatly appeciated.
 
Thank you.
 
Yong Hwee 

View Replies !
How Do Create Table From Excel (based On Excel Column Name) And Import Data From It?
l've the following situation,

l've some excel files controlled by Vendor which changing frequently. The only thing does not change is the header name of each column.

So my question is, is there any way to create a new table based on the excel file selected including the column name in SSIS? So that l can use the data reader as source to select those columns l am interested on and start the integration.


Thanks.

Regards,
Yong Boon, Lim


p/s : The excel header is at the row 7.

View Replies !
Exporting To Muliple File From A Single Table Using DTS
Hi Friends

I have been trying to solve this problem for the last 2 days but no luck.

Here is the problem that I am facing.

The task on had is to transfer data from a single table (the source) to multiple files (Destination) based on the record type.

I have tried changing the Datasource property of the Text File Connection object dynamically by using an ActiveX Script. But the data is still being written only to one file.

Can anyone please help me.

Thanks in advance.

Srinivas.

View Replies !
Meta Data Synchronization With Excel File Source Once We Update The File
 

hi all;
 
1. Excel file Source--> monthly Revenue details
2. Derived Colum Transoformations
3. Oledb Destination
 
its my flow in one of my packates (ETL job)
Excel file contains monthly revenue details, i wanna import the excel data to my database staging table, so i've created the package. 
its working fine...
 
Problem
if we change the new data for the next month and running the package its not running;
the same file, same format, only we delete the contents, of the file except first row of the excel sheet,
and pasting the new data;
new data is coming from Oracle DataBase in the form of excel sheet ( manually they will copy the data and sending to us)
 
i open that package in design mode and while double clicking the excel file source it says <column name>'s Meta Data needs to be synchronized
Do you want to Fix this issue automatically with the available external column's meta data
 
Clearly noted that its a data type issue; i have changed the corresponding data types as it is in the previous Excel sheet which is equivalant to the Table its copying to.
 
now the package is running with validation warnings, External Column "Invoice Amount" needs to be updated...etc. some 2 or three warning messages i can able to see in the package Execution wizard,
 
ok, i'm ready to accept these warnings, and i want my package running from my server;( packages had been deployed in to the Centeralized server; every time if we want to run the package, we have the asp.net webpage, that is executing the package in an On_click event)
 
The package is not running from the server, its due to the meta data change in the Excel file( i guess)
 
please suggest me some guide lines to resolve this meta data issue, i want my excel sheet meta data should not change when we have new updates in it;
 
otherwise suggest me some solutions that i can validate the excel sheet before running the package and testing whether the data is in correct format or not? its a kind of Data Profiling activity;
 
i know its some what crazy, but i need to maintain the system with permanent solution, instead of facing this meta data mismatch issue!!!
 
some what lenthy explanation--> its needed for my dear powerful microsoft responders. i think i 've explained my problem clearly, if i don't let me know your queries, i'll try my level best. 

View Replies !
Loading Data From Same Table (oracle) In To Diff SQL Tables With In Same Package(same Query)
 

Hi,
 
I have Table A . we already have 80 columns . we have to add 65 more columns.
 
 we are populating this table from oracle .and we need to populate those 65 columns again from the same table.
 
Is it a better idea to add those new 65 columns to the same table or new table.
 
If we go for the same table then loading time will be double, If I go for new table and If i am able to run both the packages which loads table data from same oracle server to difffrent sql tables then we should be good. But if we run  in to temp space issues on oracle server . Then i have to load the two tables separately which consumes the same time as earlier one.
 
I was thinking if there is a way in SSIS where I can pull data from same oracle table in to two diff sql tables at same time?

View Replies !
Fit An Intere Table In Same Page Without Page Breaks Excel Export In A Single Sheet.
Fit an intere table in same page without page break for save the excel export.

My table has a Group for order my dates.

I need to have the intere table in the same page, i don't care about blank space at the end of the  page.

I can't use the page break beacuse i need an excel export in a unique sheet..
I have tested.. every page break..you'll have a different sheet in your excel export

I need something like this

page 1

Zone
1
2
3
4
5
6
7
7
8
9
..

page 2

Zone
1
2
3
4
5
6
7
7
8
9
..

but an unique sheet in the excel export

View Replies !
Writing Data From Multiple Tables To A Single Flat File
I have a package that contains three database tables (Header, detail and trailer record) each table is connected via a OLE DB source in SSIS. Each table varies in the amount of colums it holds and niether of the tables have the same field names. I need to transfer all data, from each table, in order, to a flat file destination.

View Replies !
Retrieving Hierarchical Data From A Single Table
I would like to retrieve a hierarchical list of Product Categories from a single table where the primary key is a ProductCategoryId (int) and there is an index on a ParentProductCategoryId (int) field. In other words, I have a self-referencing table. Categories at the top level of the hierarchy have a ParentProductCategoryId of zero (0). I would like to display the list in a TreeView or similar hierarchical data display control.Is there a way to retrieve the rows in hierarchical order, sorted by CategoryName within level? I would like to do so from a stored procedure. Example data:ProductCategoryID CategoryDescription ParentProductcategoryID ParentCategoryDescription Level------------------------------------------------------------------------------------------------------------------------------------------------1                           Custom Furniture     0                                                                             02                           Boxes                     0                                                                             03                           Toys                       0                                                                             04                           Bedroom                 1                                    Custom Furniture                15                           Dining                     1                                    Custom Furniture                16                           Accessories            1                                    Custom Furniture                17                           Picture Frames        6                                    Accessories                       28                           Serving Trays           6                                    Accessories                       29                           Entertainment          1                                    Custom Furniture                110                         Planes                     3                                    Toys                                  111                         Trains                      3                                    Toys                                  112                         Boats                      3                                    Toys                                  113                         Automobiles             3                                    Toys                                  114                         Jewelry                    2                                    Boxes                                115                         Keepsake                2                                    Boxes                                116                         Specialty                 2                                    Boxes                                1Desired output:Custom Furniture     Accessories          Picture Frames          Serving Trays     Bedroom     Dining     EntertainmentBoxes     Jewelry     Keepsake     SpecialtyToys     Automobiles     Boats     Planes     Trains

View Replies !
Help With Creating SQL Statement To Get Data From Single Table...
Hi, I'm having some difficulty creating the SQL Statement for getting some data from a table:
I have the following table of data
__User___Votes___Month
__A_______14______2__A_______12______3__A_______17______4__A_______11______5
__B_______19______2__B_______12______3__B_______15______4
 
I want to beable to pull out the total number of votes a user has had over a period of months.
eg Total up each users users votes for months 4 and 5
that would give:
__User____TotalVotes
___A________28___B________15
An added complecation is that user B does not have any data for month 5
Any help or pointers would be fanstatic
Many thanks

View Replies !
Displaying Data In Hierarchy From Single Table..
Hi,

 
    I like to get data from a signle table and arranged in hierarchical(hierarchy) order. What will be my sql script to be able to get the desired result shown below? Please include some explanation as too what script is doing..
   
Table Structure and Sample Data
 
Id    ParentId    Name                    Code       DisplayOrder
1      null           Group 1                G00001           1
2      null           Group 2                G00002           2
3       1             Sub-Group 1         SG0001          1
4       2             Sub-Group 2         SG0002          1
5       3             Sub-Sub-Group 1  SSG001          1
6     null           Group 3                 G00003          3
7      3             Sub-Sub-Group 2   SSG002          2
 
 
Desired Result
Id  ParentId   Level  Name                    ExtendedName                                                DisplayOrder
1      null         1     Group 1                  Group 1                                                               1
3       1           2     Sub-Group 1           Group 1 -> Sub-Group 1                                        1
5       3           3     Sub-Sub-Group 1    Group 1 -> Sub-Group 1 -> Sub-Sub-Group 1          1
7      3            3     Sub-Sub-Group 2    Group 1 -> Sub-Group 1 -> Sub-Sub-Group 2          2
4       2           2     Sub-Group 2           Group 1 -> Sub-Group 2                                        1
2      null         1      Group 2                 Group 2                                                               2
6     null          1    Group 3                  Group 3                                                               3
 
 

View Replies !
Sql Table From Excel File
I am creating a sql table from an excel file that contains closing prices for the SP500. The first column contains all the tickers and the proceeding columns represent different days with the appropriate closing price to match the ticker. Thus, the first column has the header "Ticker" and all subsequent columns have headers in the form "MM/DD/YYYY". When i try to create a sql table from this file, the first column header shows up, but none of the other headers do. What am I doing wrong?

View Replies !
Excel File To Table
Hi All, I want to export all the datas from MS Excell to my table. Excel and table structure are same.
Thanks n advance..........
 

View Replies !
Comparing Data In Two Consecutive Rows From A Single Table
I'm trying to come up with an elegant, simple way to compare twoconsecutive values from the same table.For instance:SELECT TOP 2 datavalues FROM myTable ORDER BY timestamp DESCThat gives me the two latest values. I want to test the rate ofchange of these values. If the top row is a 50% increase over the rowbelow it, I'll execute some special logic.What are my options? The only ways I can think of doing this arepretty ugly. Any help is very much appreciated. Thanks!B.

View Replies !
No Column Name When Dts Table Into An Excel File
When export a SQL Server table into a Excel file using dts, the columns name always appear as the first row in the Excel file. Is there any method to get rid of them? I want only data in the excel file.
Thanks a lot.

Qing

View Replies !
Import Excel File Into Table Via T-SQL?
Hi folks. I am having an excel file. I need to import this file to database and update some other tables with data contained in this file. I would like to automate this process as much as possible.
Now, I am just using SQL Server Import Wizard to create a table and then I am running an update query. Is there any (more automate) way to do this?

Thanks for your time.

View Replies !
Loading Excel Files
I am writing a SSIS package to load a lot of Excel files. I use SQL statement to select the Excel data. However, I found it's hard to dynamical set the table name (Excel Tab name) - the user name the Tab differently.

 

Any clue or better solution? Thanks,

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved