Within my DLL created via VB6 code I am connecting to an SQL Database and I use a connect string like this....
"userid=sa;password=xxx;data source=yyy; initial catalogue=zzz"
where yyy=Name of SQL Server
yyy=Name of database
How can I access the name of the machine from VB so I dont have to 'hard code' the Name of the SQL Server. Of course I cant hold this within the SQL Server database.
I prefer not to have the overhead of ODBC.
Even better, is there a way of accessing run-time application variables without having to supply them through another IO from external file. I open the connection so many times it would become an unnecessary overhead.
Thanks
"userid=sa;password=xxx;data source=yyy; initial catalogue=zzz"
where yyy=Name of SQL Server
yyy=Name of database
How can I access the name of the machine from VB so I dont have to 'hard code' the Name of the SQL Server. Of course I cant hold this within the SQL Server database.
I prefer not to have the overhead of ODBC.
Even better, is there a way of accessing run-time application variables without having to supply them through another IO from external file. I open the connection so many times it would become an unnecessary overhead.
Thanks