Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. SHeidenreich

    SQL Temp. Tables Problem with Parameters

    A code concept of retreiving data would be nice... but i inherited that application and have to migrate it to SQL asap. So the temp. tables looks like a good First-Step Soulution to 1:1 migrate the statements. We have to maintain the old code, so it helps the others, if the code looks similair...
  2. SHeidenreich

    SQL Temp. Tables Problem with Parameters

    begin declare @test as int set @test= 1000 select * into #curtest from adresse where adr_nid = @test end begin select * from #curtest end Working
  3. SHeidenreich

    SQL Temp. Tables Problem with Parameters

    The variable should be in scope. I tested it with public for the parameter variable. Also i get an input prompt if not in scope. This is what i dont understand. My problem occurs only if u use the temp. tables. nid = 1000 Sqlexec(nsqlhandle,"select * from adresse where adr_nid = ?nid) && return...
  4. SHeidenreich

    SQL Temp. Tables Problem with Parameters

    Update, i just read the posts from OlafDoschke I tested within the same query like this: nid = 1000 csql="select * into #curtest from adresse where adr_nid = ?nid; select * from #curtest" SQlexec(nsqlhandle, csql) This does work! But wy the #curtest is dropped. The handle is still the same...
  5. SHeidenreich

    SQL Temp. Tables Problem with Parameters

    nresult=SQLEXEC(nhandle,"select * into #curtemp from adresses where adr_nid = ?nid") After this, with the same handle: nresult=SQLEXEC(nhandle,"select * from #curtemp) : return -1 Error is: #curtemp unknown. This problem only occurs if i use parameters, not if i use...
  6. SHeidenreich

    SQL Temp. Tables Problem with Parameters

    My problem is to translate the actual in-Code-Querys to SQL-Querys, when local cursors AND DBF-Tables are accessed in the same query e.g.in FoxPro: select * from adress where adr_lint = .t. into cursor curAdrInt select * from jobs inner join curAdrInt on job_nadrid= job_nid into cursor...
  7. SHeidenreich

    SQL Temp. Tables Problem with Parameters

    Hi. We´re migrating our application from the FoxPro-Database to Microsoft SQL. To translate the SQL-Statements with Cursor-DBF-Joins we want to use the temporary tables of T-SQL: nresult=SQLEXEC(nhandle,"select * into #curtemp from adresses") This is working fine. We can access #curtemp as a...

Part and Inventory Search

Back
Top