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

Error Connecting to SQL server Management Studio 2008

$
0
0

Good Day ,

Innitally my prod server was running with SQL server 2008 and i tried to install some of the component from SQL server Configuration Center using SQL Server 2008 R2 . Those coomponent i installed was Client Tools Connectivity , Clients Tools SDK , Bwrd Compatability , Client Connectivity SDK from media SQL Server 2008 R2. Now once restarted the server i couldnt access to the existing management studio nor the database from the server itself. But i could connect and view the objects from SQL connection to this server.The error pop up was as following:

===================================

Object reference not set to an instance of an object. (ObjectExplorer)

------------------------------
Program Location:

   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.SystemObjectAccessHandler.get_HideSystemObjects()
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.SystemObjectAccessHandler.Visible(INodeInformation source)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.IsNodeVisible(NavigableItem item)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildStaticItem(IList`1 nodes, INodeInformation source, INavigableItem sourceItem)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.Build(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.GetChildren(IGetChildrenRequest request)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ExplorerHierarchyNode.BuildChildren(WaitHandle quitEvent)


Routing in MS SQL 2012

$
0
0

Hi,

I would like to perform routing in MS SQL 2012 which is going to be similar like pg routing ?

Actually in pgrouting I'll do the following steps to create a routable network.

1)create a database routing with template "template_routing"


2)create table "road_network" with following constraints
----------------------------------------------------------------
CHECK (st_ndims(the_geom) = 2)
CHECK (geometrytype(the_geom) = 'MULTILINESTRING'::text OR the_geom IS NULL)
CHECK (st_srid(the_geom) = 4030)

Then
-- @ CREATE INDEX FOR THE ROAD TABLE -------------------- IMPORTANT

CREATE INDEX spatialindex_road
 ON road_network
 USING gist
 (the_geom);

3)Perform following queries
-------------------------

ALTER TABLE road_network ADD COLUMN "source" integer;
ALTER TABLE road_network ADD COLUMN "target" integer;

SELECT assign_vertex_id('road_network', 0.00001, 'the_geom', 'gid');

CREATE INDEX source_idx ON road_network("source");
CREATE INDEX target_idx ON road_network("target");

ALTER TABLE road_network  ADD COLUMN length double precision;
UPDATE road_network  SET length = length(the_geom);


ALTER TABLE road_network  ADD COLUMN reverse_cost double precision;
UPDATE road_network  SET reverse_cost = length;

ALTER TABLE road_network  ADD COLUMN x1 double precision;
ALTER TABLE road_network  ADD COLUMN y1 double precision;
ALTER TABLE road_network  ADD COLUMN x2 double precision;
ALTER TABLE road_network  ADD COLUMN y2 double precision;

UPDATE road_network  SET x1 = x(ST_PointN(the_geom, 1));
UPDATE road_network  SET y1 = y(ST_PointN(the_geom, 1));
UPDATE road_network  SET x2 = x(ST_PointN(the_geom, ST_NumPoints(the_geom)));
UPDATE road_network  SET y2 = y(ST_PointN(the_geom, ST_NumPoints(the_geom)));
alter table road_network add column cost double precision default 0;
update road_network set cost=0.1 where type='NH';
update road_network set cost=0.2 where type='SH';
update road_network set cost=0.3 where type='major';
update road_network set cost=0.4 where type='minor';
update road_network set cost=1.2 where type='colony';
update road_network set cost=0.8 where type='third';
4)

Now network table created
To check 

Run: 
run this query on ur postgreSQL....
assign table name name and create a table

CREATE TABLE shortest_path_astar_table_3(gid int4) with oids;
SELECT AddGeometryColumn( 'shortest_path_astar_table_3', 'the_geom', 4030, 'MULTILINESTRING', 2 );
INSERT INTO shortest_path_astar_table_3(the_geom) 
SELECT the_geom FROM astar_sp_directed('road_network',37,43,true,true);

Open "shortest_path_astar_table_3" on QGIS and check the path

Is there any similar way to perform similar queries in SQL ?

Memory Issues after upgrading to Sql server 2012 sp1 from 2008 r2

$
0
0

Hello All,

We are seeing Memory issues (Server is running out of memory)on sql server 2012 after upgrading from 2008r2 did any one encountered this kind of issue.we have 256 GB of RAM before it was just around 50 GB and before there were no issues can some one help me how to troubleshoot this issue.

Any help is highly appreciated.

Thanks,

AK

Run-time error '-2147217887 (80040e21)'

$
0
0

Welcome

When you export the tables from MS Access to SQLServer request some time it correctly. But after a week of proper work suddenly realize you can not query for the last days. For instance when Data_od_fu = "2014-04-04" and Data_do_fu = "2014-04-08" query is good. When I Data_od_fu = "2014-04-07" and Data_do_fu = "2014-04-08" I have a problem. In general, I have no idea what is wrong and where to look for solutions. Please pmomoc. Thank you.

"SELECT " & _
                    "Towar.Id_towaru AS Id_towaru, " & _
                    "Towar.Nazwa AS Nazwa_towaru, " & _
                    "ROUND(SUM(Towar_wydanie.Waga),3) AS Ilosc_wydania, " & _
                    "SUM(ROUND(Towar_wydanie.Waga*Towar_wydanie.Aktualna_cena,2)) AS Wartosc_wydania " & _
                "FROM " & _
                    "Wydanie, " & _
                    "Towar_wydanie, " & _
                    "Odbiorca, " & _
                    "Towar " & _
                "WHERE " & _
                    "Wydanie.Id_wydania = Towar_wydanie.Id_wydania " & _
                    "AND Wydanie.Data >= '" & Data_od_fu & "' " & _
                    "AND Wydanie.Data <= '" & Data_do_fu & "' " & _
                    "AND Odbiorca.Id_odbiorcy = Wydanie.Id_odbiorcy " & _
                    "AND Odbiorca.Id_odbiorcy <> 427 " & _
                    "AND Odbiorca.Typ_odbiorcy = '" & Typ_odbiorcy_fu & "' " & _
                    "AND Towar_wydanie.Id_towaru = Towar.Id_towaru " & _
                    "AND Towar.Wedlina = " & GetIntBoolean(Wedliny_lo) & " " & _
                "GROUP BY " & _
                    "Towar.Id_towaru, Towar.Nazwa"

Sharepoint database migration

$
0
0

For my SharePoint installation, the Sql server database that i required was installed on another PC under the same domain as my server(windows server 2008 R2). Now i created a VM(OS is windows server 2008) on hyper-V on my server and installed SQL server 2008 in it and moved the all the  SharePoint databases to the VM. I followed the link "http://technet.microsoft.com/en-us/library/cc512725(v=office.14).aspx#Prepare"to move my databases. Now even after adding the administrator users onto my new database and granting permissions i cant connect to the Central Administration page of my SharePoint site. When i use the SharePoint command shell to start CA i get "cannot access local farm". 

Performance

$
0
0

Recently we have migrated our production database from MSSQL2005 to MSSQL2008r2.

we have done all the post migration steps

Changing Compatibility 

DBCC UPDATEUSAGE(DBNAME)

DBCC CHECKDB(DBNAE)

EXEC sp_Updatestats

Our application team are complaining that they have slow performance.

we have check all the memory , hits, diksi/o all are fine.

when we investigate, we notice that the columns the tables use a lot are spatial data type, geometry. is that problem?

Please help me, what could be the cause.

THanks

Rajesh


Access to SQL Server 2012 date data type not available

$
0
0

I'm migrating databases from Access 2013 to SQL Server 2012 using the SSMA 5.2.1257 migration wizard. I'm using .Net Framework 4.5.1 &amp; Windows 7. Great tool, but I've hit a snag.

When I attempt to customize the Access source date data type mappings in SSMA, I only see these options for the SQL Server target: datetime, datetime2, datetime2(precision), smalldatetime.

I want to map to SQL Server data type date, which should be a valid SQL Server 2012 date data type.

Any suggestions or ideas on why I can't see the date data type in the SQL Server mapping choices?

Upgrade to SQL2008 to SQL2008 R2 on 32 bit 2008 server

$
0
0

Hi There

 We have 2008 32 bit server  running with SQL2008 & now we want to upgrade the it to SQL2008 R2.

 Is it possible to upgrade or install the  SQL2008 R2 on 32 bit server.

Regards

Rahul


Can't link Access table to SQL Azure

$
0
0

I'm trying to migrate an old Access database to SQL Azure so that the data can be access by a legacy VB6 app as well as it's future Azure hosted LightSwitch replacement. In order to test the migration and linking before trying it on the production server, I created a VM in Azure and copied the database to it. That test went very well. The data was migrated to Azure and the tables linked. I was able to access the data from both the legacy app as well as it's replacement.

When I went to perform the same procedure on the production server, I ran into problems. The data is converted and migrated to Azure but it will not link. I receive the following error:

Linking tables skipped because the table backup failed.

What is the issue here? It can obviously talk to SQL Azure just fine as the data is properly migrated over. But I need the tables linked so that both apps can access the same set of data.

Queries running slow after migration

$
0
0

Hi Guys,

We have just migrated database server from SQL 2000 to 2008 (Enterprise) and  few queries are running slow than SQL 2000. We have performed all post migration process(Statistics update, Rebuilding indexes) and everything is working fine except 5-7 queries which are running surprisingly slow.

We have checked the execution plan and there is difference in both plans. SQL 2008 is using different execution plan.

Can you please suggest what are the other steps that can be performed to run them fast.


SM

Migrate MS Access 2007 multi-valued fields to MS SQL 2012

$
0
0

Hi! I do have a MS Access data base (made of MS Access 2007) which has an Attachement field. As you know Attachment DataType is a multi-valued field that replaces the Object Link Embedding (OLE) Object DataType in the new Access Database (ACCDB) file format. At present the whole DB has reached to the max size which is 2GB. Since we want to use the data and add more data to it, I was tasked to findout ways of converting it to SQL server. I have tried to use Import and Export data x32 module to import data from MS Access to MS SQL Express 2012. All the data were imported except the BLOBs at the Attachement filed. Could you please help me to import those BLOBs to MS SQL DB. Thx!


How to run Exe file through Sql server agent job

$
0
0

Hello All

i have 2 servers 

1.Application Server

2.Database server

Application server has a .exe file so i wanted to run this exe file through SQL server agent job from database server.

What is the process for run this Exe file 

Can you plz suggest me step by step process


Kamal

SQL Server

$
0
0

Hello,

Actually we need to move from the old sql servers to new sql servers . May i know what are the steps we need to follow? 

our windows servers are 2008 SP1, 64bit OS and SQL servers are 2008 SP1 ,64bit.

please help me with this thanks in advance..

SQL DBA Role for MSBI

$
0
0
What are the roles and responsibilities for SQL DBA in MSBI?

Failure of database backup

$
0
0

Hello,

Trying to backup a SQL database from the Server Management Studio, getting the following error message. I am backing up the database in order to migrate it to a different server. Any help greatly appreciated (The help link supplied in the error message is dead):

TITLE: Microsoft SQL Server Management Studio
------------------------------

Backup failed for Server 'SERVERNAME'.  (Microsoft.SqlServer.SmoExtended)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.2100.60+((SQL11_RTM).120210-1917+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: The backup of full-text catalog 'ftcat_documentindex' is not permitted because it is not online. Check errorlog file for the reason that full-text catalog became offline and bring it online. Or BACKUP can be performed by using the FILEGROUP or FILE clauses to restrict the selection to include only online data.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.2100.60+((SQL11_RTM).120210-1917+)&LinkId=20476


SQL Server clustering configuration

$
0
0

Can any one explain me what is clustering, use of Clustering and what are the reasons to implement clustering

What are the prerequisites  for configuring clustering

How to configure clustering

Plz provide me step by step process if possible provide me screenshots  

 

Kamal

Detached Database missing

$
0
0

Hello,

I was working on a database in SQL Server Management Studio and detached it to upload for an assignment. However when I detached it the DB, files, and location are all missing. 

I have no idea how to recover it and the assignment is due today at 5. Its incredibly long and I'm at work, so I probably won't have time to do it again. 

If anybody could please assist I would be grateful. 

Database Jobs transfer

$
0
0

How do transfer Jobs from one SQL database to another? we are moving to a new server and I have scripted the jobs from the current server and would like to copy/import the jobs to the new server and database.

Thanks,

Craig

Error converting data type varchar to float.

$
0
0

Hi All,

I have stored procedure which does the Safe record and not safe record by using currsor.

This same stored procedure is working fine the SQL 2000 version after migrating to SQL server 2008 i am facing the Below ERROR :

Procedure usp__Safe_unsafe_record, Line 478
Error converting data type varchar to float.

Can any one Please let me know what would be the issue.

Thanks in Adavance,

Thanks,

Anil


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 ?

Viewing all 1700 articles
Browse latest View live