Open Linked SQL Express Table In VBA
Feb 19, 2006
The following problem is in Access 2003 as front end and SQL Server Express holding the data.
I have about 50 tables in Access linked to the SSE.
When I try to open and work with the linked tables using the following code, some of the table works fine and other give error 3622.
********************************************
Dim Tab1 As Recordset, DB1 As Database, SQL1 As String
Set DB1 = CurrentDb
SQL1 = "SELECT * FROM Any_Table"
Set Tab1 = DB1.OpenRecordset(SQL1, DB_OPEN_DYNASET)
do the required work with Any_Table
Tab1.Close: Set DB1 = Nothing
********************************************
I can not figure out why some table open fine and some give error.
If I use ADO all tables will open without problem but it works much slower then the code above.
I appreciate any help.
Thanks
I just got the solution from another forum, a dbSeeChanges option must be added to the open statment.
Hope it may help someone, this issue is solved.
View 1 Replies
ADVERTISEMENT
Aug 24, 2006
Hello all.
I have uploaded a table into sql management studio express. However, when I right click on the table and try and open it, I get an error message saying;
"SQL Execution Error.
Executed SQL statement: select columnName1, columnName2 etc....
Error source: Microsoft. VisualStudio.DataTools
Error Message: Exception has been thrown by the target of an invocation"
Because of this error, I cannot manually edit the table. However, when I write a query running select * from Table X, the table does appear that way.
Any help regarding how to open the table would be very much appreciated!!
View 4 Replies
View Related
Nov 3, 2014
Post installation of SQL Server 2014 Express edition, I am able to connect to the Database Instance.
But while opening a new query window in SSMS or opening a table getting the error:
Package 'RadLangSvc.Package, RadLangSvc, Version 12.0.0.0, Culture=Neutral, Public Token=89845dcd8080cc91' failed to load
Object reference not set to an instance of an object. (mscorlib)..Have already tried installing the componentsDACProjectSystemSetup_enu.msi, TSql LanguageService_enu.msi, DACFramework_enu.msi from path VS 2010 WCU DAC.
View 5 Replies
View Related
Apr 16, 2008
We are currently running SQL Reporting Services 2000 and have the ability to open a linked report in either a new window or tab just by right-clicking on the link and selecting from the context menu. We are looking to migrate to SQL Reporting Services 2005 and when you right click on a linked report link, there is no option to open the linked report in either a new window or tab.
So my question is, is there a way to have linked reports open in either a new tab or window in SQL Reporting Services 2005? I searched this forum but all I saw were some round-about ways of accomplishing this using javascript. We have a lot of reports and would like to avoid altering each one to allow the ability to open a linked report in a new tab or window.
View 1 Replies
View Related
Dec 14, 2007
When I start Management Studio I get the following message and a suggestion to change a setting:
(I can choose to continue and the system databases appear, but the DB I created does not.)
"Unhandled exception has occurred in a component in your application. Cannot create a stable subkey under a volitile parent key."
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Any assistance is appreciated.
View 1 Replies
View Related
Jan 11, 2000
I have successfully connected to a sybase 11 database and have successfully run a couple of open query statements against this database, I have now placed this open query in a stored procedure and it works well, but when I want to pass parameter variables has part of my open query it does not like it. It asks me to declare the variable which is a parameter of the stored procedure. Is there any way I can pass in a variable value has part of my query
************************************************** *********************8
CREATE PROCEDURE qse_check_label_projectid
@projectid char(18)
AS
Select * from openquery(MRTEST32,'SELECT
Project_id
FROM
DBO.MRT_PROJECT
WHERE
Project_id = @PROJECTID ')
************************************************** ***************************
Please I believe there should be a way to pass a value through this open query function!
View 2 Replies
View Related
Jan 17, 2008
Hi Gurus,
In my code, I need to update the table on the linked server according to the XML input. A table variable is used to store the value from XML.
But the collation of the linked database doesn't match with the default collation used by the table variable, so the table join fails.
I am thinking about to open the connection to the linked server directly, and use the target database. So the table variable collation should be as same as the target database collation.
Is it possible to open the connection to the linked server in c# ?
Thanks and best regards,
Jennifer Zhao
View 5 Replies
View Related
Jan 13, 2005
Hi!
I’m having the fallowing error when I try to open/access a linked server
Error:
Error 7302: Could not create an instance of OLE DB provider 'MSOLAP.2'.
OLE DB error trace [Non-interface error: CoCreate of DSO for MSOLAP.2 returned 0x80004005].
I have already tried to create the server using SEM and also with SQL syntax in ISQLW.
Code:
EXEC sp_addlinkedserver
@server='LINKED_OLAP',
@srvproduct='',
@provider='MSOLAP.2',
@datasrc='MyServerName.MyDomain’,
@catalog='MyDataBase'
I’m allowed to create the linked server but I can’t use it.
Information:
OS: Windows 2003EE
SQL: MSSQL 2000 + SP3a
MDAC: MDAC2.8 rtm
Thanks,
Paulo
View 4 Replies
View Related
Sep 8, 2007
Hi, I was sent a .bak file which I need to open and place in sql server express. I googled this but did not come up with any clear instructions. Can some please give me a good link that explains this. Thanks
View 1 Replies
View Related
Apr 16, 2007
Hi,We have 2 servers. Server1 is a 2000 box, with SP3 (yes I know it isnot up to date). Server2 is a 2005 box, SP2.I set up Server1 (2000) to have a linked server to Server2 (2005). Thereason I did this is because we are using a stored procedure onServer2 to send mail, as we have found that using mail on 2000 doesn'talways work as advertised.When I set up the linked server on the 2000 box, for security I justset it up to use a SQL Server user on the 2005 box. The SQL Serveruser on the 2005 box has permissions to run the stored procedure forsending mail.Here's the weird thing though. When calling the stored procedure onthe 2005 box from the 2000 box, sometimes we get an error that "Thedefault database cannot be opened", and the query does not run on the2005 box. However, it only happens *sometimes*. Other times, the queryruns fine.Since the problem seeemed to be with the default database, I changedthe SQL Server user on 2005 default database to the SAME database thatcontains the stored procedure.However, I just don't understand why it's even TRYING to open thedefault database, since when we called the linked server we are doingso as, and it's referencing the default database in the name:EXEC Server2.DefaultDatabase.dbo.StoredProcedureNameHowever, after changing the user's default database to"DefaultDatabase" as shown above, the query runs fine.Why are we having this problem? That is, if I change the defaultdatabase to something other than "DefaultDatabase", then the querydoesn't run, even though the database name is referenced in the abovequery??Obviously, this is not desireable, because that means we can only runqueries that are in "DefaultDatabase", which may not always be thecase.Thanks much
View 2 Replies
View Related
Jun 25, 2015
I am facing an Issue with my SSRS-Reports. I have a stacked column chart in my report and the columns are linked to another report, a sub-report with 6 parameters. Right now after clicking the columns, the sub-report get opened in the same IE-Tab, with relevant parameters and it works out correctly. Challenge is, to open the new report in a new tab / window.
My Current situation: A Chart report, with Action “go to report” on series properties with 6 parametersChallenge: open linked sub-report in a new tab.Info 1: new path of sub-report looks like this:
http://<my_report_server>?ItemPath=<subreportName>&ExecId=qwercc45xgfvll45e4ebgjna&PingId=314x1cy4etmnky45abszeb99
Already tried with no success: I know, action “go to URL” using Expression:
="javascript:void(window.open('http://……','_blank'))"
Info 2: the parameters are like these: CompanyName; Date_From; Date_To; Title; Division; ProfitCenter.
I don’t know If I should try to create this ExecId and PingId; If there is any way to pass the through the parameters or there is another way.
View 3 Replies
View Related
Sep 19, 2007
Hi all.I am using SQL Server 2005 Express Edition as a database.I put below code to connect to my database at my Page_Load event. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim conn As sqlConnection
conn = New SqlConnection("server=SEN-M092082D001SQLEXPRESS;database=test;Trusted_Connection=Yes")
conn.open()
lblItem.Text = "Connection Opened!"
End SubAnd, I got an error when running this code. Error is:Cannot open database "test" requested by the login. The login failed. Login failed for user 'SEN-M092082D001ASPNET' Which the error points to Conn.Open. Why this happen? Do I need to configure something at the SQL Server ?
View 6 Replies
View Related
Jul 5, 2007
Hi,
I'm developing a windows forms app with a local database to be deployed on a couple of users machines. To aid deployment I'm using 'user instance' with a connection string of:
Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|gma.mdf;Integrated Security=True;User Instance=True;Connection Timeout=15;
I've started with a backup function based on the blog 'Backup and Restore with User Instance' linked to from this forum. Problem is I always get the error message 'Cannot open user default database. Login failed for user xxx'. This happens when I run in debugger or just run the exe directly.
Any help appreciated.
Dave
View 5 Replies
View Related
Sep 21, 2006
I developed a project (web application) using the Express editions.
How do I migrate the project from Express (SQL Server Express & VWD Express) to Visual Studio 2005 Standard and SQL Server Standard?
Thanks if you can answer this.
Ken
View 7 Replies
View Related
Dec 16, 2007
When I start Management Studio I get the following message and a suggestion to change a setting:
(I can choose to continue and the system databases appear, but the DB I created does not.)
"Unhandled exception has occurred in a component in your application. Cannot create a stable subkey under a volitile parent key."
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Any assistance is appreciated.
biobot
View 2 Replies
View Related
Aug 19, 2007
Hello,
I have a SQL Express database in a C# project, which I use for unit tests. However, I am getting the "unable to open SQL Express database", access is denied. I used to be able to do use it fine.
I also used to attach it to the SQL Server engine, but now I'm getting access denied there as well. I ensured that it isn't currently attached... at least, I cannot see it, but maybe its still attached somehow?
I don't know what the problem is... running out of ideas.
Thanks.
View 6 Replies
View Related
Nov 9, 2005
I have a database which was automatically created in VWD (final release
version). I want to design this database using the Management
Studio software. How can I access the database from this
tool? I am able to connect to the sql server running on my
machine however the database created for the website is not listed
there.
View 7 Replies
View Related
Mar 12, 2006
I can't seem to open my SQL Server Management Studio Express CTP anymore. I need help figuring this out. I was able to open it before.
I went to the Control Panel>Add/Remove Programs and tried to "repair" the program but nothing changes. Anytime I double-click on ssmsee.exe, the hour-glass flashes, but the program never starts. Any ideas why?
The last thing I loaded was the AdventureWorksBI.msi. I already downloaded and installed AdventureWorksDB.msi.
I have Windows 2000 Pro, I have SQL Server 2005 Express loaded, among other 2005 Express programs. No other problems.
Any clues?
I am sure that whatever the correct is to newbievsprogrammer's post at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=295166&SiteID=1 will also relate to mine as I can't seem to connect to any database either.
View 6 Replies
View Related
Jun 13, 2006
I am using SQL Server 2005 and trying to create a linked server on Oracle 10. I used the commands below:
EXEC sp_addlinkedserver
@server = 'test1',
@srvproduct = 'Oracle',
@provider = 'MSDAORA',
@datasrc = 'testsource'
exec sp_addlinkedsrvlogin
@rmtsrvname = 'test1',
@useself = 'false',
@rmtuser='sp',
@rmtpassword='sp'
When I execute
select * from test1...COUNTRY
I get the error. "The OLE DB provider "MSDAORA" for linked server "...." does not contain the table "COUNTRY". The table either does not exist or the current user does not have permissions on that table."
The 'sp' user I am connecting is the owner of the table. What could be the problem ?
Thanks a lot.
View 3 Replies
View Related
May 17, 2007
Hi Guys, how many connections does sql 2005 express allow to .mdf file. I stumpled on info on a microsoft site (actually a forum post on msdn) that sql server express allows only a single connection to an .mdf file.
Iam intrested in this because i developed reporting services reports in BIS and iam having problems. If i run a report from report manager, i have to wait for close to 20 minutes before i can be able to run my asp.net application agian. Else if i insert data or retrieve data from my asp.net application, then i have to wait again for 20 minutes or more before i can be able to run my reports else i will get an error that a connection can not be made to the database or that the database is being used by another process.
So in all cases, i have to wait for 20--30 minutes before a connection can be made to the .mdf file. i.e after running a report or after inserting or retrieving data from the database through my asp.net application.
Iam using sql sever 2005 express with advanced services and visual web developer on windows server 2003.
Any ideas or help.
View 2 Replies
View Related
Jul 13, 2005
Well, I'm to the point of giving up. If there was a 1-800 # that charged $400 /minute for support at this point I would pay it! I have been developing an ASP.net 2.0 web application that basically has login security. I have been struggling to get this thing to work. On my local machine it works fine, but when I copy the code (including the ASPNETDB.mdf that is in the APP_Data directory) over to a web server, I get to the login screen but when I attempt to login I get an error. I've tried using the SSEUTIL.exe and was unsuccessful. At this point I don't even know where to start. Can someone please help me??? The error is listed below:
Server Error in '/' Application.
Unable to open the physical file "C:InetpubWIWebApp_Dataaspnetdb.mdf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".Unable to open the physical file "C:InetpubWIWebApp_Dataaspnetdb_log.ldf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".Cannot open user default database. Login failed.Login failed for user 'NT AUTHORITYNETWORK SERVICE'.File activation failure. The physical file name "C:InetpubWIWebApp_Dataaspnetdb_log.ldf" may be incorrect.
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: Unable to open the physical file "C:InetpubWIWebApp_Dataaspnetdb.mdf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".Unable to open the physical file "C:InetpubWIWebApp_Dataaspnetdb_log.ldf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".Cannot open user default database. Login failed.Login failed for user 'NT AUTHORITYNETWORK SERVICE'.File activation failure. The physical file name "C:InetpubWIWebApp_Dataaspnetdb_log.ldf" may be incorrect.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): Unable to open the physical file "C:InetpubWIWebApp_Dataaspnetdb.mdf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".
Unable to open the physical file "C:InetpubWIWebApp_Dataaspnetdb_log.ldf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".
Cannot open user default database. Login failed.
Login failed for user 'NT AUTHORITYNETWORK SERVICE'.
File activation failure. The physical file name "C:InetpubWIWebApp_Dataaspnetdb_log.ldf" may be incorrect.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +684835
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +207
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1751
System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +32
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +601
System.Data.SqlClient.SqlInternalConnectionTds..ctor(SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +159
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +346
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +445
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +304
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +85
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +126
System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +239
System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved) +815
System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +80
System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42
System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +78
System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +161
System.Web.UI.WebControls.Login.AttemptLogin() +94
System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +134
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5670
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET Version:2.0.50215.44
View 11 Replies
View Related
Apr 2, 2008
Hi,
I have a problem to connect to SQL2005 Express Database with VC++ as regular user, not window system administrator.(If i login as window system admin, everything's working fine.)
A. I tried to use SQL2005 Express Server authentication, the error msg is:
Code= 80004005 €śunspecified error€? Cannot open database ***, login failed.
1. I am using Server authentication with username and password.
2. Gave all the permission of Program FilesMicrosoft SQL ServerMSSQL.1 and Program FilesMicrosoft SQL ServerMSSQL.2 to this regular window user.
3. Connection String is:
Provider=SQLNCLI;Initial Catalog=***; User ID=***;Password=***;Data Source=***;Persist Security Info=False;Integrated Security=SSPI;
B. I tried to use Window authentication by adding User Instance, but the error is:
Code= 80004005 €śunspecified error€? MS Native Client
Description = Invalid connection string attribute.
Connection String is:
Provider=SQLNCLI;Initial Catalog=***; Data Source=***;Persist Security Info=False;User Instance=True;Integrated Security=SSPI;AttachDBFileName=directory***.mdf;
Any idea? Thanks.
View 3 Replies
View Related
Jun 13, 2006
Hello:
Can SQL Server Express open/read a .db database file that is Sybase?
View 1 Replies
View Related
Aug 17, 2006
Dear Friends
I am unable to open e new project using SQL Server management Studio Express. On the File menu it displays only "Query with current connection" and "Data base Engine Query". Please help me on thi Do I have to Install SQL Server management Studio instead of using express version. Cant I use SQL Server and SQL server management studio for deploy to make a small database for my a wharehouse. Please help me
Amila
View 1 Replies
View Related
Aug 8, 2006
I've tried everything I've read that seemed applicable but still have a problem with the same error message, cannot open user default database.
This started detaching the database.
I'm using this connection string:
connectionString="Data Source=.SQLEXPRESS;GC_CashBook.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
It's a WinForms application.
When I run in debug mode, I connect fine. I can do anything in the db in VisualStudio 2005.
Then I open the SQL Management Studio, connect to Sql Express, try to open the same database and it can't open it.
BUT...
If I stop running the VisualStudio application (I can leave VS open, but not run the app I'm developing),
and reopen SQL Management Studio, connect to Sql Express and open the same db, I can do anything.
It's not just VS and SQL either.
If I open CodeSmith and load a template I use that access the db, I can run my templates fine as long as I'm not running the application in VS or have the db open in SQL Express.
In other words, I can have one connection at a time only on this sql express db.
Before I detached it, I could have multiple connections at the same time.
I checked the properties in sql express and it says I can have multiple (4 is specified) connections at a time;
Allow remote access is also checked.
Arrow/Rick is db owner, the default database is Master.
I don't know any other information to provide.
DId I miss something? How can I get multiple connections working again on this?
Any help would be appreciated!
View 3 Replies
View Related
Apr 12, 2007
I just spent the better par of 3 days creating a prototype in ASP.Net 2.0 and SQL Server Express only to discover that nobody from outside can see it...
ERROR with impersonation=true
User does not have permission to perform this action.
ERROR with impersonation=false
Unable to open the physical file "c:inetpubwwwroot------.mdf". Operating system error 5: "5(Access is denied.)".An attempt to attach an auto-named database for file c:inetpubwwwroot-----.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
What makes this so difficult?
What am I missing?
View 9 Replies
View Related
Sep 7, 2007
Hi, I am trying to open or create a sqlexpress database within Visual Studio 2005 Professional in the App_Data folder. If I attempt either method, I get the following dialog box:Required Components MissingConnections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. Please verify the installation of the component or download from the URL: http://go.microsoft.com/fwlink/?LinkID=49251 The link above just takes you to the download page for Sql Server Express 2005. I have both SQL Server 2005 Developer and SQL Server 2005 Expression instances running. The existing database will work properly in my web application, however I cannot access it through Visual Studio.As background, I did have a problem connecting to the database via the web application, receiving a "Failed to generate a User Instance of SQL Server" error. But I was able to fix that by renaming my SQLEXPRESS folder in C:Documents and SettingsuserLocal SettingsApplication DataMicrosoftMicrosoft SQL Server Data. When the web page ran, it created another SQLEXPRESS folder.However, I cannot figure out why I am having the other issue.Thanks in advancePatrick
View 1 Replies
View Related
May 2, 2008
I'm considering upgrading from MSDE 2000 to Express 2005.
Before I do that I need to know if my linked server dependant
scheduled jobs will continue to function properly.
Here's my current configuration:
I have a local SQL Server 2000 Standard edition box linked via IP address to a remote MSDE 2000 SQL Server. This link
uses SQL authentication.
I want to upgrade the remote MSDE server to 2005 Express. Will my local 2000 SQL Server link successfully with a 2005 Express server?
Also, I have 2000 Developer Edition on my machine and am using Enterprise Manager where I have registered the remote MSDE so I can easily manage the server. Will I be able to register a 2005 Express server or will I need to upgrade my developer machine to 2005? If I do upgrade my developer machine, will I still be able to register the 2000 Standard Sql Server?
If there are any other issues with running a mixed environment like the one described here, please speak up! I want to make an informed
decision.
Thanks so much for your help!
View 1 Replies
View Related
Nov 5, 2007
I have SQL Server 2005
I have a linked server using an ODBC System DSN setup.
A DB with a view to access on of the table from the Acomba DB.
This view work just fine when I logged in using the Windows Authentification.
If I create a user (bla) with "sysadmin" as server roles
the user bla is the owner of the DB (he also created the DB)
He can't access that view. But can access any tables from the same DB
The error I keep having is the following :
Executed SQL statement : SELECT * FROM OPENQUERY(ACOMBABD, 'SELECT * FROM Customer') AS derivedtbl_1
Error Source: .NEt sqlClient DataProvider
Error Message: Cannot initialize the data srouce object of OLE DB prodiver "MSDASQL" for linked server "ACOMBA"
Major over and out
View 3 Replies
View Related
Jul 20, 2006
I have created a Linked Server (in Server Objects) and set the linked server options. Now I need to set the Provider Options. In help I can see the page for the Provider Options dialog but I cannot get to it. Books-on-line suggest right-click the provider name but that gets me a menu with only a "Refresh" selection.
How do I get to the Provider Options (or Properties) Dialog?
I see registry entries for SQL Server 2000 but I cannot find the same for SQL Server 2005.
View 6 Replies
View Related
May 17, 2008
Ok so I managed finally to get an Excel Spreadsheet to connect as a linked server.
When I right click it , go to run scripts and click on create to i can see the tab of script below:
/****** Object: LinkedServer [EXCELLINK] Script Date: 05/17/2008 08:37:04 ******/
EXEC master.dbo.sp_addlinkedserver @server = N'EXCELLINK', @srvproduct=N'Excel', @provider=N'Microsoft.Jet.OLEDB.4.0', @datasrc=N'c:PRICINGFINAL2.xls', @provstr=N'Excel 8.0'
/* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'EXCELLINK',@useself=N'False',@locallogin=NULL,@rmtuser=NULL,@rmtpassword=NULL
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'data access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'dist', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'pub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'rpc', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'rpc out', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'sub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'lazy schema validation', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'EXCELLINK', @optname=N'use remote collation', @optvalue=N'true'
Now I am not sure exactly how to go about querying to pull the data into a table.
The table I want to set will have three columns:
CREATE TABLE new_price (
item_id CHAR(12),
item_lst_lnd_cost DECIMAL(9,2),
item_prc_2 DECIMAL(9,2))
the columns in the EXCELLINK linked server spreasdsheet are named the same as the columns above. Once the table is created how do I use the linked server to import the data?
Brooks C. Davis
IT AdministratorLogistics Manager SFTF LLC dba Ashley Furniture Homestores
DELL POWEREDGE 2850 Dual Core Xeon x3 = 1xDB 1xSQL 1xTS | DELL POWEREDGE 2950 Quad Core Xeon = 1xTS | SERVER 2003 | MS SQL 2005 | PERVASIVE EMBEDDED V.9
View 1 Replies
View Related
Dec 20, 2006
Trying to set up a development environment on an XP SP2 machine with an installation of SQLExpress and Oracle 10g Express. Having been trying to create a Linked Server in SQL to access the Oracle EX database. Have had no luck using either Oracle driver or Microsoft driver. With Oracle driver get the following error on an openquery statement:
select * from openquery(xe,'select top 1 * from HR.REGIONS')
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "OraOLEDB.Oracle" for linked server "xe" reported an error. The provider did not give any information about the error.
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "xe".
I am mapping a Windows authenticated login to an Oracle login/password in the Linked Server setup. I can connect to the Oracle database fine using Oracle tools. Likewise, I can connect to SQL Server database just fine. I have set up the linked server using the Oracle Service Name in the TSNAMES.ora file as the Data Source in SQL Server. ('XE') What could I be doing wrong? What else can I check?
View 5 Replies
View Related
Jun 18, 2004
Strange one here - I am posting this in both SQL Server and Access forums
Access is telling me it can't append any of the records due to a key violation.
The query:
INSERT INTO dbo_Colors ( NameColorID, Application, Red, Green, Blue )
SELECT Colors_Access.NameColorID, Colors_Access.Application, Colors_Access.Red, Colors_Access.Green, Colors_Access.Blue
FROM Colors_Access;
Colors_Access is linked from another MDB and dbo_Colors is linked from SQL Server 2000.
There are no indexes or foreign contraints on the SQL table. I have no relationships on the dbo_ table in my MDB. The query works if I append to another Access table. The datatypes all match between the two tables though the dbo_ tables has two additional fields not refrenced in the query.
I can manually append the records using cut and paste with no problems.
I have tried re-linking the tables.
Any ideas?
Thanks,
Brad
View 4 Replies
View Related