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

RECORD DATA TYPE IN SQL SERVER

$
0
0

Hi Gurus,

Please help me.

I need to migrate from Oracle 9i to SQL SERVER 2008 R2. I dont find any equivalent datatype for record data type.

Oracle Code:

In a package X, below code is written

TYPE APC7_dates_record IS RECORD
        (program         CHAR,
         msn             NUMBER(4),
         event_apc7      NUMBER(3),
         reason          VARCHAR2(4),
         last_date       DATE,
         flag_date       CHAR);

/* APC7 event date table description */
TYPE APC7_dates_Table IS TABLE OF APC7_dates_record
         INDEX BY BINARY_INTEGER;

---In the same package, a procedure Y is written which is having below code

 IF P_APC7_dates.COUNT > 0 THEN
      FOR i IN P_APC7_dates.first .. P_APC7_dates.last LOOP
      /* if AC dates to transferred from APC7, */

How to get P_APC7_dates.COUNT in SQL Server.

Many thanks,

Chetan


Best Regards, Chetan Navale | Atos India | chetan.navale@hotmail.co.in | 91-9373364792


Migrate an SQL 2008 server to a different 2012 across different domains/forests

$
0
0

Hello all

We are going to migrate our sql 2008 to a new sql 2012 server. The issue here is that the new machine will be located in a new domain/forest with no trust relationship between the two domains. IP schema and hostname of the server will be different but user logins will remain the same. There is no possibility to have a trust relationship between the 2 forests so creating one is out of the question.

The question is what is the most proper way to migrate the databases from the old 2008 server to the new server. Will detach/attach work in our case or can we do it in a different way? What are the issues that we might face on this if someone could share its experience on this it will be much help to us.

Problem with stored procedure in aspnet.mdf Sql server when publishing. Collate?

$
0
0

Hi guys,

I´m migrating a database to my web host. Most of it is working fine (I think), but there´s a problem with the membership database aspnet.mdf, particularly to add user to role. The stored procedure for that simply isn´t there.

when executing the migration script on the web host server it gives me this error:

Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Finnish_Swedish_CI_AS" in the equal to operation.

The people at the web host have been very quiet so I´m guessing they don´t know how to solve it.

I guess I should mention that another database, which holds the main part of my data, is working when being scripted, so the problem is with the aspnet.mdf, particularly stored procedures.

Thanks

bakup to another network server - permission issue

$
0
0
Hi,
I am trying to backup from my sql 2005 DB which
is on windows server 2003 to sql 2008R2 on windows server 2008R2 but getting
access denied,
I have tried using SSMS, T-Sql but still getting issue with
this.
I have created backup folder on my 2008R2 server and assign the full
access to Everyone on security permission, I have added user and also grant the
FUll Permission.

1) I tried using SSMS ut didn't work
2) I tried using
T-sql, didn't work


I have just install the sql 2008R2 on Windows 2008
R2.

Create Script form Table reports error

$
0
0

I have created a table with following statement:

SELECT [Id] = 1
, [NewDate] = CAST( DATEFROMPARTS(1900,1,1) AS Date )
INTO __Test

SELECT * FROM __Test

The select statement returns one record.

I can open the table in the designer, but if i try to to do a "Script Table as" --> "Create to" --> "New window", SSMS prompts with the message:

Column NewDate in object __Test contains type Date, which is not supported in the target server version, SQL Server 2005.

So i tested then compatibility_level:

SELECT compatibility_level  FROM sys.databases WHERE name = DB_NAME();

This statement returns 110.

What else can i do to create the script?


Kind regards, Henk


Managing the size of the database with repliaction

$
0
0

Hi Guys,

I have  a database with about 30 GB size that is huge as per the requirement.

How can I make  a master with current database  and  parallel have a  slave database carrying the old data stored .

The over all point is this database size is a concern .

Can any one suggest me the few ideas to do please.

Thanks,

C.

SQL Jobs Migration

$
0
0
Hi everyone,
I am new to SQL and I know just barely enough to be dangerous. I was asked if there was a way to move about 150 SQL jobs from a server that has been decommissioned, to another server. 
We have the drives in backups, so I am wondering if we are able to pull the jobs from files, or if we need to virtualize and get back into the previous server's SQL environment, and create queries for scripts?
We are going from one SQL 2005 environment to another on separate servers. The databases were pulled from the decommissioned server and are already running on the new server, we just now need to get the jobs from server A to server B. 
I hope I explained this correctly, let me know if you need any further clarification. Thanks!

Read data from Xlsx-XML Template from SQL Server

$
0
0

Hi  All ,

My name is Srinivas.I have one question ?

 any one please help how to read the data from Xlsx-XML Template ( Xlsx Template is saved in XML Formate) from SQL Server query .

For Ex :   Like following ex  read data from  Xlsx file using OPENROWSET

Select * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=C:\69\Test.xlsx;HDR=YES',
                'SELECT * FROM [Sheet1$]') Spread

Thanks in advance...


SSMA for Oracle - Error when migrating data - ORA-00905: missing keyword

$
0
0

Hi guys, I'm very new to SSMA and am hitting an issue with SSMA for Oracle when trying to migrate data to a SQL Server 2005 instance from a legacy Oracle 8.0.5 system.  SSMA can connect to the legacy Oracle database and I can verify it can read data by clicking on any table that has rows and seeing data pop up in the "Data" tab in SSMA.  I was able to use the tool to generate the new schema in SQL Server, so perhaps I could go with SSIS if there's not a good path around this.

When I try to "migrate data" from the legacy Oracle 8.0.5 system to the target SQL Server 2005 instance, I can go though the process of picking a single table (for testing purposes) and selecting "migrate data".  The errors are in the form of:

Migrating data...
 Analyzing metadata...
 Preparing table DBName.TableName...
 Preparing data migration package...
 Starting data migration Engine
 Starting data migration...
 The data migration engine is migrating table '"DBName"."TableName"': > [DBName].[dbo].[TableName], 19934 rows total
 ORA-00905: missing keyword
  Errors: ORA-00905: missing keyword
 Completing migration of table "DBName"."TableName"...
 Migration complete for table '"DBName"."TableName"': > [DBName].[dbo].[TableName], 0 rows migrated (Elapsed Time = 00:00:00:00:837).
 Data migration operation has finished.
  0 table(s) successfully migrated.
  0 table(s) partially migrated.
  1 table(s) failed to migrate.

Any thoughts on where to look to troubleshoot or if I should look into another way to transfer the data? 

Thanks,
Sam  


http://blogs.msdn.com/b/samlester

This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click"Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

Migrate SQL Server data from AWS VM to AZURE VM

$
0
0
I need to migrate data from SQL Server databases on an AWS VM to a VM on AZURE. These are SQL Server 2012, at both ends. We want to move on to the AZURE platform, but I need some assistance for the data migration. Please let me know if the migration between these 2 VMs is possible, and how to do it. Thanks!

Effects on SQL Server 2005 by upgrading existing windows 2003 to windows 2008 R2

$
0
0

Hi All,

I have SQL Server 2005 running on Windows 2003 server 32 Bit.

Now I have to upgrade the OS from Windows 2003 to windows 2008 R2.

Now what will be consequences if there are any while upgrading which might affect my SQL Server.

Also it would be very helpful if i can get some steps how this can be achieved.


Thanks & Regards,
Manjunath C Bhat,
http://manjunathcbhat.blogspot.com
http://manjunathcbhat.wordpress.com

SET options used in SQL Server 2008

$
0
0

We are using the following SET options in Oracle. I need to convert the same Oracle script to SQL server script which have the following SET options.

SET ECHO OFF     /*to suppress SQL queries in the output file*/

SET VERIFY OFF  /* will show before and after substitution variables*/

SET TRIMSPOOL ON   /* will remove trailing spaces from spooled output*/

SET TRIMOUT ON   /* will remove trailing spaces from output*/

SET LINESIZE 9999 /* width of page (80 is typical)  */

SET LONG 9999  /* Sets maximum width (in bytes) for displaying LONG, CLOB, NCLOB and XML Type values; and for copying LONG values.*/

SET LONGCHUNKSIZE 9999    /* Sets the size (in bytes) of the increments in which SQL*Plus retrieves a LONG, CLOB, NCLOB or XML Type value.*/

SET PAGESIZE 0   /* Sets the number of lines in each page*/

SET FEEDBACK OFF   /* It won’t displays the number of records returned by a script when a script selects at least n records. It also turns off the statement confirmation messages such as 'Table created' and 'PL/SQL procedure successfully completed' that are displayed after successful SQL or PL/SQL statements.*/

SET TIMING OFF    /* Controls the display of timing statistics.*/

SET TIME OFF    /* Controls the display of the current time.*/

SET COLSEP   /* In iSQL*Plus, SET COLSEP determines the column separator character to be printed between column output that is rendered inside <PRE> tags. Sets the text to be printed between selected columns */

   Can you please tell me, what are the options used for the above SET options in SQL Server?

Thank in Advance.

SQL Server service stopped unexpectedly event ID 7034

$
0
0

On one of UAT server we are having  issue with SQL Serverices and they are stopped unexpectedly .There is failure details  in Event logs \SQL Error logs. we havent done any of the changes on server.

Event id : 7034

 

SQL Service terminated unexpectedly

$
0
0

Hi,

 SQL services are not responding.I have restarted the server and again the SQL services are not started.It show that the service terminate unexpectedly.Can onyone help me sort out this problem.

 

Oracle 10g to SQL 2008 Migration Type Mapping problem

$
0
0

I am migrating an Oracle 10g to mssql 2008 R2. I am running into a problem trying to convert data types. I have changed the project Type Mappings (and under tables) for Decimal and Numeric both to Int. I have verified under the Oracle Meatadata Explorer tables that the source type is Decimal (or Numeric) and the Target type is Int (for both). Yet when I run the convert schema and look at the tables for the SQL Server Metatdata explorer is shows data types as numeric (38,0). I would hate to have to go through each data type for each table (100+) and manually change the data type. I thought that what the Type Mapping was for. Am I missing something? Or is this a 'feature'? Thanks in advanced.

Maq


Migrate Db2 sabrix database to MSSQL

$
0
0

hi gurus,

We want to migrate our sabrix app running on db2 v9.7 LUW to windows ms sql. Can you please guide/confirm the steps to be performed to migrte the database.

any help will be appriciated.

regards,

Aj

SQL Server Migration/Upgradation

$
0
0

Hi,

How to migrate SQL server in below environment:

1. Upgrading/Migrating from Sql Server 2005 (Mirroring) to SQL Server 2008 R2 Mirroring

2. Upgrading/Migrating from Sql Server 2005 (Log-shipping) to SQL Server 2008 R2 Log-shipping

3. Upgrading/Migrating from Sql Server 2005 (Replication) to SQL Server 2008 R2 Replication

Moving SQL Server to a new machine; downtime?

$
0
0
Quick question.  Is it common to have some down time when moving sql server databases to a new physical machine?  

Extract Configuration Of Another Copy SqlServer?

$
0
0

Hi,

We have an old copy of Windows 2008r2 Sqlserver which has been up running for years.  I have been tasked with building a new server and copying the existing database over to it.  Is there some way to extract the general configuration data (features installed, the different accounts, etc) as well as the db itself?  Or, is all of that included?

Thanks,

-T


Create SQL Data script

$
0
0

Hi All,

I need to create a sql script for a SQL table data, the script should contain INSERT or UPDATE statement for each record based on the record if it exists in the destination table.

This script would then be executed on the UAT database.

There are some 500 records for which the script is to be generated.



Viewing all 1700 articles
Browse latest View live


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