![]() |
|
Porsche, and the Porsche crest are registered trademarks of Dr. Ing. h.c. F. Porsche AG.
This site is not affiliated with Porsche in any way. Its only purpose is to provide an online forum for car enthusiasts. All other trademarks are property of their respective owners. |
|
![]() |
drewvw |
![]() ![]()
Post
#1
|
new england car guy ![]() ![]() ![]() Group: Members Posts: 1,631 Joined: 24-February 06 From: Boston, MA Member No.: 5,630 Region Association: North East States ![]() |
OK...in the spirit of SQL questions being answered the last couple days, i have one that i could REALLY USE SOME HELP WITH.
I am about to tear my hair out here. In a basic explanation, we are trying to setup a test environment for an application I am building. There are some existing Stored Procedures and they reference a linked server to do some of the work. For Example: the stored procs reference dbname.dbo.table where "dbname" is a linked server. For the test environment, we want to create a linked server by the same name, only it points to the test db on another server "testname" that is exactly the same as production. So do avoid having to change all the names in the stored proc The problem is we get all kinds of DTC errors depending on what options we try, but they are basically all like "cannot find 'dbname' in syslinks" or "cannot start Distributed Transaction." its driving me crazy...can anybody give me a link or a step by step on how to do what i am describing above. PLEASE... drew |
![]() ![]() |
blitZ |
![]()
Post
#2
|
Beer please... ![]() ![]() ![]() ![]() Group: Members Posts: 2,223 Joined: 31-August 05 From: Lawrenceville, GA Member No.: 4,719 Region Association: South East States ![]() |
You can always create a vew, which selects a linked table. This would be helpful transitioning from development to production environments. Create the view with same name in both environments which point to the corresponding linked table, dev or prod. In SQL 7 and later, you can do inserts, updates and selects on views.
CREATE VIEW viewName AS Select * from linkedtabe |
drewvw |
![]()
Post
#3
|
new england car guy ![]() ![]() ![]() Group: Members Posts: 1,631 Joined: 24-February 06 From: Boston, MA Member No.: 5,630 Region Association: North East States ![]() |
You can always create a vew, which selects a linked table. This would be helpful transitioning from development to production environments. Create the view with same name in both environments which point to the corresponding linked table, dev or prod. In SQL 7 and later, you can do inserts, updates and selects on views. CREATE VIEW viewName AS Select * from linkedtabe right....but that doesn't help in this case because essentially the SPs are already referencing views in many cases, which do just what suggested. |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 3rd July 2025 - 03:03 AM |
All rights reserved 914World.com © since 2002 |
914World.com is the fastest growing online 914 community! We have it all, classifieds, events, forums, vendors, parts, autocross, racing, technical articles, events calendar, newsletter, restoration, gallery, archives, history and more for your Porsche 914 ... |