Click here to Skip to main content
15,913,279 members
Home / Discussions / Database
   

Database

 
AnswerRe: Need Help Pin
Christian Graus30-Nov-07 23:49
protectorChristian Graus30-Nov-07 23:49 
AnswerRe: Need Help Pin
pmarfleet1-Dec-07 2:09
pmarfleet1-Dec-07 2:09 
GeneralRe: Need Help Pin
Paul Conrad23-Dec-07 8:31
professionalPaul Conrad23-Dec-07 8:31 
QuestionHow to filter Dataset Pin
divyesh143230-Nov-07 22:40
divyesh143230-Nov-07 22:40 
GeneralRe: How to filter Dataset Pin
Tobias Schoenig1-Jan-08 21:12
Tobias Schoenig1-Jan-08 21:12 
Questionhow used execute in function [modified] Pin
Rami Said Abd Alhalim30-Nov-07 21:35
Rami Said Abd Alhalim30-Nov-07 21:35 
GeneralRe: how used execute in function Pin
Paul Conrad8-Dec-07 5:21
professionalPaul Conrad8-Dec-07 5:21 
QuestionHow to Pass column names to query dynamically Pin
veereshIndia30-Nov-07 19:46
veereshIndia30-Nov-07 19:46 
Hi all,

Here iam getting RoleId and iam storing it in a variable @str2.Now
i want to use this variable data as a column name in third query i.e
@str3.Please help me on this.


alter procedure LogProc
(
@UserId varchar(500),
@Password varchar(500)
)
as
Begin
declare @str1 varchar(500)
declare @str2 varchar(500)
declare @str3 varchar(500)
select @str1=AstId from UserTable where UserId=@UserId and Password = @Password;
select @str2=RoleID from AstProf where AstId =@str1 ;
select @str3=MenuId from MenuTable where @str2='y';
select @str3;
End


exec LogProc 'veeresh','veeresh'

i want to join this group

AnswerRe: How to Pass column names to query dynamically Pin
IMQ30-Nov-07 20:45
IMQ30-Nov-07 20:45 
GeneralRe: How to Pass column names to query dynamically Pin
veereshIndia30-Nov-07 21:06
veereshIndia30-Nov-07 21:06 
GeneralRe: How to Pass column names to query dynamically Pin
IMQ30-Nov-07 21:16
IMQ30-Nov-07 21:16 
GeneralRe: How to Pass column names to query dynamically Pin
veereshIndia30-Nov-07 21:26
veereshIndia30-Nov-07 21:26 
GeneralRe: How to Pass column names to query dynamically Pin
IMQ30-Nov-07 21:38
IMQ30-Nov-07 21:38 
GeneralRe: How to Pass column names to query dynamically Pin
veereshIndia30-Nov-07 22:05
veereshIndia30-Nov-07 22:05 
GeneralRe: How to Pass column names to query dynamically Pin
Rami Said Abd Alhalim30-Nov-07 22:16
Rami Said Abd Alhalim30-Nov-07 22:16 
GeneralRe: How to Pass column names to query dynamically Pin
IMQ30-Nov-07 22:19
IMQ30-Nov-07 22:19 
GeneralRe: How to Pass column names to query dynamically Pin
Rami Said Abd Alhalim30-Nov-07 22:27
Rami Said Abd Alhalim30-Nov-07 22:27 
GeneralRe: How to Pass column names to query dynamically Pin
IMQ30-Nov-07 22:37
IMQ30-Nov-07 22:37 
GeneralRe: How to Pass column names to query dynamically Pin
Rami Said Abd Alhalim30-Nov-07 22:51
Rami Said Abd Alhalim30-Nov-07 22:51 
GeneralRe: How to Pass column names to query dynamically Pin
IMQ30-Nov-07 23:12
IMQ30-Nov-07 23:12 
GeneralRe: How to Pass column names to query dynamically Pin
Rami Said Abd Alhalim30-Nov-07 23:19
Rami Said Abd Alhalim30-Nov-07 23:19 
QuestionNatural and Surrogate Keys Pin
Brady Kelly30-Nov-07 19:01
Brady Kelly30-Nov-07 19:01 
QuestionHow to store result of a query in a variable Pin
veereshIndia30-Nov-07 18:29
veereshIndia30-Nov-07 18:29 
AnswerRe: How to store result of a query in a variable Pin
IMQ30-Nov-07 19:07
IMQ30-Nov-07 19:07 
GeneralRe: How to store result of a query in a variable Pin
veereshIndia30-Nov-07 19:17
veereshIndia30-Nov-07 19:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.