hmmm.. i'm abit confused with your question so i'll break it down
1. How to make a database in wizard using VS 2005 <, Are you using SQL Server Express? or the SQL Server 2005 Standard
2. How to make a database using hard-code << are you reffering to using SQL Scripts(CREATE DATABASE) or using SQL-SMO?
3. What is the file that i made form the sql server is it test.mdf(example)? is this the database file? << Yes this is actually the database file.
it seems i can't get the connectionstring to use?
what is it? cause i know the string only in access!
<< are you sure you have the proper connection strings? connecting to a standard sql server 2005 and sql server express is different. you can read more about there from this: http://connectionstrings.com/?carrier=sqlserver2005
An error occured while establishing a connection to the server.When connecting to SQL Server 2005 , this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.(provider:Named Pipes Provider,error:40-Could not open a connection to sql server.
<< have you configured SQL Server yet? SQL Server 2005 by defaut doesnt allow remote connections. You need set this feature manually. A KB about this issue can be found here: http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277