Jump to content
Sign in to follow this  
mus3na

Variable Inside Sql Adapter

Recommended Posts

aku nak tanya kepada sesiapa yg tahu. dalam sql adapter fill command, biasanya kita dah set nama table yang nak di loadkan kedalam dataset. contoh command ni seperti dibawah.

New OleDb.OleDbDataAdapter("Select * from Table", DBConnectionName)

so sekarang aku tak nak set Table daripada string kepada satu variable, jadi aku boleh tukar nama table yg nak di load kedalam dataset yg sama on the fly.

masalah sekarang aku tak tau boleh ke benda2 cam ni dibuat ngan vb.net 2008. sekiranya boleh minta tunjukkan sample command.

thanks in advance

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...