Hi, everyone this is my first post here and let me tell you my problem
I have a C# application, i have SQLServer 2005 installed on my computer
my database is there and the program works fine
the problem I'm facing is that i need to make an installer for this application to install it on a client that doesnt have sql server on it
i can make the installer just fine
the problem is on my code, to test my code on my computer i have to put the sql string like this
String rutaconexion = "Data Source=.\\SQLEXPRESS; initial catalog = labtol ;Integrated Security=True";
and this works fine in my test computer
after i make the installer the problem i face is that how to attach the database, where the database needs to be placed, or what is the code to do so
I was using this to attach the database
String rutaconexion = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\Labtol.mdf; initial catalog = labtol ;Integrated Security=True";
Labtol is the name of my database
Any help would be appreciated. Thanks