|
-
Jan 12th, 2004, 08:22 AM
#1
Thread Starter
New Member
passing from select statement into a variable
I'm a newbie at programming for asp.net. My question i think is a simple one.
I need to pass the result of a SQL select statement into a variable.
var1 = "Select Company_name from Employee where ID = 615"
will this work? Do i need to run everything separately? any help is greatly appreciated.
Thanks!
-
Jan 12th, 2004, 09:28 AM
#2
Fanatic Member
i'd do a search on google for ado.net tutorials if i were you.
-
Jan 12th, 2004, 09:51 AM
#3
PowerPoster
Look into the Command object, Connection object, the Command's Execute scalar function to do what you want.
-
Jan 12th, 2004, 09:52 AM
#4
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|