modglin
Programmer
- Apr 10, 2001
- 105
I am trying to run a dos command to populate a database in 2005. When I installed SQL2005 I took all the default prompts. I later changed the connections to Allow Remote Connections to this server.
The command that I am supposed to run is
Apparently I do not know the instancename for 2005. When I run the command
I get an error message:
HResult 0xFFFFFFFF, Level 16, State1
SQL Network Interfaces: Error Locating Server/Instance specified [xFFFFFFFF]. Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to the SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.. sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
Any help will be greatly appreciated!
The command that I am supposed to run is
Code:
sqlcmd -S .\%INSTANCENAME% -E -d %DBNAME% -i "%PATH%\db_create_script.sql" -b
Code:
sqlcmd -S .\%local% -E -d %BCM% -i "%c:\BCMfiles%\db_create_script.sql" -b
HResult 0xFFFFFFFF, Level 16, State1
SQL Network Interfaces: Error Locating Server/Instance specified [xFFFFFFFF]. Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to the SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.. sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
Any help will be greatly appreciated!