C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Read data from Excel and use it to verify user login using SQL query


Posted Date: 03 Jul 2008      Total Responses: 0

Posted By: eshwar       Member Level: Silver     Points: 1



Hi,
In my project i want to save some user logins and passwords in to an Excel sheet. I am trying to use Excel sheet as database and validate the user login using the SQL query statement.

" select count(*) from [Sheet1$] where user='"+textbox1.text+'"and password='"textbox2.text'";

but i don't get any output,every thing looks fine, no error msgs.

Earlier, after a long search,i was able to get connected to the Excel using the connection string.then later I checked the connection by displaying the Excel file into Data Grid view using the "Select * from [Sheet1$]"

this statement worked well and i got the whole Excel file in Grid view.

My question is
1) Is it possible to query Excel sheet using the " select count(*) from [sheet1$] where user='"+textbox1.text+'"and password='"+textbox2.text+'" statement?

2) Is there any way that i can save the user names and passwords in some other file(any type) and query using the SQL statments.

All i want is to avoid the use of a database in my application beacuse it is a small website. I know how to query SQL or ORACLE but i did not work with Excel earlier.

If any one can help me...that would be great

Thanks in Advance...





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Post Reply
You must Sign In to post a response.
Next : Cookie encryption
Previous : Wizard sidebar
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use