Click here to Skip to main content
16,018,664 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am create databse emp.mdf in ms sql server 2008 r2.then i want to use this database in my stand alone exe .how can i use
Posted
Updated 5-May-15 21:28pm
v3

Go to Data tab in the menu -> Add Data Source-> it Will ask For Which database You Want to choose -> click next -> Select Dataset -> it will ask for Connection String -> Click on new connection->On Clicking A wizard will Open ->Choose datasource as SQl Server -> then choose server name Type . if its on you local machine -> choose authetication type ->Then at the bottom see the database name shows up select from that .click next-> it will prompt You to Which table to choose -> Choose the table-> click on finish ->

if you want to see your table open the server explorer from by clicking on view from menu bar -> server explorer ->

let me know if it helped
 
Share this answer
 

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