Identify the server name n database...[RESOLVED, THANX TO KULROM!!!]
hi...
i need sum1 to guide me on tis prob..
i hv created a program n its usin sql server2000 as backend...
n wen i was creating it , i was testing it wit t payroll database in t localhost in ma pc..
now i wanna noe wen i deployed it n let installed in other pcs..then wen it runs does it wil look for t database name, payroll in local host for tat pc's sql server n failed t system..
coz inside ma prog i hv define few times tat...
Public strConn AsString = "data source=localhost; initial catalog=Payroll;" _
& "user ID=sa;password="
and
Public sConnString AsString = "Provider=SQLOLEDB; data source=localhost; initial catalog=Payroll;" _
& "user ID=sa;password="
so ,
say for example if im installing ma prog in pc named H5 n ma pc is H1..
sope in t pc H5, ill definately hv to register new servergroup from t pc H1 so tat can retrieve for payroll database..but, after wen i installed t prog in h5 n try run it then i beleive it wil look after for payroll database from t localhost for pc h5 rite since ive define such in t code..how can i do such tat it can autoly look for databse named payroll from pc h1 n not from t specific pc's localhost...?
plz assist me..
hi...
i need sum1 to guide me on tis prob..
i hv created a program n its usin sql server2000 as backend...
n wen i was creating it , i was testing it wit t payroll database in t localhost in ma pc..
now i wanna noe wen i deployed it n let installed in other pcs..then wen it runs does it wil look for t database name, payroll in local host for tat pc's sql server n failed t system..
coz inside ma prog i hv define few times tat...
Public strConn AsString = "data source=localhost; initial catalog=Payroll;" _
& "user ID=sa;password="
and
Public sConnString AsString = "Provider=SQLOLEDB; data source=localhost; initial catalog=Payroll;" _
& "user ID=sa;password="
so ,
say for example if im installing ma prog in pc named H5 n ma pc is H1..
sope in t pc H5, ill definately hv to register new servergroup from t pc H1 so tat can retrieve for payroll database..but, after wen i installed t prog in h5 n try run it then i beleive it wil look after for payroll database from t localhost for pc h5 rite since ive define such in t code..how can i do such tat it can autoly look for databse named payroll from pc h1 n not from t specific pc's localhost...?
plz assist me..
Last edited: