Why did you copy data manually, when you are configuring replication with
complete info, and someone will be able to assist.
"Vijay" <vijay@infosysusa.com> wrote in message
news:uHJ%23ZgSkFHA.708@TK2MSFTNGP09.phx.gbl...
> Vyas,
>
> Subscribing table has data because i have manually copied the data through
> stored procedure from Publising database.
>
> Thanks,
> Vijay
>
> "Narayana Vyas Kondreddi" <answer_me@hotmail.com> wrote in message
> news:OFnpAcSkFHA.3256@TK2MSFTNGP12.phx.gbl...
>> Can you check and make sure the subscribing table is empty?
>> --
>> HTH,
>> Vyas, MVP (SQL Server)
>> SQL Server Articles and Code Samples @
http://vyaskn.tripod.com/ >>
>>
>> "Vijay" <vijay@infosysusa.com> wrote in message
>> news:OEiWoNSkFHA.2852@TK2MSFTNGP15.phx.gbl...
>> Hi,
>>
>> I am using transaction replication and the identity column is not
> included
>> for replication.
>>
>> After creating the snapshot, i manually copying the data through stored
>> procedure from publishing database to subscription database. Then,if we
> run
>> the distribution agent,i am getting the following error. what will be the
>> process involved in applying the initial snapshot since i have already
>> copied the data. Will SQL server do bcp again? How can i avoid it?
>>
>>
>> Error Message: The process could not bulk copy into table '"hsassbtr"'.
>> Error Details:
>> Numeric value out of range
>> (Source: INFOSYS6 (ODBC); Error number: 22003)
>> --------------------------------------------------------------------------
> --
>> -----------------------------------
>> Numeric value out of range
>> (Source: ODBC SQL Server Driver (ODBC); Error number: 22003)
>> --------------------------------------------------------------------------
> --
>> -----------------------------------
>> Unexpected EOF encountered in BCP data-file
>> (Source: ODBC SQL Server Driver (ODBC); Error number: S1000)
>> --------------------------------------------------------------------------
> --
>> -----------------------------------
>> Violation of PRIMARY KEY constraint 'PKhsassbtr'. Cannot insert duplicate
>> key in object 'hsassbtr'.
>> (Source: INFOSYS6 (Data source); Error number: 2627)
>> --------------------------------------------------------------------------
> --
>> ------------------------------
>>
>> Aritcle is added as follows:
>> ---added all the columns
>> exec sp_articlecolumn @publication =
> 'InfoSys_Point_of_Care_Master_Tables',
>> @article = @table_name,
>> @column = NULL,
>> @operation = N'add',
>> @force_invalidate_snapshot = 1
>>
>> ---dropped identity('DEX_ROW_ID') columns
>> exec sp_articlecolumn @publication =
>> 'InfoSys_Point_of_Care_Master_Tables',
>> @article = @table_name,
>> @column = N'DEX_ROW_ID',
>> @operation = N'drop',
>> @force_invalidate_snapshot = 1
>>
>>
>> I have created the subscription as follows:
>> exec sp_addpullsubscription
>> @publisher = @publisher,
>> @publisher_db = @publisher_db,
>> @publication = N'InfoSys_Point_of_Care_Master_Tables',
>> @independent_agent = N'true',
>> @subscription_type = N'anonymous',
>> @description = N'InfoSys POC Setup Table Publication',
>> @update_mode = N'read only',
>> @immediate_sync = 1
>>
>> exec sp_addpullsubscription_agent
>> @publisher = @publisher,
>> @publisher_db = @publisher_db,
>> @publication = N'InfoSys_Point_of_Care_Master_Tables',
>> @distributor = @distributor,
>> @subscriber_security_mode = @security_mode,
>> @distributor_security_mode = @security_mode,
>> @frequency_type = 8, --Weekly
>> @frequency_interval = 1, --Sunday
>> @frequency_recurrence_factor = 1, --Every Week
>> @frequency_subday = 1, --Once a Day
>> @active_start_time_of_day = 220000, --10 PM
>> @enabled_for_syncmgr = N'false',
>> @use_ftp = N'false',
>> @publication_type = 0,
>> @offloadagent = N'false'
>>
>> Any help?
>>
>>
>>
>> Thanks,
>> Vijay
>>
>>
>>
>>
>
>