Click here to Skip to main content
15,902,112 members
Home / Discussions / Database
   

Database

 
Questionxp_cmdshell [modified] Pin
It_tech26-Jun-10 23:27
It_tech26-Jun-10 23:27 
AnswerRe: xp_cmdshell Pin
J4amieC27-Jun-10 21:53
J4amieC27-Jun-10 21:53 
GeneralRe: xp_cmdshell Pin
It_tech28-Jun-10 2:21
It_tech28-Jun-10 2:21 
GeneralRe: xp_cmdshell Pin
J4amieC28-Jun-10 3:32
J4amieC28-Jun-10 3:32 
GeneralRe: xp_cmdshell Pin
It_tech28-Jun-10 4:09
It_tech28-Jun-10 4:09 
GeneralRe: xp_cmdshell [modified] Pin
It_tech28-Jun-10 3:28
It_tech28-Jun-10 3:28 
QuestionQuery for multiple occurance Pin
Nikhil Bhivgade26-Jun-10 2:16
professionalNikhil Bhivgade26-Jun-10 2:16 
AnswerRe: Query for multiple occurance [Solved] Pin
thatraja26-Jun-10 4:02
professionalthatraja26-Jun-10 4:02 
QuestionJoin tables from different server Pin
Naunt24-Jun-10 23:58
Naunt24-Jun-10 23:58 
AnswerRe: Join tables from different server Pin
Covean25-Jun-10 0:55
Covean25-Jun-10 0:55 
AnswerRe: Join tables from different server Pin
CitrusTech25-Jun-10 1:02
CitrusTech25-Jun-10 1:02 
AnswerRe: Join tables from different server Pin
J4amieC25-Jun-10 1:29
J4amieC25-Jun-10 1:29 
AnswerRe: Join tables from different server Pin
Naunt25-Jun-10 3:00
Naunt25-Jun-10 3:00 
QuestionJan-December chart with specific information Pin
Dave McCool24-Jun-10 22:44
Dave McCool24-Jun-10 22:44 
AnswerRe: Jan-December chart with specific information Pin
riced25-Jun-10 1:21
riced25-Jun-10 1:21 
GeneralRe: Jan-December chart with specific information Pin
Dave McCool25-Jun-10 1:39
Dave McCool25-Jun-10 1:39 
Questionsql function to calculate work hours of an employee Pin
Thanusree Duth24-Jun-10 21:03
Thanusree Duth24-Jun-10 21:03 
AnswerRe: sql function to calculate work hours of an employee Pin
thatraja24-Jun-10 23:56
professionalthatraja24-Jun-10 23:56 
QuestionQuery to get all row values as comma separated Pin
indian14324-Jun-10 9:14
indian14324-Jun-10 9:14 
AnswerRe: Query to get all row values as comma separated Pin
Mycroft Holmes24-Jun-10 11:55
professionalMycroft Holmes24-Jun-10 11:55 
QuestionHow to avoid specification of return parameters in an inline table function Pin
jophinmichael24-Jun-10 3:05
jophinmichael24-Jun-10 3:05 
QuestionLogin Fail for user 'XYZ' Pin
Sasmi_Office24-Jun-10 2:19
Sasmi_Office24-Jun-10 2:19 
Dear Friend's,

My Issue scenario is as follow's

i have two servers Name
"Server_A"
"Server_B"


In "Server_A" i have one Database "DB1"
In "Server_B" i have one Database "DB2"


in Database "DB1" of Server "Server_A" i have one table "tbl_ListOfCountry"

now as per my business logic that table must be centralize where my client will update information and i need to use this table data in "Server_B".

For that i have create one procedure which pull all the data of table "tbl_ListOfCountry" from "Server_A".

for that i have created Synonym "tbl_ListOfCountry"
using following syntex

CREATE SYNONYM [dbo].[tbl_ListOfCountry] FOR [Server_A].[DB1].[dbo].[tbl_ListOfCountry]


now for security purpose i have created one user "user1" with "Server Role" as "Public" and "User Mapping" as "db_datareader", "db_datawriter" and "public" in "Server_B"

and Grant As Execute Permission of this user to my procedure "Proc1" which use to pull the record.

now the main issue is started

whenever i execute that procedure "Proc1" using "user1" login instead of "sa" it give me error

Msg 18456, Level 14, State 1, Line 1
Login failed for user 'user1'.

Please, help me to overcome this issue...


Thanks in advanced..
Sasmi

QuestionRe: Login Fail for user 'XYZ' Pin
Chris Meech24-Jun-10 2:53
Chris Meech24-Jun-10 2:53 
AnswerRe: Login Fail for user 'XYZ' Pin
Sasmi_Office24-Jun-10 4:38
Sasmi_Office24-Jun-10 4:38 
GeneralRe: Login Fail for user 'XYZ' Pin
Chris Meech24-Jun-10 4:46
Chris Meech24-Jun-10 4:46 

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.