Hi all,
I had used a sqlquery in sqlcommand for retrieving the tablename that is entered by the user thru a textbox.
Using that tablename.It should display the records in that tablename.
But one error is coming.
Code is as
cmd = New SqlCommand("sel ect mobileno from '" & file & "'", con)
d = cmd.ExecuteRead er()
File is the tablename that is entered by the user.
The controls goes to the catch statement after executereader is called.
Error is Incorrect syntax near file
Does anyone knows any solution. Can we give like this.
And also How to download the record from the given table in access or notepad
Thank u in Advance.
Regards
I had used a sqlquery in sqlcommand for retrieving the tablename that is entered by the user thru a textbox.
Using that tablename.It should display the records in that tablename.
But one error is coming.
Code is as
cmd = New SqlCommand("sel ect mobileno from '" & file & "'", con)
d = cmd.ExecuteRead er()
File is the tablename that is entered by the user.
The controls goes to the catch statement after executereader is called.
Error is Incorrect syntax near file
Does anyone knows any solution. Can we give like this.
And also How to download the record from the given table in access or notepad
Thank u in Advance.
Regards
Comment