Click here to Skip to main content
15,799,398 members
Home / Discussions / Database
   

Database

 
GeneralRe: Date Pin
That's Aragon20-Dec-07 20:24
That's Aragon20-Dec-07 20:24 
GeneralRe: Date Pin
trilokharry21-Dec-07 1:54
trilokharry21-Dec-07 1:54 
GeneralGetting tables from a database Pin
MarkB77720-Dec-07 17:47
MarkB77720-Dec-07 17:47 
GeneralRe: Getting tables from a database Pin
pmarfleet20-Dec-07 22:18
pmarfleet20-Dec-07 22:18 
GeneralRe: Getting tables from a database Pin
Rajkamal_dfine21-Dec-07 20:47
Rajkamal_dfine21-Dec-07 20:47 
NewsSQL Server 2008 virtual training available for ITPros and developers during January Pin
brucedkyle20-Dec-07 14:59
brucedkyle20-Dec-07 14:59 
QuestionCollation Issue When Using PRINT Pin
Tee12320-Dec-07 8:31
Tee12320-Dec-07 8:31 
QuestionParameters to a SQL View? Pin
keniagm20-Dec-07 8:23
keniagm20-Dec-07 8:23 
Hi everybody,

I'm using MSSQL2005 to build a report system and I need to create some views in order to speed up the execution of queries, but I need these views created so that the WHERE clause contains dynamic values, like parameters or so. If I write this as a simple query, it would be as follows:

SELECT some_field FROM my_table WHERE another_field = @my_parameter

of course, the query I want turned into a view is much more complex, but the point here is the WHERE part and the use of a parameter.
So, I'm wondering if there's a way of using the view somehow that I can specify this parameter.
If anyone knows if this can be done and how to do it, please, let me know.
Thanks in advance

Cheers,
Kenia

GeneralRe: Parameters to a SQL View? Pin
pmarfleet20-Dec-07 10:18
pmarfleet20-Dec-07 10:18 
GeneralSQL Query Pin
sandhya1420-Dec-07 2:04
sandhya1420-Dec-07 2:04 
GeneralRe: SQL Query Pin
Ujjaval Modi20-Dec-07 3:00
Ujjaval Modi20-Dec-07 3:00 
GeneralRe: SQL Query Pin
sandhya1423-Dec-07 20:30
sandhya1423-Dec-07 20:30 
GeneralRe: SQL Query Pin
sandhya1423-Dec-07 20:41
sandhya1423-Dec-07 20:41 
GeneralRe: SQL Query Pin
sandhya1423-Dec-07 23:25
sandhya1423-Dec-07 23:25 
Generalinsert query Pin
niki_nilu20-Dec-07 1:08
niki_nilu20-Dec-07 1:08 
GeneralRe: insert query Pin
niki_nilu20-Dec-07 2:46
niki_nilu20-Dec-07 2:46 
General## Temp tables Pin
Bino B20-Dec-07 0:21
Bino B20-Dec-07 0:21 
GeneralRe: ## Temp tables Pin
Pete O'Hanlon20-Dec-07 0:31
subeditorPete O'Hanlon20-Dec-07 0:31 
GeneralMSSQL: Finding out column names for a table Pin
ruanr19-Dec-07 23:02
ruanr19-Dec-07 23:02 
Generalsolved Pin
ruanr19-Dec-07 23:04
ruanr19-Dec-07 23:04 
QuestionHow to manage SQL Log in SQL 2000 Pin
Sasmi_Office19-Dec-07 22:50
Sasmi_Office19-Dec-07 22:50 
QuestionDisplay Data Month Wise Pin
deepaks319-Dec-07 22:18
deepaks319-Dec-07 22:18 
GeneralRe: Display Data Month Wise Pin
ChandraRam19-Dec-07 23:29
ChandraRam19-Dec-07 23:29 
GeneralRe: Display Data Month Wise Pin
deepaks319-Dec-07 23:34
deepaks319-Dec-07 23:34 
GeneralRe: Display Data Month Wise Pin
ChandraRam19-Dec-07 23:36
ChandraRam19-Dec-07 23:36 

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.