Click here to Skip to main content
15,891,529 members
Home / Discussions / Database
   

Database

 
AnswerRe: Please help me with my research problem Pin
David Mujica13-Oct-10 10:44
David Mujica13-Oct-10 10:44 
GeneralRe: Please help me with my research problem Pin
bleedingfingers13-Oct-10 10:55
bleedingfingers13-Oct-10 10:55 
QuestionCouple general questions on sql server 2005+ transactional replication (in continuous mode specifically) Pin
Jon_Boy13-Oct-10 8:58
Jon_Boy13-Oct-10 8:58 
AnswerRe: Couple general questions on sql server 2005+ transactional replication (in continuous mode specifically) Pin
SimulationofSai14-Oct-10 17:05
SimulationofSai14-Oct-10 17:05 
QuestionHow pass dataset query as paramter in SSRS? Pin
andy_p 213-Oct-10 4:39
andy_p 213-Oct-10 4:39 
QuestionOracle development Pin
sinsoush113-Oct-10 2:26
sinsoush113-Oct-10 2:26 
AnswerRe: Oracle development Pin
David Mujica13-Oct-10 3:08
David Mujica13-Oct-10 3:08 
QuestionWhat am I missing here? - (Table Variable) [modified] Pin
Andy_L_J12-Oct-10 21:42
Andy_L_J12-Oct-10 21:42 
Maybe I have been at it too long today, but am I missing something simple here?

DECLARE @SomeLongName VarChar(100) = 'Some long text'
DECLARE @temp TABLE(
    someCode VarChar(10)
    )

DECLARE @Sql VarChar(1000) =
        'INSERT @temp SELECT MAX(SomeCode) ' +
        'FROM MyTable ' +
        'WHERE [Name] LIKE''' + LEFT(REPLACE( @SomeLongName, ' ', ''), 3) + '%'''

EXEC (@Sql)


I get 'must declare the table variable @temp' when I try to run this?

Please put me out of my misery... Shucks | :-\

(edit: Small typo in Sql)
I don't speak Idiot - please talk slowly and clearly

'This space for rent'

Driven to the arms of Heineken by the wife
modified on Wednesday, October 13, 2010 3:52 AM

AnswerRe: What am I missing here? - (Table Variable) Pin
Blue_Boy12-Oct-10 22:11
Blue_Boy12-Oct-10 22:11 
GeneralRe: What am I missing here? - (Table Variable) Pin
Andy_L_J12-Oct-10 22:37
Andy_L_J12-Oct-10 22:37 
GeneralRe: What am I missing here? - (Table Variable) Pin
Blue_Boy12-Oct-10 22:41
Blue_Boy12-Oct-10 22:41 
GeneralRe: What am I missing here? - (Table Variable) Pin
Andy_L_J12-Oct-10 23:23
Andy_L_J12-Oct-10 23:23 
GeneralRe: What am I missing here? - (Table Variable) Pin
Mycroft Holmes13-Oct-10 0:58
professionalMycroft Holmes13-Oct-10 0:58 
AnswerRe: What am I missing here? - (Table Variable) Pin
Corporal Agarn13-Oct-10 9:44
professionalCorporal Agarn13-Oct-10 9:44 
GeneralRe: What am I missing here? - (Table Variable) Pin
Andy_L_J13-Oct-10 9:48
Andy_L_J13-Oct-10 9:48 
AnswerRe: What am I missing here? - (Table Variable) Pin
www.Developerof.NET17-Oct-10 9:17
www.Developerof.NET17-Oct-10 9:17 
Questionsql novice: how to find only duplicates Pin
PJ Arends12-Oct-10 18:55
professionalPJ Arends12-Oct-10 18:55 
AnswerRe: sql novice: how to find only duplicates Pin
Blue_Boy12-Oct-10 20:35
Blue_Boy12-Oct-10 20:35 
GeneralRe: sql novice: how to find only duplicates Pin
PJ Arends13-Oct-10 6:07
professionalPJ Arends13-Oct-10 6:07 
AnswerRe: sql novice: how to find only duplicates Pin
J4amieC12-Oct-10 21:59
J4amieC12-Oct-10 21:59 
GeneralRe: sql novice: how to find only duplicates Pin
PJ Arends13-Oct-10 6:08
professionalPJ Arends13-Oct-10 6:08 
AnswerRe: sql novice: how to find only duplicates Pin
Mycroft Holmes13-Oct-10 1:01
professionalMycroft Holmes13-Oct-10 1:01 
GeneralRe: sql novice: how to find only duplicates Pin
PJ Arends13-Oct-10 6:11
professionalPJ Arends13-Oct-10 6:11 
Questionmodify a table scheme [modified] Pin
genieabdo12-Oct-10 1:15
genieabdo12-Oct-10 1:15 
AnswerRe: modify a table scheme Pin
Blue_Boy12-Oct-10 2:11
Blue_Boy12-Oct-10 2:11 

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.