![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
mat (mat (AT) notarealdotcom (DOT) adr) writes: I see. Well, I simply installed sql server express, didn't change the port from whatever it installed as. -S Server02,1433 -S Server02,1434 -S Server02 And if you run -S 123.123.123.123,1433 on the local server? (Replace 123.123.123.123 with the real IP-address.) You said that in SQL Config Manager, that all IP address are active. But did you also verify that all are enabled? On the client pc, I get this: |
#22
| |||
| |||
|
|
On the client pc, I get this: Sqlcmd: Error: Microsoft SQL Native Client : Unable to complete login process due to delay in opening server connection. |
|
If I run the same command on the server that is not accessible, using either it's ip address...it's confusing. The command does not 'take'; instead of executing when I hit return, it shows 1 as if I am supposed to enter another line? |
#23
| |||
| |||
|
|
mat (mat (AT) notarealdotcom (DOT) adr) writes: On the client pc, I get this: Sqlcmd: Error: Microsoft SQL Native Client : Unable to complete login process due to delay in opening server connection. OK. Try adding -U someuser -P somepwd If you now get "Login failed for login 'someuser'" connectivity is working. The above could be a problem with using Windows authentication in a workgroup. If I run the same command on the server that is not accessible, using either it's ip address...it's confusing. The command does not 'take'; instead of executing when I hit return, it shows 1 as if I am supposed to enter another line? That is the command prompt, at which you can enter SQL commands. That is, you connected successfully. |
#24
| ||||
| ||||
|
|
You're right, this is a workgroup not a domain. I normally use sql server auth for that reason. |
|
I do get get "Login failed for login 'someuser'" when I use a credential local to the workstation; or a cred local to the server; or a known valid sql server account on the server instance. |
|
Example: sqlcmd -S 12.12.12.150,1433 -U mywinlogin -P mypswd |
|
Re the other issue, I know the command prompt. The question is why after I type in a line like above and hit return, sometimes it executes the command, and sometimes it offers a new line for more commands? I have noticed that if I make a mistake with the command it's likely to offer a new line; but often the command it ok and it still won't execute, adds the line. Why does it do that and how would I force it to execute? |
![]() |
| Thread Tools | |
| Display Modes | |
| |