SQL 2000 Enterprise Linking Of Servers Not Pulling Data.
Dec 8, 2006
I know this is an easy one for most of you but this is new territory for me.
I am trying to link a production application database to an existing SMS database.
Both of these databases are SQL 2000. I have sa access to both of them.
I have an accreditation application that deals with internal processes within our active directory network. We are using SMS database collections to provide the discovery for reporting of this application database and I want to compare the collection to the existing data between the 2 databases.
For simplicity I will define them both.
Application Database we will call €œA-Database€?
SMS Database we will call €œB-Database€?
I have gone into the A-Database and gone to linked Servers under the security node in enterprise manager. I created a new linked database and selected the SQL Server option in the general Tab.
In the Security Tab I selected the €œBe made using the security context€? and used €œsa€? for the Remote login and the CORRECT sa password for the With password option.
The server options tab remain the same with €?RPC, RPC Out, & Use Remote Collation€? selected.
It appears to connect but there is not any Table or Views showing up. What am I doing wrong here and what do I need to do to link these 2 database engines so I can move forward?
Thanks,
Gene Godsey
View 7 Replies
ADVERTISEMENT
Sep 27, 2007
I am in the middle of a major migraton project, moving from x86 SQL 2000 to IA64 SQL 2005. I have a business need to link to several legacy servers. I have a number of problems I am trying to solve.
1) Linking a Kerberos server to a non-Kerberos server.
2) Linking x64 or IA64 servers to x86 servers.
3) Linking SQL 2005 to SQL 2000.
Two of the errors I am encountering are:
------------------------------
TCP Provider: An existing connection was forcibly closed by the remote host.
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
OLE DB provider "SQLNCLI" for linked server "SCDC250DB" returned message "Communication link failure".
(Microsoft SQL Server, Error: 10054)
------------------------------
And
------------------------------
The OLE DB provider "SQLNCLI" for the linked server "SCDC250DB" reported an error. Authentication failed.
Cannot initialize the data source object of OLE DB provider "SQLNCLI" for linked server "SCDC250DB".
OLE DB provider "SQLCLI" for linked server "SCDC250DB" returned message "Invalid authorization specification".
(Microsoft SQL Server, Error: 7399)
If someone has worked through these problems before, I would appreciate it if you could direct me to the relevant documentation to resolve these issues.
Thanks!
Brandon Forest
Database Administrator
Data & Web Services Team
Sutter Connect Information Technologyforesb@sutterhealth.org
View 2 Replies
View Related
Jun 5, 2006
Hello,
I was wondering whether it is possible to query linked servers in SQL Server Management Studio Express 2005 if those servers linked to are SQL Server 2000 machines?
I have added some linked servers to express and queried them, however the login timeout is expiring. I thought it might be because of an incompatability.
Cheers,
Damien.
View 1 Replies
View Related
Jun 27, 2001
I need to have database access via an
application to both sql server 6.5 & 7
the 6.5 uses mixed mode security,
the 7.0 uses trusted. Using
sp_addlinkedsrvlogin I can get from a client to
the 7.0 server, but not to the 6.5.
Is this even possible?
View 2 Replies
View Related
Jul 23, 2005
Two SQL Servers1) "Test"Payroll DBTransaction Tablepr_SubmitTransaction in Payroll DB********************************************2) "Production"Payroll DBTransaction TablePr_SubmitTransaction in Payroll DBAccounts DBPr_VerifyAccounts (@AcctNumber)********************************************I want to use same pr_VeriftAccounts in both test and productionPr_SubmitTransaction stored procedure.The pr_SubmitTransaction in production works fine when I sayExec Payroll.dbo.pr_VerifyAccounts as it is on same server. (WORKSFINE)Exec [PRODUCTION].Payroll.dbo.pr_VerifyAccounts (DOES NOT WORK)Should I use sp_addlinkedServer ?? to do this ?. Please provide me somefeedback.I know I can acheive this by front end, but I was do it in one storedprocedure.
View 7 Replies
View Related
Sep 6, 2007
We have reporting services on 1 server, while the data comes off of another which does not have rs and on sql server 2000. I was able to build the reports and deploy it. But the report wont render. The error message is shown below.
My question is will linking servers work and if anyone has done this could you pl provide an example?
Thanks in advance
An error has occurred during report processing. (rsProcessingAborted)
Cannot create a connection to data source 'sds1'. (rsErrorOpeningConnection)
For more information about this error navigate to the report server on the local server machine, or enable remote errors
View 2 Replies
View Related
Nov 6, 2000
I'm using SQl 7.0. After setting up a linked server. I recieve this
error when attempting to connect to the linked server: 'Error 7302 -
could not create an instance of OLEDB provider 'SQLOLEDB'. Any ideas??
I do not recieve this error when linking from another server.
Thanks,
Steve Bajada
View 2 Replies
View Related
Jul 20, 2005
Hi.I have two sql servers and have ran exec sp_addlinkedserver 'ACSPSM', N'SQLServer' to link one to the other and also vise versa.Each server has two users permissioned.My problem is when ever I try to do something that does a remote write I getthe follow error messageMicrosoft OLE DB Provider for SQL Server error '80040e14'[OLE/DB provider returned message: Cannot start more transactions on thissession.]Alsowhen I try and manually run a stored procedure, I get:Remote tables are not updatable. Updatable keyset-driven cursors on remotetables require a transaction with the REPEATABLE_READ or SERIALIZABLEisolation level spanning the cursor.(1 row(s) affected)(1 row(s) affected)(50 row(s) affected)Server: Msg 7395, Level 16, State 2, Procedure ams_Move_Stock_To_PSM, Line65Unable to start a nested transaction for OLE DB provider 'SQLOLEDB'. Anested transaction was required because the XACT_ABORT option was set toOFF.[OLE/DB provider returned message: Cannot start more transactions on thissession.]Can anyone suggest how I resolve this.FYIDatabase Creation Script: (both database are the same scripts but db namesare changed)CREATE DATABASE [msmprim] ON (NAME = N'msmprim_Data', FILENAME =N'D:ACS_DBdatamsmprim_Data.MDF' , SIZE = 2000, FILEGROWTH = 10%) LOG ON(NAME = N'msmprim_Log', FILENAME = N'D:ACS_DBlogsmsmprim_Log.LDF' , SIZE= 2000, FILEGROWTH = 10%)COLLATE Latin1_General_CI_ASGOexec sp_dboption N'msmprim', N'autoclose', N'false'GOexec sp_dboption N'msmprim', N'bulkcopy', N'false'GOexec sp_dboption N'msmprim', N'trunc. log', N'false'GOexec sp_dboption N'msmprim', N'torn page detection', N'true'GOexec sp_dboption N'msmprim', N'read only', N'false'GOexec sp_dboption N'msmprim', N'dbo use', N'false'GOexec sp_dboption N'msmprim', N'single', N'false'GOexec sp_dboption N'msmprim', N'autoshrink', N'false'GOexec sp_dboption N'msmprim', N'ANSI null default', N'false'GOexec sp_dboption N'msmprim', N'recursive triggers', N'false'GOexec sp_dboption N'msmprim', N'ANSI nulls', N'false'GOexec sp_dboption N'msmprim', N'concat null yields null', N'false'GOexec sp_dboption N'msmprim', N'cursor close on commit', N'false'GOexec sp_dboption N'msmprim', N'default to local cursor', N'false'GOexec sp_dboption N'msmprim', N'quoted identifier', N'false'GOexec sp_dboption N'msmprim', N'ANSI warnings', N'false'GOexec sp_dboption N'msmprim', N'auto create statistics', N'true'GOexec sp_dboption N'msmprim', N'auto update statistics', N'true'GOUser Creation Script:/****** Object: Login MSM Script Date: 31/10/2002 10:41:26 ******/use [msmprim]GOdeclare @sqlLoginName nvarchar(32) select @sqlLoginName = N'msm'declare @UserPassword nvarchar(32) select @UserPassword = N'wibble'declare @logindb nvarchar(132) select @logindb = N'msmprim'declare @loginlang nvarchar(132) select @loginlang = N'British English'if not exists (select * from master.dbo.syslogins where loginname =@sqlLoginName)BEGINif @logindb is null or not exists (select * from master.dbo.sysdatabaseswhere name = @logindb)select @logindb = N'master'if @loginlang is null or (not exists (select * from master.dbo.syslanguageswhere name = @loginlang) and @loginlang <> N'British English')select @loginlang = @@languageexec sp_addlogin @sqlLoginName, @UserPassword, @logindb, @loginlangEND/****** Object: User sm_web Script Date: 31/10/2002 10:41:26 ******/if not exists (select * from dbo.sysusers where name = @sqlLoginName and uid< 16382)EXEC sp_grantdbaccess @sqlLoginName, @sqlLoginName/****** Object: User sm_web Script Date: 31/10/2002 10:41:26 ******/exec sp_addrolemember N'db_datareader', @sqlLoginName/****** Object: User sm_web Script Date: 31/10/2002 10:41:26 ******/exec sp_addrolemember N'db_datawriter', @sqlLoginName/****** Object: User sm_web Script Date: 31/10/2002 10:41:26 ******/exec sp_addrolemember N'db_owner', @sqlLoginNameGOuse [msmprim]GOdeclare @sqlLoginName nvarchar(32) select @sqlLoginName = N'psm'declare @UserPassword nvarchar(32) select @UserPassword = N'wibble'declare @logindb nvarchar(132) select @logindb = N'msmprim'declare @loginlang nvarchar(132) select @loginlang = N'British English'if not exists (select * from master.dbo.syslogins where loginname =@sqlLoginName)BEGINif @logindb is null or not exists (select * from master.dbo.sysdatabaseswhere name = @logindb)select @logindb = N'master'if @loginlang is null or (not exists (select * from master.dbo.syslanguageswhere name = @loginlang) and @loginlang <> N'British English')select @loginlang = @@languageexec sp_addlogin @sqlLoginName, @UserPassword, @logindb, @loginlangEND/****** Object: User sm_web Script Date: 31/10/2002 10:41:26 ******/if not exists (select * from dbo.sysusers where name = @sqlLoginName and uid< 16382)EXEC sp_grantdbaccess @sqlLoginName, @sqlLoginName/****** Object: User sm_web Script Date: 31/10/2002 10:41:26 ******/exec sp_addrolemember N'db_datareader', @sqlLoginName/****** Object: User sm_web Script Date: 31/10/2002 10:41:26 ******/exec sp_addrolemember N'db_datawriter', @sqlLoginName/****** Object: User sm_web Script Date: 31/10/2002 10:41:26 ******/exec sp_addrolemember N'db_owner', @sqlLoginNameGO
View 1 Replies
View Related
Oct 16, 2015
I have two production servers with two different databases and I was thinking about using Linked Servers, but never did this before.Found this stored procedure
sp_addlinkedserver('servername').Would you just execute this and then run your query after the SP?
View 8 Replies
View Related
Oct 26, 2006
Hello all!
How do I go about linking two SQL Server Express servers? I can't seem to find information on this.
Also, I need to import data from MSDE. Is there anyway to do this?
Regards,
Andrew Cappella-Pakos
View 1 Replies
View Related
Jun 21, 2007
Hello,I have a problem. I've linked MySql server to MsSql, in MySql I have atable with Latvian data(character set is ucs2, ucs2_general_ci) andthe problem is that when I use openquery to read data from MySQLserver, some characters are not translated correctly! I receivequestion symbols instead of Latvian special characters.Maybe someone had this kind of problem with collation?
View 2 Replies
View Related
Nov 17, 2006
Hi
I have a production system running sql 2000 server 32 bit
Now i am planning to move to SQL server 2005 64 bit setup .
I need to have a set up of both SQL 2000 and sql 2005 in parallel for some time until it is sure that the sytem can completly move .
The problem is how do i synchronize the data in the two servers when they are operating parallely.....
Please advice.
Thanks in advance......
View 1 Replies
View Related
Dec 8, 1999
I have installed 7.0 on my desktop and I am trying to use the Enterprise Manager. I am trying to register 6.5 servers and keep getting the SQL Server Enterprise Manager message "Warning - The client and server codepages do not match. Some ANSI character mappings may not be possible".
I have been told that I can install 6.5 then 7.0 but it is not available.
Anybody have any solutions?
Thanks in advance,
Ivan
View 3 Replies
View Related
Jul 20, 2007
Hi,
I have a default instance that is Server1 (2000) and a named instance Server12005 (2005)
How do I link theses servers together so that my 2005 database can query the 2000 database.
Cheers
Leon
View 1 Replies
View Related
Oct 23, 2004
Hi, I need to link an Access 97 database to sql server 2000. I can't use Enterprise Manager so I have created a simple asp.net page using sp_addlinkedserver and sp_addlinkedsrvlogin.
The mdb file is on a network share, then I have permissions problems: here is a sample
sp_addlinkedserver 'test', 'Access 97', 'Microsoft.Jet.OLEDB.4.0',
'\SVKNFS080Pshareaccess97db1.mdb', 'efco'
sp_addlinkedsrvlogin 'test', false, 'sa', 'Admin', NULL
I have no problems executing these stored procedures (the linked server is added in sysservers table), but when I try to query the access database
SELECT * FROM test...profile
I get this error
Microsoft][ODBC SQL Server Driver][SQL Server][OLE/DB provider returned message:
The Microsoft Jet database engine cannot open the file '\SVKNFS080Pshareaccess97dboutlet.mdb'. It is already opened exclusively by another user, or you need permission to view its data.]
The mdb file is not locked, I think is a permission's problem.
Can anyone help me ?
Thanks in advance
View 1 Replies
View Related
Aug 8, 2007
I am trying to link an existing SQL 2000 server to a new 2005 box, but for some reason it will not link. I tried another 2000 server and that one worked perfectly well.
When I link it and perform a simple query...
select a, b from [server1].[db1].[dbo].tablec
I receive a 7314 message with text "OLE DB provider "SQLNCLI" for linked server "server1" does not contain the table "].[db1].[dbo].tablec". The table either does not exist or the current user does not have permissions on that table.
What's odd is that I was able to link the problematic server to other SQL 2000 servers with no previous issues.
Any ideas?
Thanks,
Steve
View 3 Replies
View Related
Jul 23, 2005
I need to connect SQL Server 2000 to DB2 on z/OS through DB2 Connect 8.I can successfully connect and query data through a System DSN, buttrying to link the server using this DSN and MSDASQL fails (can't seemto find the DB2 Connect server). I've also tried IBM's OLE/DB driver(IBMDADB2).Has anyone successfully linked to DB2 on a mainframe through DB2Connect 8.x via either ODBC or OLE/DB drivers?
View 3 Replies
View Related
Nov 14, 2007
I have SQL Server 2005 on IA based server and SQL Server 2000 and I have to make linked server on SQL 2005. But I had an error: The OLE DB provider "SQLNCLI" for linked server "DENEB" reported an error. Authentication failed.Cannot initialize the data source object of OLE DB provider "SQLNCLI" for linked server "DENEB".OLE DB provider "SQLNCLI" for linked server "DENEB" returned message "Invalid authorization specification". (.Net SqlClient Data Provider).
I searched Web for resolve this problem and find what i need run sql script instcat.sql for the Sql Server 2000.
Script was saccesuful complete, but problem did not resolve.
Please help me!
View 1 Replies
View Related
Jul 26, 2006
Hi, I am trying to use SQL Server 2005 Enterprise Edition to copy tables from my local server to my hosts server at brinkster.com. In the old version you could use DTS, but everything seems to have got far more complicated now! Please can anybody guide me in the right direction? Thanks a lot.
View 2 Replies
View Related
Jul 20, 2005
Hello,We have a database in MS SQL 2000 and I'm trying to link to it from MSAccess XP. I've created a user with full access to one specific tablein the MS SQL database, but Access won't write to it.I can open this table in MS Query Analyzer and log-in as the user, andI can do update, delete, and select queries just fine... but when Ilink to the table from MS Access using the same MS SQLusername/password, I can only read the data... no write or delete.Since I can update data fine in MS Query Analyzer, I assumepermissions are setup properly. Anyone know why I can not edit thelinked data from MS Access?Thanks,Alex.
View 1 Replies
View Related
Aug 6, 2013
I am having a problem trying to pull data that has apostrophe in them. How can I do this? I get this as an error
Msg 105, Level 15, State 1, Line 14
Unclosed quotation mark after the character string ''.
Select
Name
From Table
Where Name IN (CHILDREN'S ANES ASSOCS-CHOP,CHILDREN'S HEALTHCARE-CHOP,CHILDREN'S PSYCH ASSOC-CHOP,CHILDREN'S SURGICAL ASSOC-CHOP)
View 4 Replies
View Related
Jun 26, 2006
I'm trying to pull data from about 30 progress databases using DTS andscheduling the jobs to run monthly. I'd like to pull data betweenspecific dates, but for some reason, I can't figure out how to filterthe data on the progress side.I want to run a query that will pull all data fromprior-month/8/current-yearandcurrent-month/15/current-yearI'll also have to account for when it's january, make it december ofthe year before.Any ideas?thanks,M@
View 1 Replies
View Related
May 21, 2004
Hi MAK,
I got this piece of code from one of your articles:
select * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;DATABASE=c: est.xls', 'Select * from [Book1$]')
Question is, how can I use a fully qualified path for the xls file name if the file is located on the network elsewhere?is that possible with this option?
Thank you!
View 2 Replies
View Related
Dec 12, 2005
Hi friends,
I am new to MSAS world. I need help related to this. I want to pull data from MSAS cube programmatically. Only way I know is thru ODBO, but that won't help me in this case, cause I might have to drill down upto all possible intersections stored in MSAS (at least all of the stored members). Doing this thru MDX could be humongous thing, at least manipulating data taken out using ODBO.
I might be missing something out here. Can anybody help. It would also help if somebody can tell me if any other approach is poosible.
Thank you.
Abhijeet
View 3 Replies
View Related
Aug 30, 2001
Can any one tell me how to transfer bulk data from SQL Server6.5 to SQL Server2000.I have tried bcp out and bcp in to SQL Server2000 but it is taking very long time.Is there any way that I can pull the data into SQL Server2000 from SQL Server6.5.Can I use DTS feature of SQL Server2000 to pull the data from SQL Server6.5..
View 2 Replies
View Related
Feb 26, 2008
Ok I wrote a SSIS package that will pull down data from my AS/400 and populate a SQL Server table with the data.
1)The data is being pulled from my China configured AS/400. It is configured to handle DBCS
2)The SQL Server tables are configured to handle DBCS by using the nvarchar datatype.
3)When I run this package on my machine against the production server, it works perfectly.
4)When I run this package on my test SQL Server against the production server,it works perfectly.
5)When I run this package on my production SQL Server it brings down all the records, but does not bring down all the fields. Most of the character fields are left blank.(not all)
I do not understand why this is doing this. Can anyone shed any light on this problem? Thank you.
View 2 Replies
View Related
Aug 19, 2015
eventually I started using DERIVED Tables and Sub queries within them if needed. I like choking down all the queries in the selects joining them and having your result set select there to choose from all the aliases, it also resolves while doing this. So much easier IMO than using CTE's or TEMP Tables. I was big on temp tables for a while...
I'm curious though if you want to count a type of criteria in a column do you use a standard case in your inner query choking it down just for those particular counts? Then do another case on the other criteria and END AS with the alias name?
E.G.
CASE WHEN COLUMN1 = PIZZA THEN COUNT(COLUMN1) END AS PIZZACOUNT
CASE WHEN COLUMN1 = ROOTBEER THEN COUNT(COLUMN!) END AS ROOTBEERCOUNT
ETC...........
View 4 Replies
View Related
Nov 12, 2006
I have a table, multiple columns, thousands of rows.
Six of the columns is the data that i need to work with...
col1, col2, col3, col4, col5, col6
col1 and col2 - go together - example. col1 = amount col2 = description
col3 and col4 - go together col3 = amount col4 description
col5 and col6 - go together col5 amount and 6 description
i need to pull search the table based on an auto number "id" and pull in the necessary two columns that correspond with a set value in the description.
example:
if col4 has "fee applied" in the description i need to pull the amount.
Please help...
Thank you in advance
View 3 Replies
View Related
Feb 26, 2008
Ok I wrote a SSIS package that will pull down data from my AS/400 and populate a SQL Server table with the data.
1)The data is being pulled from my China configured AS/400. It is configured to handle DBCS
2)The SQL Server tables are configured to handle DBCS by using the nvarchar datatype.
3)When I run this package on my machine against the production server, it works perfectly.
4)When I run this package on my test SQL Server against the production server,it works perfectly.
5)When I run this package on my production SQL Server it brings down all the records, but does not bring down all the fields. Most of the character fields are left blank.(not all)
I do not understand why this is doing this. Can anyone shed any light on this problem? Thank you.
View 6 Replies
View Related
Feb 14, 2008
Ok I wrote a SSIS package that will pull down data from my AS/400 and populate a SQL Server table with the data.
1)The data is being pulled from my China configured AS/400. It is configured to handle DBCS
2)The SQL Server tables are configured to handle DBCS by using the nvarchar datatype.
3)When I run this package on my machine against the production server, it works perfectly.
4)When I run this package on my test SQL Server against the production server,it works perfectly.
5)When I run this package on my production SQL Server it brings down all the records, but does not bring down all the fields. Most of the character fields are left blank.(not all)
I do not understand why this is doing this. Can anyone shed any light on this problem? Thank you.
View 10 Replies
View Related
Nov 12, 2007
So this could be a long story.
Server1 = Previous "Test box", Windows Server 2003 Standard, SQL 2005 Standard SP1 with hotfixes, 2 processor 4 gig RAM
Server2 = New "Box for production", Windows Server 2003 Enterprise, SQL 2005 Standard SP1 with hotfixes, 2 Dual Core Processor, 16 gig Ram
This is for a datawarehouse environment. I pull a lot of data every night from an Oracle database. On Server1 the process took about an hour to pull all my data accross, on Server2 it takes more than 3 hours. I use SSIS packages to pull the data accross.
Even just running an OPENQUERY statement takes a lot longer. On Server1 returned about 150K record in 1.5 minutes and now on Server2 it only return 40K.
Have I missed a setting on my re-install. It the same SQL build number, SP_Configure has exactly the same settings and everything seems the same. I ftp'ed a file from the oracle box to each of my boxes and had very similar results, so it doesn't seem to be a network issue.
Any help would be much appreciated, is there anything that would cause SQL to pull data 3 times slower from an external datasource?
Thanks in advance guys,
Regards.
View 5 Replies
View Related
Jul 11, 2007
Hi,
I have an MS-Access database on a shared drive.The Access database has tables linked to a SQL server database.When I try to query the tables in MS-Access database by accessing the share drive,I get the ODBC--call failed error.So I tried creating an ODBC driver for the SQL Server and when I try to link the tables,no tables are displayed.Can anyone help me out with this problem?
-Ruth
View 3 Replies
View Related
Jan 11, 2006
Hey guys,
I have created an asp.net page where users can select multiple items and then submit the form. I would like to return related items back. The catch is, I want to only return items that are related to all of the selected items.
I've created a SQL Procedure that puts each of the inputted item's ItemId in to a temp table, I have a second table called RelatedItems which I use as my junction table that has ItemId, and ReleatedItemId, I then have my Item table that has the data I want to get to (I've excluded this because I have no trouble pulling out data once I have an ItemId)
I can pull out all related ItemIds with a simple join, however I don't know where to start when it comes to pulling out only items related to all ItemIds in the @TempTable.
Any help or suggestions would be great.
Thanks,
Matt
View 1 Replies
View Related