Click here to Skip to main content
15,897,718 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Reporting Services Problem (SSRS) Pin
arnoldpinto844-Jun-08 20:41
arnoldpinto844-Jun-08 20:41 
QuestionError when connect to sql express database Pin
Mekong River3-Jun-08 18:58
Mekong River3-Jun-08 18:58 
AnswerRe: Error when connect to sql express database Pin
Ashfield3-Jun-08 21:03
Ashfield3-Jun-08 21:03 
AnswerRe: Error when connect to sql express database Pin
Rutvik Dave5-Jun-08 11:28
professionalRutvik Dave5-Jun-08 11:28 
QuestionSelect command Pin
mrkeivan3-Jun-08 8:42
mrkeivan3-Jun-08 8:42 
AnswerRe: Select command Pin
Mark J. Miller3-Jun-08 9:38
Mark J. Miller3-Jun-08 9:38 
QuestionView must begin with SELECT? Pin
boxubi3-Jun-08 4:26
boxubi3-Jun-08 4:26 
AnswerRe: View must begin with SELECT? Pin
Mark J. Miller3-Jun-08 8:11
Mark J. Miller3-Jun-08 8:11 
Variables are procedureal constructs. A view is for creating alternative views of your data only. Not sure what it is you want to do, but once your view is defined to you can "pass a variable" to it from your stored procedure or batch statement like this:

SELECT col1 + @myVariable AS Col1Alias
FROM myView
WHERE col2 = @myVariable2

Just think of a view as a derived table instead of a script or code file and that should help. The kind of stuff you're describing can be done w/in a stored procedure, that's what you want to use in most cases.


AnswerRe: View must begin with SELECT? Pin
SomeGuyThatIsMe3-Jun-08 8:13
SomeGuyThatIsMe3-Jun-08 8:13 
AnswerRe: View must begin with SELECT? Pin
Mycroft Holmes4-Jun-08 18:18
professionalMycroft Holmes4-Jun-08 18:18 
QuestionTable Variable result set ??? Pin
tthellebuyck3-Jun-08 3:52
tthellebuyck3-Jun-08 3:52 
AnswerRe: Table Variable result set ??? Pin
dan!sh 3-Jun-08 4:08
professional dan!sh 3-Jun-08 4:08 
AnswerRe: Table Variable result set ??? Pin
John Ad3-Jun-08 4:12
John Ad3-Jun-08 4:12 
Questioncalling procedure within trigger Pin
Mr.Kode2-Jun-08 20:44
Mr.Kode2-Jun-08 20:44 
AnswerRe: calling procedure within trigger Pin
Ashfield2-Jun-08 21:43
Ashfield2-Jun-08 21:43 
GeneralRe: calling procedure within trigger Pin
Mr.Kode2-Jun-08 22:42
Mr.Kode2-Jun-08 22:42 
GeneralRe: calling procedure within trigger Pin
Ashfield3-Jun-08 1:23
Ashfield3-Jun-08 1:23 
AnswerRe: calling procedure within trigger Pin
Member 33013254-Jun-08 10:00
Member 33013254-Jun-08 10:00 
QuestionProblem on applying MySql.Data.dll into Visual Studio 2003 for VB.NET Pin
drexler_kk2-Jun-08 16:31
drexler_kk2-Jun-08 16:31 
AnswerCross post Pin
dan!sh 2-Jun-08 20:31
professional dan!sh 2-Jun-08 20:31 
Questionsql editor Pin
xybroxymoron2-Jun-08 16:12
xybroxymoron2-Jun-08 16:12 
QuestionSelect Query problem... Pin
tthellebuyck2-Jun-08 3:04
tthellebuyck2-Jun-08 3:04 
AnswerRe: Select Query problem... Pin
Peter Josefsson Sweden2-Jun-08 4:54
Peter Josefsson Sweden2-Jun-08 4:54 
AnswerRe: Select Query problem... Pin
Om Prakash Pant12-Apr-11 23:03
Om Prakash Pant12-Apr-11 23:03 
QuestionProblem with the Following Cursor Pin
Vimalsoft(Pty) Ltd2-Jun-08 2:30
professionalVimalsoft(Pty) Ltd2-Jun-08 2:30 

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.