Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Insertion of the data...

Author  Topic 

msvdm
Starting Member

17 Posts

Posted - 2011-07-26 : 12:49:34
Hello

I am facing a problem of loading the data
When I do the select statement, the query says it is successful but I couldnt see the data. I am not doing the insert...just the select.

Thanks in advance

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-07-26 : 12:57:21
might be you're using select...into syntax which will dump results onto a table. would be interested to know the statement you're executing.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

msvdm
Starting Member

17 Posts

Posted - 2011-07-26 : 15:33:09
I figured out the problem...it was not taking one of the condition which i have given ...but i am faced with another problem where I want to change my script so that i can insert new unique rows which are duplicated in source tables
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-07-29 : 01:55:02
ROW_NUMBER() might help you on eliminating duplicates. Look into BOL for details

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -