Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get table name from a query

Status
Not open for further replies.

farnaz

Programmer
Nov 4, 2007
4
AE
hi
I have a problem,I want to get table name from sql query in java

I have used : "ResultSetMetaData md = rs.getMetaData();"

but, "md.getTableName(1)" returns an empty string

furthermore,my driver is"com.microsoft.jdbc.sqlserver.SQLServerDriver"

I have used "ResultSetMetaDataOptions=1" in connection string but this

has not worked.

can anyone help me to solve my problem?
 
Better ask in JAVA forum, not here.

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
Microsoft MVP VFP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top