ASP.NET - The file you are trying to open, (file name), is in a different format than specified by
Asked By reenu Ch on 26-Jun-12 03:35 AM
Hi
Import and Export Excel to Sql and Sql to Excel works fine
but
when open the data in Excel 2007 Shows the Following Worning Message,
"The file you are trying to open, (file name), is in a different format than specified by the file extension...
Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?"
[)ia6l0 iii replied to reenu Ch on 26-Jun-12 10:14 PM
There is a concept known as "Exception Hardening" introduced in Office 2007 suite. Unfortunately this adds to some serious annoyance. You can either turn it off or leave it on if you receive data from multiple sources.
There is a Microsoft Knowledge Base Article @ http://support.microsoft.com/kb/948615 which explains more about this message, and how to turn it off.
Good one!
hi i am melike i connected with sql server and getted data with sql query analyzer and i want to see my data in excel program how can i do it? can i export data to excel? can you help me? thankss. . . . . If you want to export data from
How to export SQL data from server(http browsers) and save as excel files? Must be able to select which table / tables and selective or all columns from the database to export too! Need it for my school project. Thanksssssssssss<3 public void ExportTable( string query, string sheetName) { SqlConnection myConnection = new SqlConnection(CONNECTION_STR); SqlDataReader myReader = null ; try { Excel.Worksheet worksheet = (Excel.Worksheet)workbook.Sheets.Add(Missing.Value, Missing.Value, 1, Excel.XlSheetType.xlWorksheet
how to import data from excel file into the SQL server Use DTS or SSIS You can use the SQL Server Data Transformation Services (DTS) Import Wizard or the SQL Server Import and Export Wizard to import Excel data into SQL Server tables. Check this link : http: / / www.mssqltips
can i export excel sheet data into my databases tables? Yes. Here is an example of several ways to accomplish it: http: / / support.microsoft.com / kb / 321686 hi. . just use below code to send excel data to sql server. . . . . Design your aspx page like this < html xmlns = "http: / / www.w3.org / 1999 / xhtml form id = "form1" runat = "server"> < div > < table > < tr > < td > < span style = " color : Red"> * < / span > Attach Excel file < / td > < td > < asp : FileUpload ID = "fileuploadExcel" runat = "server" / > < / td > < / tr > < tr > < td > < / td > < td
Hi, I want to insert bulk data in sql table through excel sheet in vb.net. is it possible? -Import excel sheet -Export to sql table help me. hi, use bulkcopy option to copy bulk data from excel to sql
like in sql server 2000 , Dts wizards r there any wizards to transform from excel file to excel file sql file to excel , sql serevr table to text file etc send me the
how to export sql data to excel in multiple sheets in C#.net by using querytable. I know how to export into one sheet but do not know how to do it by using different query and export them into different sheets? Thanks! the contents in different sheets in workbook with the “Excel
I am currently working on a project that will encorporate a SQL data and queries but repor them in an Excel workbook which runs a special graph. The people want to see the current stats they are collecting in SQL but with a graphic display. I an trying to choose to either do this using a Visual Basic Applciation or some toher way? Help??? One way is to use Sql Server Reporting services for displaying your stats in graphic form and in reporting services you
Hi friends I need to move my data from excel to sql server how can i do ? my project is a webaplication so sql server is at webserver end so cannot use sql import so pls help me in solving this issue Check this: http: / / msdn.microsoft.com library / ms140052.aspx hi, try this on click even of import The OPENROWSET feature in SQL Server and MSDE provides a fast and easy way to open an OLE DB compatible
Using sqlBulk Class you can export excel file to DataBase. Use this code- protected void btnSend_Click(object sender, EventArgs e) { String strConnection Integrated Security = True"; / / file upload path string path = fileuploadExcel.PostedFile.FileName; / / Create connection string to Excel work book string excelConnectionString = @"Provider = Microsoft.ACE.OLEDB.12.0;Data Source = " + path + ";Extended Properties = Excel 12.0;Persist Security Info = False"; / / Create Connection to Excel work book OleDbConnection excelConnection = new OleDbConnection(excelConnectionString); / / Create OleDbCommand to fetch data from Excel OleDbCommand