Register for your free account! | Forgot your password?

You last visited: Today at 01:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Hello guys

Discussion on Hello guys within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 122
Received Thanks: 12
Hello guys

I have never worked with linked servers before. And been searching 3 days for a explaination on how to config credentials on the Query ('game', 'IP', 'Password', 'sa Account') here is the script

PHP Code:
/* Add linked servers */

IF NOT EXISTS (SELECT srvname FROM master..sysservers WHERE srvname='game')
BEGIN
    EXEC sp_addlinkedserver 
'game','','SQLOLEDB','127.0.0.1';
    
EXEC sp_addlinkedsrvlogin 'game','false',null,'Shaiya','Shaiya123';
END

exec sp_serveroption 
@server='game', @optname='rpc', @optvalue='true';
exec sp_serveroption @server='game', @optname='rpc out', @optvalue='true';

IF 
NOT EXISTS (SELECT srvname FROM master..sysservers WHERE srvname='PS_DEFINEDB')
BEGIN
    EXEC sp_addlinkedserver 
'PS_DEFINEDB','','SQLOLEDB','127.0.0.1';
    
EXEC sp_addlinkedsrvlogin 'PS_DEFINEDB','false',null,'Shaiya','Shaiya123';
END

exec sp_serveroption 
@server='PS_DEFINEDB', @optname='rpc', @optvalue='true';
exec sp_serveroption @server='PS_DEFINEDB', @optname='rpc out', @optvalue='true';

IF 
NOT EXISTS (SELECT srvname FROM master..sysservers WHERE srvname='PS_NCASH')
BEGIN
    EXEC sp_addlinkedserver 
'PS_NCASH','','SQLOLEDB','127.0.0.1';
    
EXEC sp_addlinkedsrvlogin 'PS_NCASH','false',null,'Shaiya','Shaiya123';
END

exec sp_serveroption 
@server='PS_NCASH', @optname='rpc', @optvalue='true';
exec sp_serveroption @server='PS_NCASH', @optname='rpc out', @optvalue='true';

IF 
NOT EXISTS (SELECT srvname FROM master..sysservers WHERE srvname='PS_USERDB')
BEGIN
    EXEC sp_addlinkedserver 
'PS_USERDB','','SQLOLEDB','127.0.0.1';
    
EXEC sp_addlinkedsrvlogin 'PS_USERDB','false',null,'Shaiya','Shaiya123';
END

exec sp_serveroption 
@server='PS_USERDB', @optname='rpc', @optvalue='true';
exec sp_serveroption @server='PS_USERDB', @optname='rpc out', @optvalue='true';

IF 
NOT EXISTS (SELECT srvname FROM master..sysservers WHERE srvname='PS_GAMEDB01')
BEGIN
    EXEC sp_addlinkedserver 
'PS_GAMEDB01','','SQLOLEDB','127.0.0.1';
    
EXEC sp_addlinkedsrvlogin 'PS_GAMEDB01','false',null,'Shaiya','Shaiya123';
END

exec sp_serveroption 
@server='PS_GAMEDB01', @optname='rpc', @optvalue='true';
exec sp_serveroption @server='PS_GAMEDB01', @optname='rpc out', @optvalue='true';

IF 
NOT EXISTS (SELECT srvname FROM master..sysservers WHERE srvname='PS_USERDB01')
BEGIN
    EXEC sp_addlinkedserver 
'PS_USERDB01','','SQLOLEDB','127.0.0.1';
    
EXEC sp_addlinkedsrvlogin 'PS_USERDB01','false',null,'Shaiya','Shaiya123';
END

exec sp_serveroption 
@server='PS_USERDB01', @optname='rpc', @optvalue='true';
exec sp_serveroption @server='PS_USERDB01', @optname='rpc out', @optvalue='true'
Dotzie is offline  
Old 08/21/2013, 22:01   #2
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Quote:
Originally Posted by Dotzie View Post
you want to insert it into query?
AxelMac is offline  
Reply


Similar Threads Similar Threads
Need help guys..
09/14/2010 - Grand Chase - 0 Replies
Y is it there is a CODE needed in sir craymel hack.. i forgot the PW of the adminstrator..is it OK if i derectly run the hack??:D
Hi Guys :D
08/01/2010 - Say Hello - 1 Replies
hi all.. im new.. i need zczs loader.. pls help me.. i need link :mofo:
Hi guys...
07/29/2010 - Dekaron Trading - 2 Replies
I'm new here and im totally confused... So if you're trading with someone, a GameHi account. isn't impossible to not be scammed. They basically give you the secret answer. So yeah you know it...but so do they. Meaning they can just take the secret answer, and with that can change them email to the account. With THAT they can just take the damn account back.. help me out D:



All times are GMT +2. The time now is 01:47.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.