How To Read A Logfile Into Database
Jul 29, 2010I need to retreive a logfile data(is in text format) into database. fieldnames also merged in the log file itself.
View 1 RepliesI need to retreive a logfile data(is in text format) into database. fieldnames also merged in the log file itself.
View 1 RepliesIs there a way to read the error message from the SMTP log files so that to indicate to the user that we are unable to send them email for any reason?
View 1 RepliesI need to get IIS Logfile data from Stored Proc. How to do this. I am using Bulk Insert Method in my stored Proc When I execute the stored proc I am getting an error that
[Code].....
This is a very common error as evidenced but the very large number of problems and suggested solutions on the web. I finally got around it last week but can't remember what was the step that did it. At that time, I was building a web application rather than a web site. Is that the difference? As you can see, it is no longer in the APP_DATA folder and is named membership.mdf rather than aspnetdb.mdf. I ran aspnet_regsql.exe to create it and actually had it working and was updating it successfully. But for other reasons, I had to scrap the application and decided to re-create it from scratch as a web site rather than a web application. I had been using Visual Studio 2008 to build the web application but am now using Visual Web Developer 2008 Express Edition to build the web site. Unfortunately, the Visual Studio application will no longer open so I can't verify that the web application still works. Can anybody help? (Please!!!) BTW, ASPNET and NETWORK SERVICE both have full control over the membership.mdf.
View 1 RepliesI am uisng asp.net 3.5 with c# as language. I want to read the database and store the data in either array or arraylist so that it can be called further in a dropdown list.
View 4 RepliesI want to read a value from database, using stored procedure i will paste my code below
ALTER
PROCEDURE [dbo].[msp_exceedingtimesheet]
-- Add the parameters for the stored procedure here
@Fullname nvarchar(50)
AS
BEGIN
[Code]....
How can i change my Read Only SQL database to make it as the membership provider database?Should i create new query and insert there a code? what is the code please?
View 2 RepliesI am using file upload mechanism to upload file for an employee and converting it into byte[] and passing it to varBinary(Max) to store into database.
Now I what I have to do is, if any file is already uploaded for employee, simply read it from table and show file name. I have only one column to store a file and which is of type VarBinary. Is it possible to get all file information from VarBinary field?
I'd like to upload an excel file from a user into a SQL database, then capture certain cells and insert them into a table in the database. I can't upload the file to the server due to restrictions, but I can upload it into a database field. I've seen examples on how to read cells from an uploaded excel file on the server, but how do you read cells from an excel file stored in the database? I'm using visual studio 2005 and SQL server 2008. Can this be done by reading from a stream?
View 1 RepliesI am trying to read data from a SQL Server 2008 database. Initially, I imported a 2007 Access db into the server. I have no problem reading this data. However, if I add new data, either through code or through SQL commands on the Server, I get an error when I try to subsequently read it. I only get the error on new data, not the imported data. Error:
System.InvalidOperationException: Invalid attempt to read when no data is present.
In my page (ASP.NET/VB.NET) I have a dropdown box which is filled with Customer Names. No Problem there. However, when I choose the customer, the rest of the form is supposed to fill with data retreived from the database. If I choose original data, it works fine. However, as soon as I choose a newly added record. It throws the Exception. I have tried to find a solution online, but most answers point to missing read code. I think my code is right, as it reads some records correctly. Is there something that is wrong with my server, or the way I am writing the records?
There is a dropdown box name CNAME on my page...
OnSelectedIndexChanged runs the following code:
sub displaydata(s as Object,e As EventArgs)
locked.checked = "True"
edit.enabled = "False"
Dim CustomerName As String = CNAME.SelectedItem.Text
Dim dread as SqlDataReader
Dim cn As New SqlConnection()
Dim cd As New SqlCommand()
cn.ConnectionString = "Data Source=localhost;Initial Catalog=AnalyticalReports;Integrated Security=True;"
cd.Connection = cn
cd.CommandText = "select Customers.CID, Customers.CNAME, Customers.CADDRESS1, Customers.CCITY, Customers.CSTATE, Customers.CZIP, Customers.CCONTACT, ISNULL(Contacts.CONNAME,'none') AS CONNAME FROM Customers JOIN Contacts ON Customers.CCONTACT = Contacts.CONID
WHERE Customers.CNAME = '"+ CustomerName+"'"
cn.Open()
dread = cd.ExecuteReader()
dread.Read()
CID.Text = dread("CID")
CNAME2.Text = dread("CNAME")
CADDRESS1.Text = dread("CADDRESS1")
CCITY.Text = dread("CCITY")
CSTATE.Text = dread("CSTATE")
CZIP.Text = dread("CZIP")
CONNAME.Text = dread("CONNAME")
cn.Close()
dread.close()
End Sub
how to make it?? How to read next row and previous row in database / SQL
View 5 RepliesI have set up my website to use ASP.NET Membership. it all works fine when trying to use it on my development machine but when I put it on the web server and try to log in, I get this error :
"Failed to update database "C:INETPUBWWWROOTAPP_DATAASPNETDB.MDF" because the database is read-only. "
I have 3 drop down list. 1 is for hours; 1 is for minute; 1 is for AM or PM. I want to read the time in from the database and set the drop down list for the users so they can make updates if need be. I tried ddhour.selectedindex = 1. Can I do this in asp??
Using: Visual web developer 2008; APS.net; VB.net Code; Access db
How to read a text file and saved in data base
View 1 Repliesin my system folder(E:\santhu) i have flat files(.txt and .doc ) .my problem is how to read those files automatically one by one and store the data(records) in to database?
View 8 RepliesI just purchased a premium Windows hosting account from 1&1. I wish to host my site on there. I have been working on it for quite some time.
The most important part of my website is Authentication, and I cannot get my database to work.
I need to get my site to be able to connect to E:BlahBlahBlahApp_DataASPNETDB.mdf. It is SQL Server 2005. And yes, my hosting package supports it. I have a database set up. Would I need to configure my database to read the .mdf? Or is there a special connection string for files.
I have an sql table for customised Fiscal calendar..following are the columns of the table
ID_Fiscal_Calendar
Year
month_ID
Week_number
From_date
To_date
way to read xml from a database and then dynamically render out the node name in text and the node value in a checkbox/textboxI want to be able to edit the values and then save it back to the database.I know that you can use serialize the xml to a class object but that only works when you know how the xml looks like.. if im not mistaken?
View 14 Repliesi need vb code how to read and write an image to access data base
how to read it from dataTable object and store it in my application as image object
i am newbie to asp.net.i am trying to make sign up kind of webform where user can submit his image. i have used fileupload control to take image from user.i want to insert that image into a database.how can i achieve this functionality?
i am new to asp.net development.
I am currently working on visual studio 2008 , sql express 2005, i have copied .mdf and .ldf files , after i copied these files and try execute some existing stored procedure but exception is coming like " Failed to update database xxxxxxxxxxxxxxxxx.MDF" because the database is read-only", I dont knw what's wrong with this , i have executed same stored procedure in old .mdf and .ldf database , and its working fine . but in copied .Mdf , not working.
View 10 Repliesi want a lightbox for image that it load images from database.
View 1 RepliesI got this message while trying to read data from a database table 'Tablename'
Invalid object name 'tableName'
[Code]....
i design a webpage in asp.net(C#) and in webpage user can upload an image in database i can read image from database but i can't load image in imagebox control!!!
View 7 Repliesi am trying to read data of from a sql database
the code that im using is as follows:
[Code]....
as you can see, im using table adapters - though when i run the page, it throughs me the following error, which i'm finding hard to understand
for my last project, i had to use the exact code, but at the time, i was using an access DB and now i'm uning sql D|B
the only difference from last time is that instead of using :
using System.Data.OleDb;
Now im using: using System.Data.SqlClient; //sql server