L
Liu Feng
Hi,
I want connect SQLServer in InfoPath, but prompt connecting is timeout,
"Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding"
The same code can work in a WinForm application.
code:
string connstr = "SERVER=\"LIUFENG2\";DATABASE=\"A2K\";INTEGRATED
SECURITY=SSPI;POOLING=TRUE;";
SqlConnection sql = new SqlConnection(connstr);
sql.Open();
liufeng2 and junwei be in a domain, the code will got the different results
of running in a different user name.
1. user name(alias): liufeng2, WinForm, can work.
2. user name(alias): junwei, WinForm, can work.
3. user name(alias): liufeng2, InfoPath, can work.
4. user name(alias): junwei, InfoPath, can't work.
How do I resolve 4th? (Please don't change the connection string)
--
Thanks,
LiuFeng
MSN Messenger: (e-mail address removed)
I want connect SQLServer in InfoPath, but prompt connecting is timeout,
"Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding"
The same code can work in a WinForm application.
code:
string connstr = "SERVER=\"LIUFENG2\";DATABASE=\"A2K\";INTEGRATED
SECURITY=SSPI;POOLING=TRUE;";
SqlConnection sql = new SqlConnection(connstr);
sql.Open();
liufeng2 and junwei be in a domain, the code will got the different results
of running in a different user name.
1. user name(alias): liufeng2, WinForm, can work.
2. user name(alias): junwei, WinForm, can work.
3. user name(alias): liufeng2, InfoPath, can work.
4. user name(alias): junwei, InfoPath, can't work.
How do I resolve 4th? (Please don't change the connection string)
--
Thanks,
LiuFeng
MSN Messenger: (e-mail address removed)