Quantcast
Channel: SQL Server Migration forum
Viewing all 1700 articles
Browse latest View live

A time-out occurred while waiting for buffer latch -- type 4, bp 02D685E4, page 1:11905, stat 0xc0000b, database id: 2,

$
0
0

Form one week we are observing the below error message in our server.We done  Sql service restart.After that for two days we have not observed this again.But again we are observing same in the same server.Before error occurring some dumps are creating.Is this would be a big issue.But we are not facing any issue.

Kindly help me to find out the root cause. 

A time-out occurred while waiting for buffer latch -- type 4, bp 02D685E4, page 1:11905, stat 0xc0000b, database id: 2, allocation unit Id: 168910094073856/450385070784512, task 0x00928898 : 0, waittime 300, flags 0x40039, owning task 0x0089A6B8. Not continuing to wait.


Migrating DB, ETL, Reports, Cubes from SQL Server 2005 to SQL Server 2012. Need to know the challenges?

$
0
0

Hi All,

We have plan to Migrate

  • SQL Server DB from 2005 to 2012
  • SSIS ETLs from 2005 to 2012
  • SSRS Reports from 2005 to 2012
  • SSAS Cubes from 2005 to 2012

I would like to know the challenges faced by other people during Migration. I have main concern about SSRS Reports & SSAS Cubes. Is SSRS report developed in 2005 can be opened directly in 2012?

Please suggest if any migration Tools that can help us in doing the same.


Thanks Shiven:) If Answer is Helpful, Please Vote

Query grows tempdb after moving from SQL 2008 SP1 to SQL 2012 Core SP1

$
0
0

I have a query that has been running on a SQL 2008 server for time. It takes about 4 hours to run. The largest table referenced in the query is an 8GB fact table.

The database was restored to a SQL 2012 Core Server. The query would then run for 8+ hours and fail with a message that more space was needed in tempdb.

Space was added to tempdb, but the query still failed. Usingsys.dm_db_task_space_usage, was able to see the space used in tempdb per connection.  More than 800GB (sic) of space was consumed in tempdb.

I looked at the data in each of the tables used in the joins. I was expecting to find a Cartesian product returned from one of the joins. This was not the case.  The join column from every table  was unique in one of the joined tables.

I overcame the issue by adding each join to the statement individually and then seeing where the issue arose. If I only joined three of the tables the query would return TOP 1000 immediately.  When added together, the final join caused an issue. The TOP 1000 would not return after 20 minutes.

I changed the query to load data to #temp tables and then joined the #temp tables to the rest of the tables. Each join to the #temp tables performed quickly and did not create an explosion of growth in tempdb.

The question still remains, however,why did the query complete on a less powerful 2008 server, but fail on a more powerful SQL 2012 Core Server with more memory and space?

Pseudo code…

--Before query

select *
from table1 t1
   inner join table2 t2 on t1.id = t2.t1_id
   inner join table3 t3 on t2.id = t3.t1_id
   inner join table4 t4 on t2.id = t4.t1_id
   inner join (
      select col1, col2, max(col3)
      from table5 t5
      where date > @date
         and col1 = @col1
      group by col1, col2
      ) as dt -- derived table
         on dt.col1 = t1.col1
   inner join table6 t6 on t1.id = t6.t1_id

--After query
select col1, col2, max(col3)
into #temp1
from table5 t5
where date > @date
   and col1 = @col1
group by col1, col2

select *
into #temp2
from table1 t1
   inner join table2 t2 on t1.id = t2.t1_id
   inner join table3 t3 on t2.id = t3.t1_id
   inner join table4 t4 on t2.id = t4.t1_id
   inner join (
      select *
      from #temp1
      ) as dt -- derived table
         on dt.col1 = t1.col1

select *
from #temp2 t2
   inner join table6 t6 on t2.id = t6.t1_id

Upgradation from SQL Server 2005 Standard Eddition to SQL Server 2008 R2 Standard

$
0
0

Dear All,

I have decided to upgrade the SQL server 2005 stn to sql server 2008 r2 stn. During up gradation i have found the following error. please give me a solution.

How to move Resource db to Sql server 2008?

$
0
0

Hi.,

How to move Resource db to Sql server 2008? 

Can u tell me the Answer?

SSMA for MySQL v5.2 does not show all my MySQL tables

$
0
0

I don't see all my tables after connecting to the MySQL server and database. Some table are shown but most are not.

All tables are Innodb in mysql and in the same database. I have a linked server in SQL Server 2012 to the same server and database and sees all the tables -but SSMA does not.

Any idea why?

Thanks,

Chuck Atkinson

Broker Service options when migrating databases from an Enterprise server to a Standard server.

$
0
0

Hello.

A Customer wishes to migrate his databases from an 2008 Enterprise installation to a Standard installation.

Some databases have activated Broker Service and some have not.

When migrating the first database that has Broker Service activated, Broker Service is not activated and it activates using ALTER DATABASE ENABLE_BROKER. However the next database cannot have its Broker Service and an error states something about the Broker Server ID must be unique (or something like that).

Now, the customer would like to know which option he has regards Broker Service and what consequences those options results in.

1) ENABLE_BROKER: How can this be done for more than the first database?

2) DISABLE_BROKER: If database had Broker Service Enables on the Enterprise server and will not have it on the Standard, what will not work?

3) NEW_BROKER: Personally I suspect this is the way to go, but will it work? This would give the database a new Broker Server ID and what consequences would that have?

4) ERROR_ BROKER_CONVERSATIONS: What is this?

5) HONOR_BROKER_PRIORITY (ON/OFF): What is this too?

The main goal regarding Broker Service in this migration is that Broker Server should be activated on the same database on the Standard server has they are on the Enterprise server.

TIA

Best Regards

Peter Rasch Lageri

Bug found - SQL 2012

$
0
0

I just want to report a bug I found.  I've recently updated a database from SQL 2008 to SQL 2012.  This morning a daily procedure failed.  Upon further investigation I found a view had been updated as follows: 

SELECT     PolicyKey, Policy, PolicyStartDate, Sequence, Amendment, Status, RatingStatus, OldPolicy, ClientNumber, TransactionType, EffectiveDate, BillingType, NextBillingType, Reversed, BusinessLine, BranchCode, GroupCode, BrokerCode, PolicyEndDate, PreviousInsurerCode, PreviousPolicy, RequestLetter, RenewalCode, RenewalBusinessLine, NonRenewalRemark, AmendmentCode, AmendmentRemark, InsuredSince, InceptionDate, DatePrinted, PostDate, DatePosted, ShortRate, Subscription, LeadPolicyNumber, PrintPolicy, BusinessType, BrokersCancelDate, UploadedFromBroker, BrokerIDForInsured, IneligibleforPHIX AS HeldBy, HeldBy AS DateHeld, DateHeld AS HeldByUniID, HeldByUniID AS AddedBy, AddedBy AS DateAdded, DateAdded AS ChangedBy, ChangedBy AS DateChanged, DateChanged

FROM         GIMS.dbo.Policies


Please note the section where a field had been added to the table (IneligibleforPHIX) and SQL tried to compensate by adding the AS keyword to retain position.  This ultimately offset the entire result set by 1.  IE: 1 as 2, 2 as 3, 3 as 4, 4 as 5...  etc. and completely screwed up the data selection from it.



How to map MySQL bit(1) column to SQL Server bit column using SSMA

$
0
0

So I'm trying to migrate a MySQL database to SQL 2012 Express using the SQL Server Migration Assistant for MySQL and am having issues getting the bit(1) fields in my MySQL database to map to bit fields in the target SQL Express database. They're getting mapped to binary(1) and I have no way of adjusting the type mapping.  Is this even possible without having to manually alter the SQL Server tables after the migration?

Alternately, is there any way to preserve the boolean datatypes of my EF Code First classes that are mapped to the bit(1) columns in my MySQL DB's tables when EF is expecting them to be byte[]?

Thanks, -MrB

SSMA 5.2: Duplicate records(Migrate from Sybase 11 to SQL Server 2005)

$
0
0
Hi,

I had converted schema and was trying to migrate data Sybase 11 to target SQL Server 2005 locally through SSMA 5.2. But I have one issue with data. With unique clustered index, it doesn't allow me to migrate data. So first step:I deleted the index manually in targat SQL server. Then try to migrate data but there was first row in two columns(sector,category) are repeating for all other rows for those two columns. See below is source data(total 234  records) and migrated data.

I think this is issue of SSMA 5.2 for migrating data. Is there any workaround for this issue. I have to finish task for my client by EOD tomorrow.

Any help much would be much appreciated!!!

Thanks,


ckp

Como configurar Read- Only depois de restaurar uma base.

$
0
0

Boa tarde, pessoal!

Gostaria de retirar algumas dúvidas. Existe a possibilidade de configurar o Read_Only, em uma Database que foi restaurada em outro servidor?

No entanto, esqueci de deixar no modo de leitura (Read_Only). E agora não consigo incluir, nem alterar nada nas tabelas. 

Preciso resolver isso hoje ainda. Se alguém puder me ajudar, agradeço desde já.

Atenciosamente, Marcella Fernandes

oracle 9i to Sql server 2008 R2 migration

$
0
0

Hi,

We are having oracle 9i as database and migrating to sql server 2008.

Our oracle 9i database connects to another oracle databases and these databases are having different oracle version(9.2.0.8.0, 9.2.0.7.0,10.2.0.5.0,11.2.0.2.0,9.2.0.6.0,10.2.0.4.0,8.1.7.4.0 )

I do have two queries :

1) how to connect from Sql server 2008 R2 to different Oracle databases

2) How will other oracle databases connect to Sql server 2008 R2 database

Visual Studio 2010 error Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance.

$
0
0

Hello,

I have upgraded from VS2008 Professional to VS2010 Professional. I have VB 2008 applications that use SQL Server 2005 Express and were working on my development machine (XP) and on the machines on which they were installed using VB2008 Setup Projects. I have installed VS2010  on my development machine and insatlled all available updates. Then, I copied one of my existing applications from the VB2008 Projects folder to the VB 2010 Projects folder and opened it in VB 2010, where it ran the upgrade to VB 2010. After it finished upgrading the appliacation to VB 2010, I tried to run it in debug but I get the following error at the piont where the SQL db is supposed to load and fill inforamation on a form in my application:

Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance.

I finally got SQL Management Studio installed and did queried the istalled SQL versions. I default version is SQL Server 2005 Developer Edition SP3. The SQLEXPRESS version isMicrosoft SQL Server 2008 (SP3) - 10.0.5500.0 (Intel X86) Sep 22 2011 00:28:06 Express Edition on Windows NT 5.1 <X86> (Build 2600: Service Pack 3). I have also run the sp_configure 'user instances enabled',1. Reconfigure query and that did not fix the problem.

I am stuck with this error and have read many suggestions that do not fix the problem. Below is the error detail. Can you tell me how to fix this problem?

Thank you,

Dan

System.Data.SqlClient.SqlException was unhandled

  Class=14

  ErrorCode=-2146232060

  LineNumber=65536

  Message=Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

  Number=15372

  Procedure=""

  Server=.\SQLEXPRESS

  Source=.Net SqlClient Data Provider

  State=1

  StackTrace:

       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)

       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()

       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)

       at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)

       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, SqlConnection owningObject)

       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, TimeoutTimer timeout)

       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, TimeoutTimer timeout, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)

       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)

       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)

       at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)

       at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)

       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)

       at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)

       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)

       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)

       at System.Data.SqlClient.SqlConnection.Open()

       at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

       at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)

       at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)

       at IBC_2006.BRACEDataSetTableAdapters.Step1TableAdapter.Fill(Step1DataTable dataTable) in C:\Documents and Settings\DCD\My Documents\Visual Studio 2010\Projects\IBC 2006 BRACE\IBC 2006\BRACEDataSet.Designer.vb:line 31345

       at IBC_2006.Form2.Form2_Load(Object sender, EventArgs e) in C:\Documents and Settings\DCD\My Documents\Visual Studio 2010\Projects\IBC 2006 BRACE\IBC 2006\Form2.vb:line 35

       at System.Windows.Forms.Form.OnLoad(EventArgs e)

       at System.Windows.Forms.Form.OnCreateControl()

       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

       at System.Windows.Forms.Control.CreateControl()

       at System.Windows.Forms.Control.WmShowWindow(Message& m)

       at System.Windows.Forms.Control.WndProc(Message& m)

       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

       at System.Windows.Forms.Form.WmShowWindow(Message& m)

       at System.Windows.Forms.Form.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)

       at System.Windows.Forms.Form.SetVisibleCore(Boolean value)

       at System.Windows.Forms.Control.Show()

       at IBC_2006.START.Button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\DCD\My Documents\Visual Studio 2010\Projects\IBC 2006 BRACE\IBC 2006\START.vb:line 33

       at System.Windows.Forms.Control.OnClick(EventArgs e)

       at System.Windows.Forms.Button.OnClick(EventArgs e)

       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

       at System.Windows.Forms.Control.WndProc(Message& m)

       at System.Windows.Forms.ButtonBase.WndProc(Message& m)

       at System.Windows.Forms.Button.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)

       at IBC_2006.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81

       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)

       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading.ThreadHelper.ThreadStart()

  InnerException:


Dan

Connection to Oracle freezes

$
0
0

I've installed SSMA for Oracle on the server where the Oracle instance resides.

When I "Connect to Oracle", I fill in all the necessary connection details.  It gives me some warning about some permissions I'm missing:

but otherwise seems to proceed OK.  Then it starts "loading objects"... and progresses slowly from 0% to 54%... and then it locks up at 54%.  I left it running overnight, and this morning it's still stuck at 54%.  The process in Task Manager is showing zero activity.

What is wrong?  How do I fix this?


Sql server 2012

$
0
0

Hi GUYS,

I have migrated the main database server from sql server 2005 from one server  to sql server 2012 in another server(windows 2008 server).

So, what I need from you guys is ,What special advantages I can get now using sql server 2012.I am not using any extra features of sql 2012 and just been running the server as it was like before.

Please help me out to find what are the features that are new in 2012 and better  in usage pls.

please try to put here what extra features you guys are currently using .

Many thanks ,

Chinna.



SSMA access columns descriptions

$
0
0

Hi there,

I'm using SSMA 2008 to convert several access databases to SQL 2008.

For the data al goes well without any big problems.

The only big problem is that the columns descriptions that are given in access for each column is not transfered to SQL.

1) Can this be resolved?

2) If yes on 1 ;) How?

 

Can we upgrade SQL SERVER 2005 Enterprise edition (32 bit) to Upgrade SQL SERVER 2005 Enterprise edition (64 bit) ?

$
0
0

Hi,

I have window server 2008 R2 with sp1 and Sql server 2005 (64 bit) on Principal database Server but mirror database server have window server 2008 R2 with sp1 and Sql server 2005 (32 bit).

But now i want to upgrade sql server 2005 (32 Bit) to sql server 2005 (64 bit) on mirror server.

How can i do this on mirror Database server ?...

Pls suggest me..


Mark As Answer If My Reply Is Helpful
Thanks
Neeraj Bhandari (MCTS - Sql Server 2008)

Restore Database not working properly

$
0
0

Hi

I am using following query to restore a database. Showing the message rrestores successfully,  but it is not restoring with latest changes, it is having only the old records.I can't find the new backup file changes. Please help me.

Use master
 ALTER DATABASE [SA]
SET SINGLE_USER WITH NO_WAIT
RESTORE FILELISTONLY
FROM DISK = 'E:\Test\A\SA_2008R2.bak'
Go
ALTER DATABASE SA
 SET SINGLE_USER WITH
 ROLLBACK IMMEDIATE

 RESTORE DATABASE SA
FROM DISK = 'E:\Test\A\SA_2008R2.bak'
WITH
 MOVE 'MIMICS_REPORTS_SA_2008R2' TO
 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\SA_2008R5.mdf',
MOVE 'MIMICS_REPORTS_SA_2008R2_log'
TO 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA\SA_2008R5.LDF'

 ALTER DATABASE [SA] SET MULTI_USER WITH NO_WAIT

Transfer data from DynamoDB to SQL server 2008?

$
0
0
I want to transfer data from amazon dynamo DB to SQL server 2008. What are the tools or methods which can be used to do this ?

from nTtext to varchar(max)

$
0
0

I migrate a SQL server 2000 to SQL 2008 database.

The original one has nText field and I migrate is what it was, because SQL server 2008 accept it.

I learned that SQL server 2008 does not recommand to use nText.

The issue I have now is that it seems insert failed when I insert to nText field in SQL 2008 which long characters.

I would like to know are there any solution for this,

Should I convert nText to varchar(max)? If I do, what would be better method without lost data?

Your help and information is great appreciated,

Regards,

Souris,

Viewing all 1700 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>