Skip to main content

Posts

Showing posts with the label sql express

MERGE PROCESS WAS UNABLE TO CREATE A NEW GENERATION

error message: THE MERGE PROCESS WAS UNABLE TO CREATE A NEW GENERATION AT THE “SUBSCRIBER”. TROUBLESHOOT BY RESTARTING THE SYNCHRONIZATION WITH VERBOSE HISTORY LOGGING AND SPECIFY AN OUT PUT FILE TO WHICH TO WRITE. I tried "update sysmergepublications set [generation_leveling_threshold] = 0" on both Subscriber and Publisher, still it didn't work. Then I tried "select count (*) from dbo.MSmerge_contents" and "select count (*) from dbo.MSmerge_genhistory" on the Subscriber The both query was running indefinely with no results, instanly I realised there is some Locking problem. In desperation I restarted the Subscriber Database Engine and started the Agent. Magic! Replication was successfull.

Trigger for insert, update in sql server

deleted and inserted are logical (conceptual) tables. They are structurally similar to the table on which the trigger is defined, that is, the table on which the user action is attempted, and hold the old values or new values of the rows that may be changed by the user action. For example, to retrieve all values in the deleted table, use: SELECT * FROM deleted Create TRIGGER [dbo].[test1_insupd] ON [dbo].[test1] FOR INSERT, UPDATE AS BEGIN declare @f1 int declare @f2 varchar(10) declare @vishg char(1) select @f1 = f1, @f2 = f2, @vishg = vishg from inserted if UPDATE ( visHG ) and @vishg = '1' begin IF EXISTS(select * from test2 where f1 = @f1) update test2 set f2 = 'true in t1' where f1 = @f1 else insert into test2(f2) values( 'true in t1') end else begin IF EXISTS(select * from test2 where f1 = @f1) update test2 set f2 = 'not true' where f1 = @f1 else insert into test2(f2) values('not true') end END

SQL Server 2005 Express Limitation

Functionally, SQL Server Express is in many ways the same as the full edition of SQL Server. Many databases created in other editions of SQL Server can work transparently. The limitations to Express, however, need to be spelled out in detail: No built-in management tools. Microsoft has a query tool called Express Manager that is available as a separate download, but as of this writing, it is an unsupported pre-release package. Support for only 1 CPU. In systems with multiple CPUs, Express will only bind to one CPU at a time, and it cannot run queries in parallel. 1 GB RAM. Express cannot use more than 1 GB of RAM at a time for queries and data pages. The program's own memory footprint is not counted. 4 GB maximum database size. No one database in Express can be larger than 4 GB, but there is no limit on the number of databases you can use in Express. No analysis or reporting services. Data mining, Data Transformation Services (DTS) and reporting functions are not available for Exp...