Click here to Skip to main content
15,888,060 members
Home / Discussions / Database
   

Database

 
GeneralRe: Load data from Excel which has columns in multiple rows Pin
indian14328-Oct-15 8:37
indian14328-Oct-15 8:37 
GeneralRe: Load data from Excel which has columns in multiple rows Pin
Richard Deeming28-Oct-15 10:05
mveRichard Deeming28-Oct-15 10:05 
GeneralRe: Load data from Excel which has columns in multiple rows Pin
indian14328-Oct-15 11:02
indian14328-Oct-15 11:02 
QuestionUse column output, to get new column Pin
Karan_TN27-Oct-15 19:54
Karan_TN27-Oct-15 19:54 
AnswerRe: Use column output, to get new column Pin
Mycroft Holmes27-Oct-15 20:42
professionalMycroft Holmes27-Oct-15 20:42 
Questionselect to Cancatenate sub group values under a group Pin
indian14327-Oct-15 3:07
indian14327-Oct-15 3:07 
QuestionStoring Result Of A Select Statement In A Variable Pin
MadDashCoder23-Oct-15 13:13
MadDashCoder23-Oct-15 13:13 
AnswerRe: Storing Result Of A Select Statement In A Variable Pin
CHill6025-Oct-15 4:52
mveCHill6025-Oct-15 4:52 
What were you expecting? There is no final select in this SP. In fact you can't create the SP because there are errors reported.

If I fix the errors ... commas after @Col1 int and @Col2 int and create TABLE #tempTable the Stored Procedure is created and when I run it, it prints "Val2" - which is what I would expect given what you have in the body of the SP.

Are you actually trying to use dynamic sql? Have a look at this CP article - Building Dynamic SQL In a Stored Procedure[^]

You also need to understand how to return values from Stored Procedures - see MSDN article[^]
AnswerRe: Storing Result Of A Select Statement In A Variable Pin
Anudeep Jaiswal - MCA17-Nov-15 18:22
Anudeep Jaiswal - MCA17-Nov-15 18:22 
Questionhow to create a database if data is given? Pin
Member 1127090223-Oct-15 6:00
Member 1127090223-Oct-15 6:00 
AnswerRe: how to create a database if data is given? Pin
Eddy Vluggen23-Oct-15 6:29
professionalEddy Vluggen23-Oct-15 6:29 
GeneralRe: how to create a database if data is given? Pin
Member 1127090223-Oct-15 7:02
Member 1127090223-Oct-15 7:02 
GeneralRe: how to create a database if data is given? Pin
Eddy Vluggen23-Oct-15 7:17
professionalEddy Vluggen23-Oct-15 7:17 
GeneralRe: how to create a database if data is given? Pin
Member 1127090223-Oct-15 7:28
Member 1127090223-Oct-15 7:28 
GeneralRe: how to create a database if data is given? Pin
Eddy Vluggen23-Oct-15 8:08
professionalEddy Vluggen23-Oct-15 8:08 
GeneralRe: how to create a database if data is given? Pin
Member 1127090223-Oct-15 8:25
Member 1127090223-Oct-15 8:25 
GeneralRe: how to create a database if data is given? Pin
Eddy Vluggen23-Oct-15 8:31
professionalEddy Vluggen23-Oct-15 8:31 
GeneralRe: how to create a database if data is given? Pin
Member 1127090223-Oct-15 8:49
Member 1127090223-Oct-15 8:49 
GeneralRe: how to create a database if data is given? Pin
Eddy Vluggen23-Oct-15 8:55
professionalEddy Vluggen23-Oct-15 8:55 
GeneralRe: how to create a database if data is given? Pin
Member 1127090223-Oct-15 9:02
Member 1127090223-Oct-15 9:02 
GeneralRe: how to create a database if data is given? Pin
Eddy Vluggen23-Oct-15 9:14
professionalEddy Vluggen23-Oct-15 9:14 
GeneralRe: how to create a database if data is given? Pin
Member 1127090223-Oct-15 9:20
Member 1127090223-Oct-15 9:20 
GeneralRe: how to create a database if data is given? Pin
Eddy Vluggen23-Oct-15 9:48
professionalEddy Vluggen23-Oct-15 9:48 
GeneralRe: how to create a database if data is given? Pin
Member 1127090223-Oct-15 18:47
Member 1127090223-Oct-15 18:47 
GeneralRe: how to create a database if data is given? Pin
Eddy Vluggen23-Oct-15 23:22
professionalEddy Vluggen23-Oct-15 23:22 

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.