SQL Server :: Formatting A Date / Load Data In A Table Of SQL SERVER 2008 From An Excel File?
Feb 17, 2011
i have a store procedure that load data in a table of SQL SERVER 2008 from an excel file.the issue is, that the excel file have a column of DATE type, and i want that the system interprets the format in it, no matter what comes in it.dd/MM/yyyy mm/dd/yyyyi have an argue about this with my parnerts, cause i think is imposible, if you don't have a format before the process runs.
I am exporting HTML table/Repeater to excel, its not working on Windows server 2008, however same working on Windows Server 2003 and local machine
I have debug on Windows Server 2008, I am getting the same string that is on my local machineResponse.Write(sw.ToString()); but nothing wrote on my file and not getting any errorI have tried hard but not able to figure out the issue
I have a table with 100 records. I need to import extra 50 records in the same table. So from 101 to 150 records should insert the data which is present in excel Simply I want to import 50 records from Excel to Table without disturbing the first 100 records.
I've used the Import/Export wizard to get data into SQL from Excel and it works great. When I want to reverse the process, however, I can't. I've gone through the wizard multiple times and I've done what I think is everything to try to get the data out. What am I doing wrong?
I am having Excel Source Which needs to be imported into Sql Server Table using SSIS.In the Excel Source I dont have Month and Year Column.But in Table I have Month and year column and both the columns are Primary Key columns.So i am not able to Import data from Excel to Table.So is there any possiblities to add Columns Dynamically in Excel source inorder to get the Year and Month.
I am trying to insert data from excel file into sql server database table. which is working fine.. But when i tried it in table which has primaryKey As Autonumber and date as getdate(). its not inserting values in rows?
I simply have a lot of data in two columns in an excel spreadsheet of data that I gathered. I want to copy and paste this (manually) into a table that I have created in my ASPNETDB in my ASP.NET web application. I thought it'd be as easy as copy the column, and hit paste in the "table data" view, but it's not (it only pastes one cell).
Is there a way for me to manually copy data from excel and paste it in a table in my SQL Server?
I got 8 different tables and i need to represent in Gridview, it need to fetch data from 1st table and show it on first Row then 2nd and so forth till 8th table here constrain is it should show by date. i dont know to do all this i need your expert edvice. i am showing all this in follwoing Picture.
I am trying to create a control, but I need to load my formatting string from my web.config file, but every time I try to run the program I get an error one the formatting line. show me the correct syntax to load this data?
I have to write data from excel to data table on my server and ms office is not installed on the server. I am able to save the excel file but I don't how I can write it to data table from excel when ms office is not installed.
I am having a drop down list box which list the table in the particular database. Consisder the table TBl_Admin which have two columns (UserID, Name). I having a excel which contains some list of records with the column userid and Name.
When i choose this excel file and press upload, i need to insert the records found in the excel to the table TBl_Admin in the database.
I have tried using GridView control to display the data from SqlDataSource control but there are just so many columns and one of the fields contains a lot of texts so using GridView control to display the data does not look look since it goes out of the master template. I have tried using GridView control to display my data and use the following code to export as Excel but in case, there are just so many columns.
What are some other better ways to export to Excel file from my web page?
I am having a rdlc report i added and heading lteaxt box and value as =today() in the browser it showed as 03/06/2011 12.00 hrs. when i formated as dd/mm/yyyy format in coustum format it shows as 06/00/2011
I have 5 GB data, when I move from SQL server 2000 to 2008 with Import and Export wizard, my LDF size is increased to 30 GB, Can I reduce my LDF file or move. In my one of the table contain around 20 Lakh data which i have normalized in 2008 and create 4 tables, so my data is entering in normalized form in 2008. But due to size by hard disk is full. I have used shrnik command but it reduce to only 1 GB.
i have a excel file in which "PuNumber,MachineNo,MachineName,StartDateTime,EndDateTime,WorkOrder,RescheduleInterval,Description ,ACT CODE,ACTIVITY DESCRIPTION" are column. WorkOrder is Primary key. we have multiple value of " ACT CODE, ACTIVITY DESCRIPTION" of one work order. i want to store this data into two table one is shcedule table and another in activity table. shcedule table has this column "PuNumber,MachineNo,MachineName,StartDateTime,EndDateTime,WorkOrder,RescheduleInterval,Description " work order is primary key. and Activity table has three column ACT CODE, ACTIVITY DESCRIPTION and WORKORDER " act code and workorder is primark key.