Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
insanepaul
Posting Yak Master
178 Posts |
Posted - 2011-07-04 : 11:27:19
|
| I just come across the code below to access a stored procedure on the 'COR' database. I didn't recognise the .. notation. I thought brackets were used for this but when I tried to use brackets it didn't work. Is the code below the only way to access the SP then?EXEC COR..usp_PhoneDonation_sel_tblCORPerson |
|
|
Transact Charlie
Master Smack Fu Yak Hacker
3451 Posts |
Posted - 2011-07-04 : 11:42:50
|
| it's shorthand for COR.dbo.usp_PhoneDonation_sel_tblCORPersonCharlie===============================================================Msg 3903, Level 16, State 1, Line 1736The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION |
 |
|
|
Transact Charlie
Master Smack Fu Yak Hacker
3451 Posts |
Posted - 2011-07-04 : 11:43:24
|
| (dbo is the default schema)Charlie===============================================================Msg 3903, Level 16, State 1, Line 1736The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2011-07-04 : 11:44:48
|
EXEC COR..usp_PhoneDonation_sel_tblCORPersonThe name of the SP alone is usp_PhoneDonation_sel_tblCORPersonCOR is the databasename.. is the standard schemaYou can also write EXEC COR.DBO.usp_PhoneDonation_sel_tblCORPerson No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
insanepaul
Posting Yak Master
178 Posts |
Posted - 2011-07-04 : 12:14:20
|
quote: Originally posted by webfred EXEC COR..usp_PhoneDonation_sel_tblCORPersonThe name of the SP alone is usp_PhoneDonation_sel_tblCORPersonCOR is the databasename.. is the standard schemaYou can also write EXEC COR.DBO.usp_PhoneDonation_sel_tblCORPerson
Thanks Webfred and charlie transact - makes sense now |
 |
|
|
|
|
|