Converting a log file in C#

Tags:
C# .NET
log file
SQL Database
SQL Log Files
how to convert a log file in text format into sql database

Software/Hardware used:
c#.net

Answer Wiki

Thanks. We'll let you know when a new response is added.

I’m not clear on what you are asking, but I’ll do my best here.

If you are trying to convert the SQL Server Transaction Log into a text file, you don’t. There are a couple of applications you can use to view the data in the log file.

If you have a text file you want to import into a SQL Server table, you do this using DTS (for SQL 7 or 2000), SSIS (for SQL 2005 and higher), BCP (all versions) or the BULK INSERT T/SQL statement (all versions).

Each of these techniques has a different process. I’d recommend that you use the BULK INSERT statement if possible as it is the easiest way to put the import in the middle of other processes. BCP and BULK INSERT are fully documented in books online.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following