|
|
|
Бета 2 и [SqlProcedure] GetCommand()
|
|||
|---|---|---|---|
|
#18+
Все пишут,что в SqlContext есть GetCommand() У меня такого нет, где они спрятали этот метод? Как получить коннекшн? [SqlProcedure] public static int SingleValue() { SqlCommand cmd = SqlContext.GetCommand(); ////////////!!!!!!! Метода нет!? cmd.CommandText = "select Sum((UnitPrice*Quantity)-Discount) From [Order Details] As TotalSales"; SqlDataReader dr = cmd.ExecuteReader(); dr.Read(); int intTotalSales = (int)dr["TotalSales"]; return intTotalSales; } http://www.stephenforte.net/owDasBlog/permalink.aspx?guid=798a05db-cfe0-400f-9303-85a2121bfd45 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.09.2005, 12:29 |
|
||
|
|

start [/forum/topic.php?fid=35&fpage=41&tid=1553777]: |
0ms |
get settings: |
10ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
57ms |
get topic data: |
13ms |
get forum data: |
4ms |
get page messages: |
41ms |
get tp. blocked users: |
2ms |
| others: | 233ms |
| total: | 388ms |

| 0 / 0 |
