Click here to Skip to main content
15,922,419 members
Home / Discussions / Database
   

Database

 
AnswerRe: NT User List Pin
Colin Angus Mackay17-Jan-06 20:54
Colin Angus Mackay17-Jan-06 20:54 
GeneralRe: NT User List Pin
Bob Zagars17-Jan-06 23:52
Bob Zagars17-Jan-06 23:52 
GeneralRe: NT User List Pin
S Douglas18-Jan-06 0:40
professionalS Douglas18-Jan-06 0:40 
GeneralRe: NT User List Pin
Bob Zagars18-Jan-06 5:46
Bob Zagars18-Jan-06 5:46 
GeneralRe: NT User List Pin
S Douglas18-Jan-06 5:53
professionalS Douglas18-Jan-06 5:53 
Questionhow to access the Sql Server Publicly Pin
raheeli17-Jan-06 18:15
raheeli17-Jan-06 18:15 
AnswerRe: how to access the Sql Server Publicly Pin
Bob Zagars17-Jan-06 20:18
Bob Zagars17-Jan-06 20:18 
QuestionMap linked server to a constant Pin
12324r32353217-Jan-06 16:34
12324r32353217-Jan-06 16:34 
I have a storeproc contain this script (I retype so maybe have some incorrect syntax) :

create storeproc Pro
@strLinkedServerName varchar(200)
As
set @sql = 'sp_addlinkedserver ' + @strLinkedServerName
sp_executesql @sql

set @sql = 'Select * from ' + @strLinkedServerName + '.dbo.Northwind.Customer'
sp_executesql @sql

You see I must always use dynamic sql to execute a query to get the Linked server name dynamically. But when use dynamic sql, it's hard for me to check the syntax, and some times it take longer time to execute these query.
So I would like to have a mapping name to linked server. For example, I have a mapping name (like constant that affect to all store in one DB, it's similar to the way you declare a variable in webconfig file and can get it from every where) that we can set somewhere, Constant = "ServerA" (linked server name).
so in my proc I can write script like this :

create storeproc Pro
As
set sp_addlinkedserver Constant

Select * from Constant.dbo.Northwind.Customer'

If you have any idea about it please tell me. Thank you very much,

Hieu Tang
QuestionHow to use Insert/Update/Delete.... Pin
welbert17-Jan-06 15:48
welbert17-Jan-06 15:48 
GeneralSQL Server 2005 Developer Edition Network Connections... Pin
code-frog17-Jan-06 12:51
professionalcode-frog17-Jan-06 12:51 
GeneralRe: SQL Server 2005 Developer Edition Network Connections... Pin
S Douglas18-Jan-06 1:07
professionalS Douglas18-Jan-06 1:07 
QuestionSQL SERVER 2005 BIG PROBLEM Pin
Micu Radu17-Jan-06 6:07
Micu Radu17-Jan-06 6:07 
AnswerRe: SQL SERVER 2005 BIG PROBLEM Pin
Colin Angus Mackay17-Jan-06 10:14
Colin Angus Mackay17-Jan-06 10:14 
Questioncreate new GUID in UDF? Pin
waterispoison17-Jan-06 5:38
waterispoison17-Jan-06 5:38 
AnswerRe: create new GUID in UDF? Pin
Colin Angus Mackay17-Jan-06 10:12
Colin Angus Mackay17-Jan-06 10:12 
QuestionReg:Data is not visible Pin
Bhasker P17-Jan-06 4:57
Bhasker P17-Jan-06 4:57 
AnswerRe: Reg:Data is not visible Pin
Colin Angus Mackay17-Jan-06 5:04
Colin Angus Mackay17-Jan-06 5:04 
GeneralRe: Reg:Data is not visible Pin
Bhasker P18-Jan-06 0:15
Bhasker P18-Jan-06 0:15 
Questionupdating many records in the Table Pin
minkinin17-Jan-06 2:07
minkinin17-Jan-06 2:07 
AnswerRe: updating many records in the Table Pin
Colin Angus Mackay17-Jan-06 2:30
Colin Angus Mackay17-Jan-06 2:30 
GeneralRe: updating many records in the Table Pin
minkinin17-Jan-06 21:38
minkinin17-Jan-06 21:38 
Questiondebugging SQL Server Stored Procedures in .NET ide Pin
culbysl17-Jan-06 0:57
culbysl17-Jan-06 0:57 
AnswerRe: debugging SQL Server Stored Procedures in .NET ide Pin
André Ziegler17-Jan-06 3:57
André Ziegler17-Jan-06 3:57 
QuestionNull Match Prob Pin
tadhg8816-Jan-06 23:41
tadhg8816-Jan-06 23:41 
Questionmultiple update Pin
sood_is_in16-Jan-06 22:35
sood_is_in16-Jan-06 22:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.