dbTalk Databases Forums  

error description: Invalid pointer

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss error description: Invalid pointer in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mahak
 
Posts: n/a

Default error description: Invalid pointer - 12-09-2003 , 08:36 AM






Hi all,
Have a table, say tab1(any schema, few rows)

and I want to execute this query through DTS

select * into tab2 from tab1
select * from tab2 and store the result in a text file.


I am using following object.

Microsoft oledb provider for SQL server
Transform data task
text file destination.

when i execute , gives error
error description: Invalid pointer

any help is appreciated.



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: error description: Invalid pointer - 12-09-2003 , 02:06 PM






How are you trying to do this.

I would do it like this

1. An ExecuteSQL task against the SQL Server connection for your SELECT
INTO statement
2. Datapump task from tab2 --> tab1

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mahak" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi all,
Have a table, say tab1(any schema, few rows)

and I want to execute this query through DTS

select * into tab2 from tab1
select * from tab2 and store the result in a text file.


I am using following object.

Microsoft oledb provider for SQL server
Transform data task
text file destination.

when i execute , gives error
error description: Invalid pointer

any help is appreciated.





Reply With Quote
  #3  
Old   
mahak
 
Posts: n/a

Default Re: error description: Invalid pointer - 12-09-2003 , 03:37 PM



I am doing the same what u have told but the only problem
is my tab2 has to be a temp table or table variable.
but if I use permanent table (tab2) instead it works,
problem is I have to use temp. table.

Quote:
-----Original Message-----
How are you trying to do this.

I would do it like this

1. An ExecuteSQL task against the SQL Server connection
for your SELECT
INTO statement
2. Datapump task from tab2 --> tab1

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mahak" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:084f01c3be61$d609af90$a001280a (AT) phx (DOT) gbl...
Hi all,
Have a table, say tab1(any schema, few rows)

and I want to execute this query through DTS

select * into tab2 from tab1
select * from tab2 and store the result in a text file.


I am using following object.

Microsoft oledb provider for SQL server
Transform data task
text file destination.

when i execute , gives error
error description: Invalid pointer

any help is appreciated.




.


Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: error description: Invalid pointer - 12-10-2003 , 05:14 AM



A table variable will NOT work

use ## tables instead of # tables

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mahak" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am doing the same what u have told but the only problem
is my tab2 has to be a temp table or table variable.
but if I use permanent table (tab2) instead it works,
problem is I have to use temp. table.

-----Original Message-----
How are you trying to do this.

I would do it like this

1. An ExecuteSQL task against the SQL Server connection
for your SELECT
INTO statement
2. Datapump task from tab2 --> tab1

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mahak" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:084f01c3be61$d609af90$a001280a (AT) phx (DOT) gbl...
Hi all,
Have a table, say tab1(any schema, few rows)

and I want to execute this query through DTS

select * into tab2 from tab1
select * from tab2 and store the result in a text file.


I am using following object.

Microsoft oledb provider for SQL server
Transform data task
text file destination.

when i execute , gives error
error description: Invalid pointer

any help is appreciated.




.




Reply With Quote
  #5  
Old   
mahak
 
Posts: n/a

Default Re: error description: Invalid pointer - 12-10-2003 , 04:30 PM



even ## table does not work, seems we need to set some SQL
paramaterers. any Idea?


Quote:
-----Original Message-----
A table variable will NOT work

use ## tables instead of # tables

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mahak" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:031401c3be9c$a4c3d920$a401280a (AT) phx (DOT) gbl...
I am doing the same what u have told but the only
problem
is my tab2 has to be a temp table or table variable.
but if I use permanent table (tab2) instead it works,
problem is I have to use temp. table.

-----Original Message-----
How are you trying to do this.

I would do it like this

1. An ExecuteSQL task against the SQL Server
connection
for your SELECT
INTO statement
2. Datapump task from tab2 --> tab1

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mahak" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:084f01c3be61$d609af90$a001280a (AT) phx (DOT) gbl...
Hi all,
Have a table, say tab1(any schema, few rows)

and I want to execute this query through DTS

select * into tab2 from tab1
select * from tab2 and store the result in a text
file.


I am using following object.

Microsoft oledb provider for SQL server
Transform data task
text file destination.

when i execute , gives error
error description: Invalid pointer

any help is appreciated.




.



.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.