Author |
Topic |
Pinto
Aged Yak Warrior
590 Posts |
Posted - 2006-11-24 : 11:11:31
|
Is it possible to have a design grid in SQL server like the one you have in Access when you create a query ? |
|
snSQL
Master Smack Fu Yak Hacker
1837 Posts |
Posted - 2006-11-24 : 11:58:34
|
Modify the table or edit the data in the table in Enterprise Manager (2000) or SQL Server Management Studio (2005) (right click the table to get those options). |
|
|
Pinto
Aged Yak Warrior
590 Posts |
Posted - 2006-11-27 : 08:52:36
|
Thanks very much. Is there any way you can save the query you build and run byt referring to the name (as in Access) or would the nearest way be to put the SQL statement it builds into a stored procedure. |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-11-27 : 09:00:41
|
Copy the T-SQL and create a new view or SP.Peter LarssonHelsingborg, Sweden |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-11-27 : 10:00:00
|
Note that in Access to execute the saved query, you should useSelect columns from StoredQuerybut in sql server if you use stored procedure you need to use using EXEC spname list_of_parametersMadhivananFailing to plan is Planning to fail |
|
|
Pinto
Aged Yak Warrior
590 Posts |
Posted - 2006-11-27 : 10:37:10
|
Thanks to you all.So if I pass 3 parameters to my sp would my sp look like this belowCreateProcedure MySPAS@FirstName@Surname@DateOfBirthExec MySPName @Firstname, @Surname, @DateOfBirthGOIn my asp.net I'd call this to fill my dataset ? |
|
|
snSQL
Master Smack Fu Yak Hacker
1837 Posts |
Posted - 2006-11-27 : 11:17:58
|
You must declare the parameters before the AS keyword, and specify datatypes, something like thisCreate Procedure MySP@FirstName varchar(50),@Surname varchar(50),@DateOfBirth datetimeAS... |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-11-28 : 04:32:32
|
Read about Stored procedures in sql server help fileMadhivananFailing to plan is Planning to fail |
|
|
Pinto
Aged Yak Warrior
590 Posts |
Posted - 2006-11-28 : 06:09:24
|
Do you meanin Enterprise manager ? If not where do I find sql server help file ?TIA |
|
|
madhuotp
Yak Posting Veteran
78 Posts |
|
Pinto
Aged Yak Warrior
590 Posts |
Posted - 2006-11-28 : 09:55:39
|
Many thanks madhuotp |
|
|
|