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

Database

 
Questionmdb file is not opening Pin
gayatrilaxmi10-Apr-08 22:51
gayatrilaxmi10-Apr-08 22:51 
GeneralRe: mdb file is not opening Pin
John_Adams10-Apr-08 23:25
John_Adams10-Apr-08 23:25 
GeneralRe: mdb file is not opening Pin
gayatrilaxmi11-Apr-08 0:31
gayatrilaxmi11-Apr-08 0:31 
QuestionHow to Get Data from Microsoft Excel Sheets in C# for Generating REPORTS in SSRS 2005.. Pin
Aswanth10-Apr-08 22:09
Aswanth10-Apr-08 22:09 
GeneralSelect into Problem Pin
Vimalsoft(Pty) Ltd10-Apr-08 20:55
professionalVimalsoft(Pty) Ltd10-Apr-08 20:55 
AnswerRe: Select into Problem Pin
Ashfield10-Apr-08 21:00
Ashfield10-Apr-08 21:00 
AnswerRe: Select into Problem Pin
Vimalsoft(Pty) Ltd10-Apr-08 21:07
professionalVimalsoft(Pty) Ltd10-Apr-08 21:07 
GeneralRe: Select into Problem Pin
Ashfield10-Apr-08 21:22
Ashfield10-Apr-08 21:22 
Thats OK. By the way, you should not do it this way as it locks the system tables in the database for the duration of the query. That prevents any other queries using them and could have a big perforamnce hit.

I would do it like this

SELECT DISTINCT(SS.FUNCTION_KEY),P.FUNC_KEY,P.PROPERTY_ID,SS.LIS_KEY as Geoss_LIS_KEY,P.LIS_KEY as Property_Lis_Key,SS.FLOOR_AREA,P.ACTUAL_EXTENT<br />
Into Final_Area_GEOSS FROM SDE.PROPERTY P INNER JOIN Scheme_Area_GEOSS SS ON<br />
P.LIS_KEY = SS.LIS_KEY AND SS.FUNCTION_KEY = SUBSTRING(P.FUNC_KEY,1,5)+'0'+substring(P.FUNC_KEY,6,3)<br />
<big>WHERE 1 = 2 </big>


which creates an empty table (almost) instantly, and then

<big>Insert Into Final_Area_GEOSS </big><br />
SELECT DISTINCT(SS.FUNCTION_KEY),P.FUNC_KEY,P.PROPERTY_ID,SS.LIS_KEY as Geoss_LIS_KEY,P.LIS_KEY as Property_Lis_Key,SS.FLOOR_AREA,P.ACTUAL_EXTENT<br />
FROM SDE.PROPERTY P INNER JOIN Scheme_Area_GEOSS SS ON<br />
P.LIS_KEY = SS.LIS_KEY AND SS.FUNCTION_KEY = SUBSTRING(P.FUNC_KEY,1,5)+'0'+substring(P.FUNC_KEY,6,3)<br />
WHERE P.FUNC_KEY LIKE 'GEOSS%' 


to populate it.

Bob
Ashfield Consultants Ltd

AnswerRe: Select into Problem Pin
Vimalsoft(Pty) Ltd10-Apr-08 22:27
professionalVimalsoft(Pty) Ltd10-Apr-08 22:27 
GeneralRe: Select into Problem Pin
swjam15-Apr-08 18:30
swjam15-Apr-08 18:30 
GeneralRe: Select into Problem Pin
Ashfield15-Apr-08 20:29
Ashfield15-Apr-08 20:29 
GeneralRe: Select into Problem Pin
swjam16-Apr-08 18:07
swjam16-Apr-08 18:07 
QuestionExtract columns from two independent table in SQL Server 2005? Pin
salon10-Apr-08 20:53
salon10-Apr-08 20:53 
AnswerRe: Extract columns from two independent table in SQL Server 2005? Pin
Ashfield10-Apr-08 21:16
Ashfield10-Apr-08 21:16 
AnswerRe: Extract columns from two independent table in SQL Server 2005? Pin
Syed Mehroz Alam11-Apr-08 3:20
Syed Mehroz Alam11-Apr-08 3:20 
Generalneed a suggestion about variable for a column Pin
Xmen Real 10-Apr-08 17:16
professional Xmen Real 10-Apr-08 17:16 
GeneralRe: need a suggestion about variable for a column Pin
Christian Graus10-Apr-08 20:43
protectorChristian Graus10-Apr-08 20:43 
GeneralRe: need a suggestion about variable for a column Pin
SimulationofSai10-Apr-08 21:02
SimulationofSai10-Apr-08 21:02 
GeneralRe: need a suggestion about variable for a column Pin
Xmen Real 10-Apr-08 22:56
professional Xmen Real 10-Apr-08 22:56 
GeneralDatabase updating Pin
Nada Adel10-Apr-08 7:12
Nada Adel10-Apr-08 7:12 
GeneralRe: Database updating Pin
Tim Carmichael10-Apr-08 8:43
Tim Carmichael10-Apr-08 8:43 
GeneralRe: Database updating Pin
Mycroft Holmes10-Apr-08 20:32
professionalMycroft Holmes10-Apr-08 20:32 
QuestionRestore Database.... Pin
salil_k_singh10-Apr-08 5:54
salil_k_singh10-Apr-08 5:54 
GeneralRe: Restore Database.... Pin
Tim Carmichael10-Apr-08 8:45
Tim Carmichael10-Apr-08 8:45 
GeneralRe: Restore Database.... Pin
salil_k_singh11-Apr-08 5:39
salil_k_singh11-Apr-08 5:39 

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.