...

View Full Version : Connecting C#.net app to sql



CodeWalker
08-19-2008, 01:04 PM
Hi there im pretty new at this, i was wondering if there is anyone out there who could help me. I need to write a simple app to with dataset to connect to a sql server. Everyone tries to show me how to do it with wizards but i wanna know how to do it the right way with coding. Can anyone point me in the right direction please!!!

oracleguy
08-19-2008, 04:36 PM
Are you referring to Microsoft SQL Server?

There are objects for connecting to it in the System.Data.Microsoft.SqlServer.Server namespace.

CodeWalker
08-20-2008, 01:01 PM
Hi yes it is microsoft sql server.
I know about the namspaces what im looking for is code showing me how to connect to a sql database via code. Getting a connection and all the datasets and stuff. I know this is a weird question probably, I have no idead how to connect like this to a database. Would you be ableto give me a sample of code so i can see how it is done, or maybe redirect me to some website where i can read more about it? Thanks

Brandoe85
08-20-2008, 02:56 PM
MSDN example:
http://msdn.microsoft.com/en-us/library/bh8kx08z(VS.71).aspx



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum