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

Restore DB

$
0
0

I am trying to restore the SQL DB its shows the following error...

System.Data.Sqlclient.sqlerror : The Database was backed up on a server running version 10.50.4000. That version is incompatible with this server, which is running 10.00.5512. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server. ( Microsoft.Sqlserver.Smo)

How to resolve this issue..


Error when trying to connect to SQL Server from IIS website

$
0
0

Hello

I have recently upgraded a customers Small Business Server 2003 to 2011. The old sbs2003 server ran a customer database from sql express 2005.

I have backed up the database and transferred the website to iis7 on the new server.

No matter what I try I am unable to get the site/database working.

Here is the error from the browser.

Server Error in '/agm' Application.

A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

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: A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

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 (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +6256873
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
   System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error) +656
   System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj) +313
   System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket() +58
   System.Data.SqlClient.TdsParserStateObject.ReadByte() +108
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +276
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +53
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +248
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +6271738
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +6271704
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +354
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +703
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +54
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +6272968
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +81
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1657
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +88
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +6276407
   System.Data.SqlClient.SqlConnection.Open() +258
   ASP.main_aspx.Page_Load() +111
   System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +12
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +11034238
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5456

SSMA Report - Active X Issue

$
0
0

Hi

I have a report output from SSMA 5.2 Oracle to SQL - which when I open in IE 11 will not run properly.

I have tried to reset the IE settings, but the report will not generating the timings and errors - it also doesn't allow detailed drill down.

Any pointers ?

Thanks

Ian

SQL Cluster migration to new nodes

$
0
0

Hi All,

Need help to understand how to migrate existing SQL 2008 cluster to new nodes, the scenario is we have existing SQL cluster running on windows 2008 R2 as this cluster is configure on Dell servers and which needs to be replaced with advance Cisco UCS blades. So currently can we directly add this two new Cisco blades servers in existing cluster and migrate the cluster and the remove the old ones or any other procedure we need to follow to migrate this SQL cluster and what is the step by step process for the same.

Regards,

Sudhir

Upgrading from SQL Server 2000 to SQL Server 2008 R2

$
0
0

Hi there... I am working on a plan to upgrade from SQL Server 2000 over to SQL Server 2012 but initially the plan is to move up to Server 2008 R2.  I have already done some work on this project but am having a bit of a problem and need some help/guidance. We have an old Windows 2000 server running SQL Server 2000 currently. I have a new Windows 2008 enterprise server running hyperV on which I have created a windows 2008 std VM specifically for the new version of SQL Server. I was hoping to find online a version of SQL Server 2008 R2 Standard but was unable to locate one and instead I downloaded and installed the "express" version of SQL Server 2008 R2. Once it was isntalled, I was then able to get a copy of my SQL server 2000 databases over to the SQL 2008 express instance on the new server and have been doing some testing with internal applications utilizing SQL 2008. The problem is that the express edition does not include all of the functionality that I need (for example, SQL Agent Jobs is not included as part of express), so I need to migrate to a different version. 

I then got my hands on a copy of SQL Server 2008 enterprise and thought I could upgrade my express instance but it will not allow me to do this. I am thinking that I need to download a copy of SQL Server 2008 R2 "Standard" and hopefully I will be able to do an in-place upgrade of my express version to that??

Can someone point me to where I can download the 180 day trial version of SQL Server 2008 R2 Standard and/or give me any additional info on what I could try??


Thanks, Brad


Brad Pears IT Services True North Log Homes Bracebridge, Ont. Canada

Migrating Instances form SAN Storage

$
0
0

Hi all:

I have a 2 node Windows 2008 R2 FCI , that hosts a 2 named instances of Sql Server 2008 R2 and SQL Server 2012 , one named instance each.

Now , we need to migrate the instances to a new SAN from the old SAN.

The only requirement is that there should not be any significant down time.

What is the best way to approach this ?

One approach is as below:

Install one more set of named instances on the same virtual SQL Servers and detach and attach each user database form the old instance to the new instance.

Once all the user databases are moved as above , uninstall the old named instances and remove the ols SAN luns formt eh FCI.

Any comment or alternative is appreciated.


SQLCHANTer

Referral Date Nightmare

$
0
0
Hello Guys,

I am somewhat new to SQL. I really need some help with the following query. I have three tables like so:

tblclient
perid
name
dob

tblreferral
refid
type
info
commments

tblreferralaction
refactid
status (allocate, nfa, closed)
status date

I need to get the list of referrals, per client, in chronological order using the dates from the referralaction table. A allocations status will be given once a referral is open. A status of NFA or Closed means that referral is closed. 
A client can have many referrals, i need to identify the current one and have the others with their open and closed dates.
I have tried pivoting the data and just cannot get it to work due to the various dates following on.

Please can someone help?! 

Thanks in advanced!

Kind Regards
Jonathan

Mismatch?

$
0
0

First let me give you all the programs:

  1. Access 2013
  2. SQL Server Migration Assistant for Access v.5.2.1257
  3. SQL Server 2012 v.6.1.7601

The operating system is MS Windows 7 Pro.

I have been using Access for years and my primary database is almost full. So I decided to purchase SQL Server 2012 to place the database (Vault) in.

I have read numerous times that you can use Access as a GUI to the SQL Server. So that was my plan. I also found out that Microsoft has made a migration program for what I want to do. So as the plan sits right now it's:

MS Access to SSMS to SQL Server 2012.

I checked the Vault database from MS Access and believe I have routed out any syntax problem. The installation of the SQL Server program went well, NO ERRORS.

The installation to the SQL Server Migration assistant for access seems to have gone well too. 

OK, Now here come the meat of my problem, When I try to migrate from Access through SSMS to the SQL Server I see NO data in SQL Server. I do see the data files BUT NO data in the files.

Also, when I have my cursor hovering over the name "Vault" in the upper left hand area, ("Access Metadata Explorer"), I get this message:

AN ERROR OCCURRED WHILE LOADING DATABASE CONTENT

Retrieving the COM class factory for component with CLID{CD7791B9-43FD-42C5-AE42-8DD2811F0419}faild due to the following error: 80040154. This error maybe a result of running SSMA as 64-bit application while having only 32-bit connectivity components installed or vice versa.

I anyone can give me a hand I would be most grateful!

Thank you for your time in this matter.

Respectfully,

Jeff Hertel


Update Sql Server 2008 R2

$
0
0

Dear All,

i want update my SQL Server 2008 R2 standard edition to SQL server R2 sp2.

i want to upgrade because i want install that on Windows server 2012.

through this link :

http://support.microsoft.com/kb/2681562/en-us

it that free to update or i must purchase a new license?

Best regards,

Surbakti

Install SQL Server 2008 R2 SP 1 on Windows Server 2012

$
0
0

Dear All,

I've downloaded SQL Server SP1 from this link:

http://www.microsoft.com/en-us/download/details.aspx?id=26727

I downloaded  :

  • SQLServer2008R2SP1-KB2528583-x64-ENU.exe
  • SQLManagementStudio_x64_ENU.exe
  • SQLServer2008R2SP1-KB2528583-IA64-ENU.exe

when i run SQLServer2008R2SP1-KB2528583-x64-ENU.exe i have error:

There are no SQL Server instances or shared features that can be updated on this computer

what that i missed? is that i must install SQL Server 2008 R2?

because if i run the SQL Server 2008 R2 there are compatible issue. I run this on Windows Server 2012

Please Help.

Best regards,

Surbakti

Post Upgradation

$
0
0

In our organization we are  Migrating the databases from SQL server 2000 to 2008r2, so what i did is

1) i have taken the backup of the database from 2000 restored it to 2008r2

2) recreated the logins 

3)changed the compatibility to 100

4) tested with application team worked fine

Now we are doing production database, so my question is are there any further steps to done pre migration or post migration , please help me.

Thanks

Rajesh

is sql server 2012 dependent on c++ 2008 redistributable and the 2010 redistributable?

$
0
0

The reason that I am asking is that I would like to uninstall 2008 redist if possible.

Thanks


leo

Warning: Truncation may occur due to inserting data from flow column "XXX" with a length of 382 to database column "XXX" with a length of 255.

$
0
0

Hi,

I am doing migration from MYSQL to SQL Server 2008 using "SQL Server Migration Assistant Tool" and while executing the package getting lot of warnings:

Warning: Truncation may occur due to inserting data from flow column "XXX" with a length of 382 to database column "XXX" with a length of 255.

Please help!!

Thanks,

Srcha

Importing Database to new server

$
0
0
We had a server that crashed/unbootable. The SQL DB folder was recoverable and we need to import the DB into a new SQL 2008 R2 Express install. What is the best way to go about this. There are no backups of the DB.  The old version of SQL was probably 2005.  Not sure of old/crashed setup, got called to fix the problem after the fact.

Coying Database to another server

$
0
0

Dear All,

I want trying to copy database to another server but i got error

Login failed for user 'domainName\ComputerName$'

I already use domain administrator to both of server and already create user login in both server.

Both of the login is domain administrator and same user for the server. I use SQL Server Standard Edition 2008 R2.

How can i fix this error?

please help

Best regards,

Surbakti


Copy user login

$
0
0

Dear All,

I have a problem about user Login in SQL Server 2008.

because I restore database from another server, user Login for that database already created but not in instance user login. So when user login into instance name they have failed login.

what that i missed before restore database so when user login into instance they do not failed?

or how that i can copy user login  from database to instance login? because when i add from add login wizard i have error user already created.

please help.

Best regards,

Surbakti

Hadoop and MS Sql Server Parallel Data warehouse (PDW) Connectivity

$
0
0

Hi All,

   I'm new to Hadoop.

  * My requirement is, Migrating data from Hadoop to sql server 2012. 

  * I got information from the net that this can be possible through Parallel Data warehouse (PDW) 

  * I need your help on, how to connect hadoop and PDW? Any tools need for this or specific software and what prerequisite have to do to connect those.

  * Have to connect and retrieve the data from Hadoop through T-Sql

  Since am new to Hadoop and i need all your support on how to start this.

Thanks!

Arun

 

DBCC Checkdb getting failed after database was migrated from SQL 2005 to SQL 2008 R2

$
0
0

We have Solarwind database running on SQL 2008 R2. This database was initially running on SQL 2005 was migrated to SQL 2008 R2.

We have weekly maintenance plan which check databases integrity and is getting failed with below error:

Executing the query "DBCC CHECKDB(N'SolarWind_NPM')  WITH NO_INFOMSGS
" failed with the following error: "Table error: Object ID 1012198656, index ID 1, partition ID 72057594170900480, alloc unit ID 72057594047365120 (type LOB data). The off-row data node at page (1:116924), slot 0, text ID 404196336336896 does not match its reference from page (1:804256), slot 14.
Table error: Object ID 1012198656, index ID 1, partition ID 72057594170900480, alloc unit ID 72057594047365120 (type LOB data). The off-row data node at page (1:116925), slot 0, text ID 404196336336896 does not match its reference from page (1:804256), slot 14.
Table error: Object ID 1012198656, index ID 1, partition ID 72057594170900480, alloc unit ID 72057594047365120 (type LOB data). The off-row data node at page (1:116926), slot 0, text ID 404196336336896 does not match its reference from page (1:804256), slot 14.
Table error: Object ID 1012198656, index ID 1, partition ID 72057594170900480, alloc unit ID 72057594047365120 (type LOB data). The off-row data node at page (1:116927), slot 0, text ID 404196336402432 does not match its reference from page (1:290204), slot 7.
Table error: Object ID 1012198656, index ID 1, partition ID 72057594170900480, alloc unit ID 72057594047365120 (type LOB data). The off-row data node at page (1:635456), slot 5, text ID 404196336336896 does not match its reference from page (1:804256), slot 14.
Object ID 1012198656, index ID 1, partition ID 72057594170900480, alloc unit ID 72057594193248256 (type In-row data): Errors found in off-row data with ID 122721359691776 owned by data record identified by RID = (1:290204:7)
Object ID 1012198656, index ID 1, partition ID 72057594170900480, alloc unit ID 72057594193248256 (type In-row data): Errors found in off-row data with ID 122721359626240 owned by data record identified by RID = (1:804256:14)
CHECKDB found 0 allocation errors and 7 consistency errors in table 'MapStudioFiles' (object ID 1012198656).
CHECKDB found 0 allocation errors and 7 consistency errors in database 'SolarWind_NPM'.
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (SolarWind_NPM).". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

We repaired database with checkdb repair with data loss and no error was reported when executed dbcc checkdb. But issue was again reported in next schedule of job.

Everything is running fine from application end. Not sure what is exact issue. Need assistance !!!

Is it due to compatibility issue or its is a bug ??

SSMA: Error migrate data mysql => Sql Server

$
0
0

Hello,

I'm trying to migrate a database Mysql 5.1 to SQL Server 2008 with SSMA.
The server hosting the SQL database is on Windows 2008 Enterprise x64.
The user connecting to the SQL database is sysadmin.
Phases to convert and sync happen without problems, but the migration of data blocks it.
The log tells me out:

Data migration operation has finished.
0 table (s) successfully migrated.
0 table (s) Partially migrated.
46 table (s) failed to migrate.

The Data Migration Report is empty with only a red cross next to my table names.

I tried to migrate in client mode and server mode = same result.Any ideas ?

 

EDIT: miss, this thread shoud be in section SQL Server Migration. A moderator can move my post please ?

Access Front End not using Timestamp field; Users getting write conflict

$
0
0

I recently upsized an Access 2010 database to use SQL 2005 as the back end database using SSMA for Access.  The migration was completed without problems but now users are getting a write conflict anytime they try to change something, even text in a description field.  SSMA inserted a timestamp field in each table, which I thought would prevent the write conflicts.  Is there something I need to do to Access to force it to use the timestamp field?

The error is:

"This record has been changed by another user since you started editing it.  If you save the record, you will overwrite the changes the other user made."

While researching this I've tried other approaches such as setting BIT or REAL fields to NOT NULL and inserting default values.  This made no change to the issue.  The write conflict even happens when updating an Nvarchar(MAX) field.  I changed that field to Nvarchar(255) but the error still occurred.

I should point out that Access is using a workgroup mdw file for security.

Can anyone help point me in the correct direction?  I've done several of these migrations before but never had this problem. 

Thanks,

Joe

Viewing all 1700 articles
Browse latest View live


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