Solved

How do we bcp using row_number()

Posted on 2011-03-07
2
318 Views
Last Modified: 2012-05-11
Since I have a table which has no unique key / PK, what is the best way for me to do bcp to just grab record which not being collected, I have  column in the table call date_time which has getdate() values, so usually our data has around 50 millions to copy for each month, so I'm thinking to run this bcp daily can I us row_number() here ?
0
Comment
Question by:motioneye
2 Comments
 
LVL 4

Accepted Solution

by:
Amgad_Consulting_Co earned 500 total points
Comment Utility
Hi,

it will not be a good idea, can't you just add am extra column as a PK (bigint, autonumber) just to use to identify a row nothing more.
0
 

Author Closing Comment

by:motioneye
Comment Utility
I have find out another solution which using date and time function in sql server
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now