SQL Server - Create table using SQL in MS ACCESS DB, Problem:: Table Deleted after some time .

Asked By Pinakin Patel
06-Sep-07 06:36 AM

Hi,

I m create a table using SQL statement in MS Access DB.

Code is given bellow.

conn.Close();

conn.Open();

OleDbCommand com = new OleDbCommand(sb.ToString(), conn);

com.ExecuteNonQuery();

conn.Close();

after executing this code Table is created.

But after some time Table automatically DELETED.

Please replay fast.

A Table doesn't just get   A Table doesn't just get "automatically deleted".

06-Sep-07 08:55 PM
There is some code somewhere in your app that is doing it. How's that for a fast "replay"?

not any code because table was deleted after 5-10 minuts  not any code because table was deleted after 5-10 minuts

07-Sep-07 01:09 AM

There was not any code for deleted table.

Because after some time table was deleted.

 

Generating timetables  Generating timetables

20-Feb-09 12:22 AM


No friend .........i'm not asking to generate "table" in sql......

i'm asking to create "timetable" schedules for students and staffs without any

clash with each other using asp.net with C#.....
Create New Account
help
Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B)What is a objects in Remoting? (A) What are the ways in which client can create object on server in CAO model? (A) Are CAO stateful in nature? (A) To create objects in CAO page ? (I) Can we post and access view state in another application? (I) What is SQL Cache Dependency in ASP.NET 2.0? (I) How do we enable SQL Cache Dependency in ASP.NET 2.0? (I) What is Post Cache substitution? (I) Why get / set methods of a property ? (I) If we write a goto or a return statement in try and catch block will the finally block execute? (A) What is Indexer? (A Config”? (B) What is a SESSION and APPLICATION object? (A) What is the difference between ‘Server.Transfer’ and ‘response. Redirect’ ? (A)What is the difference between Authentication and authorization? (I) what proper? (A) If client side validation is enabled in your Web page, does that mean server side code is not run. (A)Which JavaScript file is referenced for validating the validators
I want know how to import excel sheet data into databse using stored procedure in sql server Use this - INSERT Personal (Name, ID) SELECT Name, ID FROM OPENROWSET('MSDASQL', 'Driver = {Microsoft Excel hi. . Follow this link . . http: / / www.aspsnippets.com / Articles / Read-and-Import-Excel-Sheet-into-SQL-Server-Database-in-ASP.Net.aspx HI try htis Stored Procedures For this article I have SheetName varchar ( 20 ), @FilePath varchar ( 100 ), @HDR varchar ( 3 ), @TableName varchar ( 50 ) AS BEGIN DECLARE @SQL nvarchar ( 1000 ) IF OBJECT_ID ( @TableName , 'U' ) IS NOT NULL SET @SQL = 'INSERT INTO ' + @TableName + ' SELECT * FROM OPENDATASOURCE' ELSE SET @SQL = 'SELECT * INTO ' + @TableName + ' FROM OPENDATASOURCE' SET @SQL = @SQL + '(''Microsoft.Jet.OLEDB.4.0'', ''Data Source = ' SET @SQL = @SQL + @FilePath + ';Extended Properties = ''''Excel
Application Hi How can we import data from excel file to an mdf file in sql server and c#.net, Could anybody please explain me with coding Using sqlBulk Class you can Security Info = False"; / / Create Connection to Excel work book OleDbConnection excelConnection = new OleDbConnection(excelConnectionString); / / Create OleDbCommand to fetch data from Excel OleDbCommand cmd = new OleDbCommand("Select [ID], [Name], [Designation] from [Sheet1$]", excelConnection); excelConnection.Open(); OleDbDataReader dReader; dReader = cmd.ExecuteReader(); SqlBulkCopy sender, EventArgs e) { OleDbConnection oconn = new OleDbConnection (@ "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = " + Server.MapPath( "example.xls" ) + "; Extended Properties = Excel 8.0"); / / OledbConnection and / / connectionstring to connect to the try { / / After connecting to the Excel sheet here we are selecting the data / / using select statement from the Excel sheet OleDbCommand ocmd = new OleDbCommand( "select * from [Sheet1$]" , oconn); oconn.Open(); / / Here [Sheet1$] is the name of
step-by-step article demonstrates how to import data from Microsoft Excel worksheets into Microsoft SQL Server databases by using a variety of methods. Description of the Technique The samples in this article import Excel data by using: • SQL Server Data Transformation Services (DTS) • Microsoft SQL Server 2005 Integration Services (SSIS) • SQL Server linked servers • SQL Server distributed queries • ActiveX Data Objects (ADO) and the Microsoft OLE DB
inserting image in SQL Server!! Hello Experts. I am developing a windows application using C#. I need to insert image need. I don' know any good approach to do so. can i insert image in SQL server 2005 and then retrive it or is there any other good option. Please suggest me is also appreciated. . Thank you. Ishwar N. Adapt this snippet - Dim con As New SqlConnection("Server = yileiw2;uid = sqlauth;pwd = sqlauth;database = pubs") Dim da As New SqlDataAdapter("Select * From pub_info microsoft.com / kb / 326502 This sample code explains you how you can store images in SQL Server database. It uses ADO.Net System.Data.SqlClient namespace . Images can be stored in sql server using Sql parameters. How to Store Image in SQL Server table To store an