Transactional Log Error! Urgent

Mar 27, 2008

The full backup is taken 10:00 pm , transactional log backup is taken through sqlserver hourly basis.
when i restore the full back and later restore the transactional log backup taken at 11:00 pm , i get a error

RESTORE DATABASE GTSS FROM DISK='I:GTSS_HR_TRAN_BKGTSS_20080326_230000.TRN' WITH NORECOVERY

Msg 4305, Level 16, State 1, Line 1
The log in this backup set begins at LSN 1364959000205344700001, which is too recent to apply to the database. An earlier log backup that includes LSN 1364959000204485100001 can be restored.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.

what is this lsn number how can we relate the lsn number with trasactional log backup with the name.





View 6 Replies


ADVERTISEMENT

Urgent Help Needed Regarding Transactional Replication2005

Oct 22, 2007

urgent help needed regarding transactional replication2005

I did set up transactional replication on sql 2005 and also in article properties have selected to replicate foreign keys,default constraints and indexes. I checked the schema properties at publisher and subscriber and found that on one table a foreign key is not replicated which has an on delete cascade. I am not sure why is not replicating that constraint.The other table has a foreign key which is also not replicated.

I would appreciate all your help.
thanks,
Satya

View 3 Replies View Related

Error 627: Transactional Repl. SQL 7.0

Nov 11, 1999

The problem case for transactional replication in MS SQL 7.0 is as follows:
Server A (intended publisher)
Server B (distributor, intended subscriber)

When configuring replication, the distributor (B) can be configured easily; the publisher (A) that uses B as its distributor will not allow for a publication to be created using either the Enterprise Manager wizards or TSQL commands. The error '627: Cannot use SAVE TRANSACTION within a distributed transaction' occurs when creating the publication.

Any suggestions; I need some help ASAP.

Thanks

View 3 Replies View Related

Transactional Replication - Error 207

Jan 19, 2003

Hi Guys,

I have a small problem with the transactional replication when I run the initial snapshot and distributing some of the stored procedures. For eg., Say if the stored procedure has the following statements:

---------------------------------------
create procedure abc
as
declare @paytype varchar(50)
set @paytype='check'

insert into acct select cusname,cusacctno,@paytype from cuspay
---------------------------------------

I get the following error:
for statement:

set @paytype='check'
--------------------
Invalid column name 'check'.
(Source: ServerSQL1 (Data source); Error number: 207)

I tried changing to double quotes. even tried adding article using query analyzer without using EM

exec sp_addarticle @publication = N'ReplicationSrc', @article = N'abc', @source_owner = N'dbo', @source_object = N'abc', @destination_table = N'abc', @type = N'proc schema only', @creation_script = null, @description = null, @pre_creation_cmd = N'drop', @schema_option = 0x0000000000000001, @status = 16
GO

Still I get the same error. The server has SQL server 2000 SP2 running with remote distributor and pull subscription.

Am I missing anything.


Please help.

Thanks,
Anu

View 2 Replies View Related

Transactional Replication Error

May 5, 2006

I am running sql 2000 sp3.
A pull subscription failed with the following.

errormsg: Cannot drop the table 'table_name' because it is being used for replication.

errordetail: Cannot drop the table 'table_name' because it is being used for replication.
(Source: SQLTEST2 (Data source); Error number: 3724)

This error started after a field was dropped and a new field added to one of the articles in the publication - changes were done through Enterprise Manager.

Why does this error come up. The Default Table Article Properties dialog box>>>Snapshot tab has the option "If a table with the same name as the destination table exists at the Subscriber>>>DROP the existing table and recreate it.

So if this is an option in replication for a Subscriber how come the error message says it cannot drop the table.

Any insight appreciated.

View 2 Replies View Related

Transactional Replication Error

Jun 5, 2006

Hello,
I am a newbie to replication, I recently came up with this error.
Cannot use DROP VIEW with 'dbo.vw_UndeliverableEmail' because
'dbo.vw_UndeliverableEmail' is a table.Use DROP TABLE.
I tried running these two queries to make sure.
SELECT * from syscomments where id = object_id('vw_UndeliverableEmail')
sp_help vw_UndeliverableEmail
I am sure that it is a view.
I am not sure how to proceed since the object referred is indeed a view rather than a table as the Replication Error tries to point out.
The details :
SQL Server 2005 / Transactional Replication/ Pull Subscription Any thoughts/helps/suggestions are most welcome.
Thanks

View 4 Replies View Related

Transactional LOB Replication Error

Feb 8, 2006

We are trying to replicate a varchar(max) column and receive the following error when trying to insert a record on the publisher:



Length of LOB data (75679) to be replicated exceeds configured maximum 65536.



The distribution agent is set up to use the oledb streaming profile so I can't figure out where this setting is.

View 6 Replies View Related

Oracle To SQL Server Transactional Replication Error

Jun 6, 2007

Hi,



I'd appreciate any help i can get here. I'm working with an MS SQL Server 2005 SP2 db on a Windows 2003 OS. I set up replication from an Oracle 10g instance a few months ago, and everything was working until i installed SP2 for SQL Server.



I get the following error:

2007-06-06 16:06:22.488 Status: 4096, code: 20024, text: 'Initializing'.

2007-06-06 16:06:22.488 The agent is running. Use Replication Monitor to view the details of this agent session.

2007-06-06 16:06:23.082 Status: 0, code: 1008, text: 'ORA-01008: not all variables bound
'.

2007-06-06 16:06:23.082 ORA-01008: not all variables bound

2007-06-06 16:06:23.082 Status: 0, code: 22037, text: 'Heterogeneous Logreader encountered an error in call to LoadReplCmds when processing state 'PROCESSSYNCDONE'.'.



I can get snapshot replication to work just fine, but transactional replication throws up the error above.



Anyone with any ideas on how i can proceed?



Thanks in advance!



Regards,

Rama.

View 7 Replies View Related

Updatable Transactional Replication, Queue Reader Error

Jul 3, 2007

I have just started getting the following error from the queue reader but I can't see why.



The Queue Reader Agent has encountered the error ''Row handle is invalid.'' when connecting to ''Database'' on ''ServerName''. Ensure that the publication and subscription are defined properly and that both servers are running.



Does anybody know what it means / how I can fix the problem?



Thanks

View 11 Replies View Related

Cannot Drop The Table Transactional Replication Error 3724

Mar 14, 2006

This thread is no longer active. I moved issue to a new, cleaner thread named: How can I get Transactional Republishing to work?

--------------------------------------------------------------------------------------------------------------------

I've tried for more than a week to figure this one out, but have not found a solution. I'm missing some critical information that perhaps someone can share. I'm desperate and embarassed that this has kept me stuck for so long. Thanks for any assistance.

In my simplist scenario, I'm transactionally replicating a single table from database A to database B and then from database B to database C. All databases are on the same XP server (in this simplist version of the problem). This is SQL 2005 RTM. Publication A to B replicates fine. Publication B to C can't even get the snapshot to work because I get the error:

Command attempted:
drop Table "dbo"."MyReplTable"

(Transaction sequence number: 0x00004174000000E100A300000000, Command ID: 41)

Error messages:
Cannot drop the table 'dbo.MyReplTable' because it is being used for replication. (Source: MSSQLServer, Error number: 3724) Get help: http://help/3724  (fyi - there is no help here)

 

I have a simple example script where I've renamed real names to fake names, that is exactly what I run to simulate the problem. Obviously the script is wrong, but where? I used the wizard to create the whole script (I know that is my first mistake ;-) ). After I start the snapshot jobs, I get the error above.

I presume that the sp_addarticle option @pre_creation_cmd = N'drop' is part of the problem. I don't have row filters. Also, I want to be able to replicate schema modifications when necessary (like add a column or drop a column)

Perhaps the sp_addpublication @repl_freq = N'continuous' option in the AtoB publication prevents the BtoC publication from ever getting a chance to do anything, if it never lets go of the table.

If it helps, here is my script with hopefully helpfully renamed objects. My real world scenario has many articles, but this is a simple version - 2 publications each having 1 article (the same table).

 

/****** Scripting replication configuration for server MyInstance. Script Date: 3/14/2006 11:16:58 AM ******/
/****** Please Note: For security reasons, all password parameters were scripted with either NULL or an empty string. ******/

/****** Installing the server MyInstance as a Distributor. Script Date: 3/14/2006 11:16:58 AM ******/
use master
exec sp_adddistributor @distributor = N'MyInstance', @password = N''
GO
exec sp_adddistributiondb @database = N'distribution', @data_folder = N'C:Program FilesMicrosoft SQL ServerMSSQL.2MSSQLData', @data_file_size = 4, @log_folder = N'C:Program FilesMicrosoft SQL ServerMSSQL.2MSSQLData', @log_file_size = 2, @min_distretention = 0, @max_distretention = 72, @history_retention = 48, @security_mode = 1
GO

use [distribution]
if (not exists (select * from sysobjects where name = 'UIProperties' and type = 'U '))
 create table UIProperties(id int)
if (exists (select * from ::fn_listextendedproperty('SnapshotFolder', 'user', 'dbo', 'table', 'UIProperties', null, null)))
 EXEC sp_updateextendedproperty N'SnapshotFolder', N'C:ThisFolderMY2005DBWorking
epldata', 'user', dbo, 'table', 'UIProperties'
else
 EXEC sp_addextendedproperty N'SnapshotFolder', 'C:ThisFolderMY2005DBWorking
epldata', 'user', dbo, 'table', 'UIProperties'
GO

exec sp_adddistpublisher @publisher = N'MyInstance', @distribution_db = N'distribution', @security_mode = 1, @working_directory = N'C:ThisFolderMY2005DBWorking
epldata', @trusted = N'false', @thirdparty_flag = 0, @publisher_type = N'MSSQLSERVER'
GO

use [DatabaseA]
exec sp_replicationdboption @dbname = N'DatabaseA', @optname = N'publish', @value = N'true'
GO
-- Adding the transactional publication
use [DatabaseA]
exec sp_addpublication @publication = N'PubAtoB', @description = N'Transactional publication of database ''DatabaseA'' from Publisher ''MyInstance''.', @sync_method = N'concurrent', @retention = 0, @allow_push = N'true', @allow_pull = N'true', @allow_anonymous = N'true', @enabled_for_internet = N'false', @snapshot_in_defaultfolder = N'true', @compress_snapshot = N'false', @ftp_port = 21, @ftp_login = N'anonymous', @allow_subscription_copy = N'false', @add_to_active_directory = N'false', @repl_freq = N'continuous', @status = N'active', @independent_agent = N'true', @immediate_sync = N'true', @allow_sync_tran = N'false', @autogen_sync_procs = N'false', @allow_queued_tran = N'false', @allow_dts = N'false', @replicate_ddl = 1, @allow_initialize_from_backup = N'false', @enabled_for_p2p = N'false', @enabled_for_het_sub = N'false'
GO


exec sp_addpublication_snapshot @publication = N'PubAtoB', @frequency_type = 1, @frequency_interval = 0, @frequency_relative_interval = 0, @frequency_recurrence_factor = 0, @frequency_subday = 0, @frequency_subday_interval = 0, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = null, @job_password = null, @publisher_security_mode = 1


use [DatabaseA]
exec sp_addarticle @publication = N'PubAtoB', @article = N'MyReplTable', @source_owner = N'dbo', @source_object = N'MyReplTable', @type = N'logbased', @description = null, @creation_script = null, @pre_creation_cmd = N'drop', @schema_option = 0x000000000803509F, @identityrangemanagementoption = N'manual', @destination_table = N'MyReplTable', @destination_owner = N'dbo', @vertical_partition = N'false', @ins_cmd = N'CALL sp_MSins_dboMyReplTable', @del_cmd = N'CALL sp_MSdel_dboMyReplTable', @upd_cmd = N'SCALL sp_MSupd_dboMyReplTable'
GO

 

 

-----------------BEGIN: Script to be run at Publisher 'MyInstance'-----------------
use [DatabaseA]
exec sp_addsubscription @publication = N'PubAtoB', @subscriber = N'MyInstance', @destination_db = N'DatabaseB', @subscription_type = N'Push', @sync_type = N'automatic', @article = N'all', @update_mode = N'read only', @subscriber_type = 0
exec sp_addpushsubscription_agent @publication = N'PubAtoB', @subscriber = N'MyInstance', @subscriber_db = N'DatabaseB', @job_login = null, @job_password = null, @subscriber_security_mode = 1, @frequency_type = 64, @frequency_interval = 0, @frequency_relative_interval = 0, @frequency_recurrence_factor = 0, @frequency_subday = 0, @frequency_subday_interval = 0, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 20060314, @active_end_date = 99991231, @enabled_for_syncmgr = N'False', @dts_package_location = N'Distributor'
GO
-----------------END: Script to be run at Publisher 'MyInstance'-----------------


use [DatabaseB]
exec sp_replicationdboption @dbname = N'DatabaseB', @optname = N'publish', @value = N'true'
GO
-- Adding the transactional publication
use [DatabaseB]
exec sp_addpublication @publication = N'PubBtoC', @description = N'Transactional publication of database ''DatabaseB'' from Publisher ''MyInstance''.', @sync_method = N'concurrent', @retention = 0, @allow_push = N'true', @allow_pull = N'true', @allow_anonymous = N'true', @enabled_for_internet = N'false', @snapshot_in_defaultfolder = N'true', @compress_snapshot = N'false', @ftp_port = 21, @ftp_login = N'anonymous', @allow_subscription_copy = N'false', @add_to_active_directory = N'false', @repl_freq = N'continuous', @status = N'active', @independent_agent = N'true', @immediate_sync = N'true', @allow_sync_tran = N'false', @autogen_sync_procs = N'false', @allow_queued_tran = N'false', @allow_dts = N'false', @replicate_ddl = 1, @allow_initialize_from_backup = N'false', @enabled_for_p2p = N'false', @enabled_for_het_sub = N'false'
GO


exec sp_addpublication_snapshot @publication = N'PubBtoC', @frequency_type = 1, @frequency_interval = 0, @frequency_relative_interval = 0, @frequency_recurrence_factor = 0, @frequency_subday = 0, @frequency_subday_interval = 0, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = null, @job_password = null, @publisher_security_mode = 1


use [DatabaseB]
exec sp_addarticle @publication = N'PubBtoC', @article = N'MyReplTable', @source_owner = N'dbo', @source_object = N'MyReplTable', @type = N'logbased', @description = null, @creation_script = null, @pre_creation_cmd = N'drop', @schema_option = 0x000000000803509F, @identityrangemanagementoption = N'manual', @destination_table = N'MyReplTable', @destination_owner = N'dbo', @vertical_partition = N'false', @ins_cmd = N'CALL sp_MSins_dboMyReplTable', @del_cmd = N'CALL sp_MSdel_dboMyReplTable', @upd_cmd = N'SCALL sp_MSupd_dboMyReplTable'
GO

 

 

-----------------BEGIN: Script to be run at Publisher 'MyInstance'-----------------
use [DatabaseB]
exec sp_addsubscription @publication = N'PubBtoC', @subscriber = N'MyInstance', @destination_db = N'DatabaseC', @subscription_type = N'Push', @sync_type = N'automatic', @article = N'all', @update_mode = N'read only', @subscriber_type = 0
exec sp_addpushsubscription_agent @publication = N'PubBtoC', @subscriber = N'MyInstance', @subscriber_db = N'DatabaseC', @job_login = null, @job_password = null, @subscriber_security_mode = 1, @frequency_type = 64, @frequency_interval = 0, @frequency_relative_interval = 0, @frequency_recurrence_factor = 0, @frequency_subday = 0, @frequency_subday_interval = 0, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 20060314, @active_end_date = 99991231, @enabled_for_syncmgr = N'False', @dts_package_location = N'Distributor'
GO
-----------------END: Script to be run at Publisher 'MyInstance'-----------------


 

View 7 Replies View Related

SQL 2000 Transactional Replication-skiperrors Parameter With Error Logging

Mar 15, 2007

I have used skiperrors parameter for 2601,2627 and 20598 errors in my Transaction replication setup. When transactions with above error are encountered, its skipped but I€™m not getting sql command that is skipped in MSrepl_errors table. Since SQL server 2000 is not saving transaction sequence number in the MSrepl_errors we are not getting the command, which have the errors.


Is there any way to track the commands those are skipped in transactional replication.

View 11 Replies View Related

Urgent : DB-Library Error 10007: General SQL Server Error: Check Messages From The SQL

Jul 20, 2005

DB-Library Error 10007: General SQL Server error: Check messages fromthe SQLServer.CREATE PROCEDURE [dbo].[spu_Import_Export_Image](@srvr varchar(50),@db varchar(50),@usr varchar(15),@pwd varchar(50),@tbl varchar(50),@col varchar(50),@mod varchar(1),@imgpath1 varchar(1000),@pk varchar(50))ASBEGINdeclare @path varchar(50)declare @whr varchar(200)declare @fil varchar(100)declare @cmd varchar(1000)declare @imgpath varchar(800)declare @ext varchar(5)--declare @pk varchar(50)declare @KeyValue varchar(8000)declare @image varchar(50)--declare @imgpath1 varchar(1000)declare @imgpath2 varchar(1000)declare @sellist varchar(2000)set @path = 'c: extCopy.exe'select @sellist = 'DECLARE curKey CURSOR FOR SELECT ' + @pk +' FROM '+ @tbl + ' ORDER BY ' + @pkexec (@sellist)OPEN curKeyFETCH NEXT FROM curKey INTO @KeyValueWHILE (@@fetch_status = 0)BEGINset @whr = '"where '+ @pk +' = "' + @KeyValueset @fil = @imgpath1 + '' + @KeyValue --+ @extset @cmd = @path + ' /S ' + @srvr + ' /D ' + @db + ' /U ' + @usr+ ' /P ' + @pwd+ ' /T ' + @tbl + ' /C ' + @col + ' /W ' + @whr + '/F ' + @fil+ ' /' + @modexec Master..xp_cmdShell @cmdFETCH NEXT FROM curKey INTO @KeyValueENDCLOSE curKeyDEALLOCATE curKeyENDGOAbove srcipt runs fine with image data type in one table but when irun for some other table it gives me Error MessageTEXTCOPY Version 1.0DB-Library version 8.00.194SQL Server 'WSQL01' Message 170: Line 1: Incorrect syntax near '99'.(Concerning line 1)DB-Library Error 10007: General SQL Server error: Check messages fromthe SQLServer.ERROR: Could not use database 'test1'NULL-----------Aslo it only runs on server console if i run it from workstation uingsame files and tables it gives me an error again. Can anybody help meand reply me at Join Bytes! asap.thnx,dharmesh

View 1 Replies View Related

Automation Error, SQL Server Error-MSSqlserver-urgent

Oct 13, 2000

I have three problems related to Sql Server

a.I am developing a database application using VB5/VB6, SQL server 7 and Crystal reports.When I try to generate reports I get the message 'Automation error'. Please help-urgent.

b. I am using temperorary tables to generate reports.ie Table is created by user.Tables are generated runtime ie created as well as deleted. Sometimes
Sometimes i get the message 'SQLServer error' What should I do.What are the rights to be assigned to LOGINS?.

c.Is there precaution while installing SQLserver in WIN98.

View 1 Replies View Related

DTS Error !!!!!! Urgent

Mar 28, 2002

Hi All,

I am getting the following error in DTS.
I request you to help me in this regard.


Error: -2147467259 (80004005); Provider Error: 3023 (BCF)
Error string: Backup, CHECKALLOC, bulk copy, SELECT INTO, and file manipulation (such as CREATE FILE) operations on a database must be serialized. Reissue the statement after the current backup, CHECKALLOC, or file manipulation operation is completed.
Error source: Microsoft OLE DB Provider for SQL Server
Help file:
Help context: 0

Thanks in advance.

Regards
Kalyan Kumar

View 1 Replies View Related

OLE Db Error - Urgent

Jun 26, 2001

I get the following error when I try to run distributed queries. I added the 2 linked servers.
[OLE/DB provider returned message: Client unable to establish connection]

[DBNMPNTW]ConnectionOpen (CreateFile()).

Is there anything else I need to check. Let me know

View 3 Replies View Related

DTS Error...urgent!!

Aug 8, 2001

Any clue on what this error is?I am getting this error when I am trying to save after modifying an existing DTS package which transfers 290 tables.

Error: Encripted stream can't exceed 124k

Thanks!

View 1 Replies View Related

Error - Urgent

Oct 17, 2001

Can anyone help with the following error message?

The column prefix 'TEST_REPORT.dbo.BUS_REQ_DESCRIPTION_TST' does not match with a table name or alias name used in the query.

View 1 Replies View Related

Error 547 Urgent

Dec 13, 2000

I removed the constraint and update the table and after that I enforced the constraint again and got following error.
I check the data in both table is fine and both the table have a primary key on it.

Thanks for help in advance

Server: Msg 547, Level 16, State 1, Line 1
ALTER TABLE statement conflicted with TABLE FOREIGN KEY constraint 'fk_ikw_indexed_form_approved_ikw_indexed_uri'. The conflict occurred in database 'rns_indexed', table 'ikw_indexed_form_approved'.

View 1 Replies View Related

DTS Error... URGENT!!

Jun 21, 2000

I have set up a job to extract records everyday from a remote server.It has extracted the records but it says the job failed!Any idea what is happening?
Following is the error message.
thanks!






''... DTSRun: Executing... DTSRun OnStart: Create Table Request1999 Step DTSRun OnError: Create Table Request1999 Step, Error = -2147217900 (80040E14) Error string: There is already an object named 'Request1999' in the database. Error source: Microsoft OLE DB Provider for SQL Server Help file: Help context: 0 Error Detail Records: Error: -2147217900 (80040E14); Provider Error: 2714 (A9A) Error string: There is already an object named 'Request1999' in the database. Error source: Microsoft OLE DB Provider for SQL Server Help file: Help context: 0 DTSRun OnFinish: Create Table Request1999 Step DTSRun OnStart: Copy Data from Results to Request1999 Step DTSRun OnProgress: Copy Data from Results to Request1999 Step; 1000 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 1000 DTSRun OnProgress: Copy Data from Results to Request1999 Step; 1628 Rows have been transfo... Process Exit Code 1. The step failed.''

View 2 Replies View Related

SQL Error URGENT!

Apr 19, 2000

I use the Microsoft Site Server interface to import web log files into a SQL database (db1). The raw logs are around 2GB per day in size. I have been trying to delete a date range from the database, but I keep getting the following error:

50004
37000: [Microsoft][ODBC SQL Server Driver][SQL Server] Could not allocate space for object 'tblImportUser' in database 'db1' because the 'PRIMARY' filegroup is full.
Error adding indexes.

Also, the performance of this machine has greatly decreased from just 2-3 weeks ago. I had been doing some performance testing, so I know that I was able to import a full day of log files (either zipped or unzipped) in just under 2 hours. It is now taking close to 8 hours

View 2 Replies View Related

SQL Error - Urgent

Aug 22, 2001

Hi,

We are using SQL 6.5 and maintaining a application written in Delphi 3.0. While executing the one of the stored procedure(Cover period) we are getting following error msg:

"Unable to create Query Error in Calculating Cover period General SQL Error. Can't allocate space for object '-333' in database 'tempdb' because the 'system' segment is full" with a warning "Fatal Error 1510 occured"

We have increased the space for DB, but still we are getting the same problem.

We would appreciate, if you respond asap

Regards

View 2 Replies View Related

URGENT ERROR PLEASE HELP US.

Nov 9, 2005

We are installing the final release of SQL 2005 On our main SQL server.

View 10 Replies View Related

Urgent: Mssql Error Need Help

Jun 3, 2007

I've been working on a project that exchanges data with 2 different mssql dbs. Today I compiled my website and test it locally on remote databases. Everything seemed ok. Then I uploaded all files to the server and after an hour something strange has happened, I do not know why. I could still reach the website locally using remote connstrings but when I try to visit One of the databases could not be connected, ASP.NET said.

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Interesting thing is that website can authorize the request (I mean I can login) after that it throws this error.


Thanks

View 3 Replies View Related

Sub Query Error(its Very Urgent)

May 6, 2008

 hi frenz:
This is my query:it shows the following
error:Incorrect syntax near the keyword 'as'.plz let me know my error, and how to correct it.



My Query:


SELECT EH.EmpID, EL.UserName,EL.Password, E.FirstName, E.LastName, E.DesignationID,
E.DepartmentID, E.Sex, E.DOB, E.Age, E.Address, E.Email,
'ContactNo'= Case When E.phone is not null Then E.phone When E.phone is null
Then E.Mobile End ,E.DateOfjoining, D.Designation, DE.Department,E.HobbyID
where E.HobbyID in
(select EH.HobbyID from EMP_Tbl_EmployeeHobbies EH inner join EMP_Tbl_Hobby H on EH.HobbyID=H.HobbyID) as item1,
From dbo.EMP_Tbl_Employee E
Inner Join dbo.EMP_Tbl_Designation D On E.DesignationID=D.DesignationID
Inner Join dbo.EMP_Tbl_Department DE On E.DepartmentID=DE.DepartmentID
Inner Join dbo.EMP_Tbl_EmployeeHobbies EH On E.EmpID=EH.EmpID
Inner Join dbo.EMP_Tbl_EmployeeLogin EL On E.Sno=EL.Sno

View 1 Replies View Related

Urgent Help Needed W/an Error

Sep 14, 2004

We run a site through asp.net (programmed in visual studio.net) and the site's beginning to get a lot of problems (as the site grows)

Here is the latest error message. I was wondering if someone could help me troubleshoot this.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Transaction (Process ID 145) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Transaction (Process ID 145) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SqlException: Transaction (Process ID 145) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.]
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +723
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +44
System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +5
System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +36
Saltwaterfishing.Components.DB.RankResults.SearchAllSites(String query, Int32 currentPage, Int32 pageSize) in
***************ComponentsDBRankResults.cs:43
***************.Controls.RankResultsGrid.BindDataGrid() in ***************\ControlsRankResultsGrid.ascx.cs:82
***************.Controls.RankResultsGrid.ShowResults() in ***************ControlsRankResultsGrid.ascx.cs:68
***************.Main.ShowPage() in
***************\saltwaterfishingmain.aspx.cs:75
***************.Main.Page_Load(Object sender, EventArgs e) in ***************\main.aspx.cs:43
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


Thank you

View 1 Replies View Related

Urgent .....Syntax Error

Dec 5, 2001

Hi...I have the codes below and it works fine...but there is another field called References and if I add that to the below codes ...then I get an error saying that 'Incorrect Syntax near the keyword 'References'......can someone help me out with this.....Thanks

---This sets the fields as current---

Set db = Server.CreateObject("ADODB.Connection")
db.Open "dsn=DemoBase;"
Set Current = db.Execute("SELECT TheDate, Code, Title, Author, Apparatus, Instructions, Comments, DCSReference, Location, ShortDescription, Video, Popular, Classification, Working FROM dbo.AllDemos WHERE Code = '" + Replace(CodeVar, "'", "''") + "'")

----This updates the database-------

Set UpDateDB = Server.CreateObject("ADODB.Connection")
UpDateDB.Open "dsn=DemoBase;"
Set UpDate = UpDateDB.Execute("UPDATE dbo.AllDemos SET Title = '" + title + "', Comments = '" + Comments + "', Author = '" + Author + "', TheDate = getdate(), Code = '" + Code + "', DCSReference='" + DCSReference + "', Classification = '" + classification + "', Video = '" + Video + "', Instructions = '" + Instructions + "', Apparatus = '" + Apparatus + "', Location = '" + Alocation + "', ShortDescription = '" + SDescription + "', Working = '" + Working + "' WHERE (Code = '" + OldCode + "')")

View 2 Replies View Related

Error Message -help Urgent-

Jun 5, 2002

Hi there

I have this error message when I try to connect to a server SQL Server :

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver] Client unable to establish connection
/include/ctt.asp, line 6

Thanks in advance

View 1 Replies View Related

DTS Error Message(Urgent Please)

Apr 25, 2001

Hi,
I am trying to do DTS for transfering data from one server to other server,both are on T1 link,after some time DTS failed by giving error message saying that
" Error at destination for Row number 3357844,Errors encountered so far in this test:1,,,Invalid charector value for cast Specification "
that table have 24 million rows..

How can i solve this problem,Please help me in this.this is urgent please

Mark A

View 2 Replies View Related

Error Message -- Urgent -- Please Help!!

Jun 11, 2001

Hi,

I have this error message on the server event log. I don't know what it actually means and how it can be resolved.

Error: 644, Severity: 21, State: 1
Could not find the index entry for RID '36f072000300101a0434d54525830303237323038' in index page (1:28942), index ID 2, database 'gemprod'.

Thanks in advance.

View 2 Replies View Related

DTS Designer Error-URGENT!

Jul 18, 2001

Hello!
Yesterday my DTS designer was fine and today suddenly when I open the package in designer there is nothing there.
I tried to create new package and it gave me an error when I was trying to save it "It is insufficient disk space to complete operation".

What does this mean?

Thanks

Lena

View 1 Replies View Related

Dtsrun Error-URGENT

Jul 20, 2001

Hello!

MSSQL Server 7.0 SP2
One of my users is running DTS packages on her computer using dtsrun utility.
I installed SQL client tools so she can run dtsrun utility.
It was working fine until we moved production database to the new server.
Local DTS packages were saved to the new server and recreated accordingly.

Now when she is running DTS packages in MSDOS using dtsrun she's getting error message "Can not create COM server to load DTS package. Class not registered".

Before this message she was getting different error "Paremeter is incorrect"
Then I applied SP2 to her client sql tools.Because new SQL Server has SP2.
After that we've got new message about COM server.

But dtsrun works on another client machine.

Any ideas what's going on?

Thank you

Lena

View 3 Replies View Related

ODBC ERROR ( VERY URGENT)

Aug 1, 2001

Error when i try to execute a SP with ADO connection, or ADO COMMAND
[ODBC SQL Server Driver][SQL Server]The identifier that starts (XXXXXX)is too long. Maximum length is 128.
can anyone help me.

View 1 Replies View Related

Sendmail Error: Urgent!

Aug 29, 2001

--------------------------------------------
Declare @filename char(22)
Declare @cmd char(100)

Select @filename = '"' + 'D:Feedsest_' + substring(convert(char(12), getdate(), 12), 3, 4) + substring(convert(char(12), getdate(), 12), 1, 2) + '"'

Select @cmd = "xp_sendmail @recipients = 'test@test.com'

, @attachments = " + @filename + " "

exec(@cmd)

Go
--------------------------------------------


Above T-SQL step is causing the following error:

Server: Msg 103, Level 15, State 7, Line 6
The identifier that starts with 'xp_sendmail @recipients = 'test@test.com'
is too long. Maximum length is 128.

Any help??Thanks.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved