Hello everyone! I have a problem. I can't create (no, I can create) but I can't connect to SQL DataBase from VS C#..
I'm using Visual Studio C# 2008 Express ... so... please, describe me how to create and connect to this Base.... I'm in really big trouble... Please..
thanks...
Loading

Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Apr 16, 2009, 2:36 AM EDT
Stefan138 reputationPosted Apr 16, 2009, 11:59 AM EDT
ADO.NET takes a little work. Linq-to-SQL is easier, faster, and the syntax is more natural.
If you need any examples, please post back.
Artem48 reputationPosted Apr 17, 2009, 12:43 AM EDT
So, and if possible, little "how to" create a new base in C# (and connect to it)... I just think, maybe I doing smth. wrong?..
mahesh kumar4 reputationPosted Apr 17, 2009, 1:19 AM EDT
to connect to SQL database
Sql connection con=new Sqlconnection("user id= ursidname;password=password;database=databasename");
if u want to connect without username or password
con=("database=name;Integrited Security=true");
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Apr 17, 2009, 9:15 AM EDT
Hi
Can you post the code to review!
Thanks -- Vijaya Kadiyala
www.DotNetVJ.com
Stefan138 reputationPosted Apr 17, 2009, 11:42 AM EDT