Click here to Skip to main content
15,905,683 members
Home / Discussions / Database
   

Database

 
AnswerRe: Fetching rows in cursors Pin
Joe26-Nov-07 20:57
Joe26-Nov-07 20:57 
GeneralRe: Fetching rows in cursors Pin
mgr_2k726-Nov-07 21:58
mgr_2k726-Nov-07 21:58 
GeneralRe: Fetching rows in cursors Pin
Pete O'Hanlon26-Nov-07 22:39
mvePete O'Hanlon26-Nov-07 22:39 
GeneralRe: Fetching rows in cursors Pin
andyharman26-Nov-07 23:29
professionalandyharman26-Nov-07 23:29 
GeneralRe: Fetching rows in cursors Pin
Vasudevan Deepak Kumar27-Nov-07 2:43
Vasudevan Deepak Kumar27-Nov-07 2:43 
GeneralRe: Fetching rows in cursors Pin
mgr_2k727-Nov-07 19:13
mgr_2k727-Nov-07 19:13 
QuestionError in Insert statement Pin
prithaa26-Nov-07 19:08
prithaa26-Nov-07 19:08 
AnswerRe: Error in Insert statement Pin
N a v a n e e t h26-Nov-07 19:47
N a v a n e e t h26-Nov-07 19:47 
prithaa wrote:
What must be the problem?


Problem is you are not assigning the variable value. See this and rewrite it
CREATE PROCEDURE tryproc 
AS
DECLARE @first INT
SET @first = ( SELECT SUM(t) AS first 
             FROM demand 
             WHERE product = 'LPG' 
             AND LOCATION = 'Mumbai' )
CREATE TABLE abc (demandsum INT)
INSERT INTO abc (demandsum) VALUES (@first)
Hope it helps

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

My Website | Ask smart questions

AnswerRe: Error in Insert statement Pin
Devan Nadar26-Nov-07 23:54
Devan Nadar26-Nov-07 23:54 
QuestionHow to connect to the MS Access database? Pin
mddev26-Nov-07 17:18
mddev26-Nov-07 17:18 
AnswerRe: How to connect to the MS Access database? Pin
Kishore.P26-Nov-07 20:58
Kishore.P26-Nov-07 20:58 
GeneralRe: How to connect to the MS Access database? Pin
mddev27-Nov-07 0:12
mddev27-Nov-07 0:12 
GeneralRe: How to connect to the MS Access database? Pin
Vasudevan Deepak Kumar27-Nov-07 0:45
Vasudevan Deepak Kumar27-Nov-07 0:45 
QuestionPlease help on SQL Query Pin
Pankaj - Joshi26-Nov-07 16:49
Pankaj - Joshi26-Nov-07 16:49 
AnswerRe: Please help on SQL Query Pin
Kishore.P26-Nov-07 21:00
Kishore.P26-Nov-07 21:00 
GeneralRe: Please help on SQL Query Pin
Pankaj - Joshi26-Nov-07 23:48
Pankaj - Joshi26-Nov-07 23:48 
GeneralRe: Please help on SQL Query Pin
Devan Nadar27-Nov-07 0:10
Devan Nadar27-Nov-07 0:10 
GeneralRe: Please help on SQL Query Pin
Pankaj - Joshi27-Nov-07 15:56
Pankaj - Joshi27-Nov-07 15:56 
QuestionDatabase Mirroring (unsure of terminology)...? Pin
martin_hughes26-Nov-07 10:05
martin_hughes26-Nov-07 10:05 
AnswerRe: Database Mirroring (unsure of terminology)...? Pin
Pete O'Hanlon26-Nov-07 10:28
mvePete O'Hanlon26-Nov-07 10:28 
GeneralRe: Database Mirroring (unsure of terminology)...? Pin
martin_hughes26-Nov-07 10:38
martin_hughes26-Nov-07 10:38 
QuestionWhat's wrong with this SQL query? Pin
Jordanwb26-Nov-07 9:24
Jordanwb26-Nov-07 9:24 
AnswerRe: What's wrong with this SQL query? Pin
Pete O'Hanlon26-Nov-07 9:29
mvePete O'Hanlon26-Nov-07 9:29 
GeneralRe: What's wrong with this SQL query? Pin
Jordanwb26-Nov-07 9:31
Jordanwb26-Nov-07 9:31 
JokeRe: What's wrong with this SQL query? Pin
Pete O'Hanlon26-Nov-07 10:56
mvePete O'Hanlon26-Nov-07 10:56 

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.