Click here to Skip to main content
15,896,437 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have a question to make, I have a create to file database from an sql server 2005 database (schema), I want to insert (execute the file to create the database) it to an sql server express 2008 sever (win7 and winxp target machines, win7 developer, win xp client), I have tried (in windows cmd starting sqlcmd) to do it without managment studio, have typed sqlcmd.exe but I thing I need the connection string.
ask 1 How do I find the default instance name (my pc win7) I thing theough the file of the database or the services console (contro; panel)
ask 2 The sspi (I have only windows authrntication) is the windows authentication? (I want to use com to create the client(s) server in the target machine(s)
ask 3 in vc# (vc# 2010 express) can I use in local network on...to be continued

Thank you
Kyriakos (aluooss)
Posted

1 solution

To find out the instance,
goto start menu -> programs -> Microsoft Sql Server 2008 -> Configuration Tools -> Sql Server Configuration Manager

In the config manager, select SQL Server Services
& to the right you'll see the instances with the instance name in the bracket

If y'r running on windows authentication, use integrated security = sspi;

You must at least do the client installation in the client machines to access the server

Yes, you can use local network to connect to the server you can use this syntax for the server name is MACHINE_NAME\INSTANCE_NAME
 
Share this answer
 
v2
Comments
Member 3892343 20-Jun-11 13:36pm    
Sorry for the 3.0 it is a pure 5.00'

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900