vb dot net query

  • Thread starter Thread starter premtolani
  • Start date Start date
P

premtolani

hi,
I want to connect vb dot net to sql server but i want to use the
application path. I dont want to change the path every time in the
code. Please let me know how to do it in visual basic dot net.


regards,
Prem
 
Prem,

This newsgroup is for questions about the Compact Framework, so I'm assuming
you mean SQL Server Compact rather than SQL Server. You can get the app path
from
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)
 
Back
Top