Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB .Net and SQL Server 1

Status
Not open for further replies.

kristinac

Programmer
Jul 18, 2003
98
US
Would this be the wrong forum to ask about connecting to a SQL Server database through a VB .net application? A web application to be specific. I have found a couple ways to write connection strings, however I need access to the stored procedures. Can you only access the stored procedures through a windows ap or service?

Any insight would be appreciated...
 
Both windows and web apps use ADO.net to access databases. Both of these can talk to SQL Server using stored proceedures. Detail out what you are trying to do and I will show you the code you need.


DotNetDoc
M.C.S.D.
---------------------------------------

Tell me and I forget. Show me and I remember. Involve me and I understand.
- Anonymous Chinese Proverb
-----------------------------------
If you can't explain it simply, you don't understand it well enough.
- A. Einstein
 
Thanks. To make a long story short, I have this half-done windows ap someone else did in which you can access the stored procedures that are in the SQL database. I see a routine he wrote like this:

Dim Procedure As String = "pUser_LoadBy_UserName"
Dim Names(0) As String
Dim Values(0) As Object
Names(0) = "@UserName" : Values(0) = UserName

Dim ds As DataSet = Me.GetDataSet(Procedure, Names, Values)

I have to rewrite the program in a web application. I can barely figure out how to connect to the SQL Server database, let alone how to access the stored procedures.
I've never worked with SQL Server before...and the way this other guy wrote the windows ap doesn't make a lot of sense.

Is this something I can do with a web ap?
 
If you would like help with "His" code you would need to post more so I can see what he is doing. Otherwise you can start by reading a few articles to catch you up.

Here are a couple of artices that might help you :




DotNetDoc
M.C.S.D.
---------------------------------------

Tell me and I forget. Show me and I remember. Involve me and I understand.
- Anonymous Chinese Proverb
-----------------------------------
If you can't explain it simply, you don't understand it well enough.
- A. Einstein
 
DotNetDoc - Thank you so much! These articles are exactly what I needed. I think I can figure out how to do what I need through this information. Thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top