Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
doran_doran
Posting Yak Master
179 Posts |
Posted - 2009-11-03 : 15:13:19
|
| IS creating view with "Select * from Salestable" or "Select Id, SalesDate, SalePersonID, Total from SalesTable" be same?orDECLARE @str varchar(max)SELECT @str = COALESCE(@str + ', ', '')+COLUMN_NAME FROM INFORMATION_SCHEMA.ColumnsWHERE TABLE_NAME = 'astronautcpddata'SELECT @strThe reason I am asking is that I will be creating web services and will be using views, sp, etc. I know view does not take parameter therefore the last suggestion would not work. Please suggest.Thanks |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
doran_doran
Posting Yak Master
179 Posts |
Posted - 2009-11-03 : 15:34:54
|
| Brett, I think your previous post ([url]http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=135294[/url]) is sufficient for now. Thanks. |
 |
|
|
|
|
|