Click here to Skip to main content
15,896,606 members
Home / Discussions / Database
   

Database

 
QuestionRe: Problem on sql server 2005 SP2 :Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum Pin
Andy_L_J23-Feb-09 20:59
Andy_L_J23-Feb-09 20:59 
AnswerRe: Problem on sql server 2005 SP2 :Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum Pin
Rami Said Abd Alhalim23-Feb-09 21:49
Rami Said Abd Alhalim23-Feb-09 21:49 
QuestionI want your idear and solving !!! Pin
Golden Jing23-Feb-09 17:58
Golden Jing23-Feb-09 17:58 
AnswerRe: I want your idear and solving !!! Pin
Wendelius23-Feb-09 18:11
mentorWendelius23-Feb-09 18:11 
GeneralRe: I want your idear and solving !!! Pin
Golden Jing23-Feb-09 21:44
Golden Jing23-Feb-09 21:44 
QuestionCannot use temporary table twice Pin
MarcelloTurnbull23-Feb-09 7:37
MarcelloTurnbull23-Feb-09 7:37 
AnswerRe: Cannot use temporary table twice Pin
Ennis Ray Lynch, Jr.23-Feb-09 8:08
Ennis Ray Lynch, Jr.23-Feb-09 8:08 
AnswerRe: Cannot use temporary table twice Pin
Wendelius23-Feb-09 8:40
mentorWendelius23-Feb-09 8:40 
You seem to use a local temporary table. When such table is created it exists until you either:
- disconnect from the database
- drop the table using DROP TABLE command

So now you create the table in your SELECT ... INTO statement and if you don't drop it somewhere later, you encounter that error when you run the code block the second time.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Cannot use temporary table twice Pin
MarcelloTurnbull23-Feb-09 8:46
MarcelloTurnbull23-Feb-09 8:46 
GeneralRe: Cannot use temporary table twice Pin
Wendelius23-Feb-09 8:49
mentorWendelius23-Feb-09 8:49 
GeneralRe: Cannot use temporary table twice Pin
MarcelloTurnbull23-Feb-09 9:08
MarcelloTurnbull23-Feb-09 9:08 
GeneralRe: Cannot use temporary table twice Pin
Wendelius23-Feb-09 9:14
mentorWendelius23-Feb-09 9:14 
GeneralRe: Cannot use temporary table twice Pin
MarcelloTurnbull23-Feb-09 9:29
MarcelloTurnbull23-Feb-09 9:29 
GeneralRe: Cannot use temporary table twice Pin
Wendelius23-Feb-09 9:47
mentorWendelius23-Feb-09 9:47 
AnswerRe: Cannot use temporary table twice Pin
MarcelloTurnbull25-Feb-09 2:31
MarcelloTurnbull25-Feb-09 2:31 
GeneralRe: Cannot use temporary table twice Pin
Wendelius25-Feb-09 4:42
mentorWendelius25-Feb-09 4:42 
QuestionSQL 2000 Code/Update Deployment Pin
cjb11023-Feb-09 2:23
cjb11023-Feb-09 2:23 
AnswerRe: SQL 2000 Code/Update Deployment Pin
Wendelius23-Feb-09 8:45
mentorWendelius23-Feb-09 8:45 
QuestionSQL Server 2000: Login failed for user ' ' [modified] Pin
Nada Adel23-Feb-09 1:07
Nada Adel23-Feb-09 1:07 
AnswerRe: SQL Server 2000: Login failed for user ' ' Pin
Rob Philpott23-Feb-09 1:37
Rob Philpott23-Feb-09 1:37 
GeneralRe: SQL Server 2000: Login failed for user ' ' Pin
Nada Adel23-Feb-09 2:33
Nada Adel23-Feb-09 2:33 
GeneralRe: SQL Server 2000: Login failed for user ' ' Pin
Rob Philpott23-Feb-09 2:57
Rob Philpott23-Feb-09 2:57 
GeneralRe: SQL Server 2000: Login failed for user ' ' Pin
Nada Adel23-Feb-09 3:08
Nada Adel23-Feb-09 3:08 
QuestionParameter Multivalue Pin
Hakmeh Mohannad23-Feb-09 1:01
Hakmeh Mohannad23-Feb-09 1:01 
AnswerRe: Parameter Multivalue Pin
Wendelius23-Feb-09 8:50
mentorWendelius23-Feb-09 8:50 

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.