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
StefanPosted Apr 17, 2009, 3:42 PM
Vijaya KadiyalaPosted Apr 17, 2009, 1:15 PM
Hi
Can you post the code to review!
Thanks -- Vijaya Kadiyala
www.DotNetVJ.com
mahesh kumarPosted Apr 17, 2009, 5:19 AM
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");
ArtemPosted Apr 17, 2009, 4:43 AM
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?..
StefanPosted Apr 16, 2009, 3:59 PM
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.
Niradhip ChakrabortyPosted Apr 16, 2009, 6:36 AM