Hi,
I am trying alter my existing Stored Procudure it is giving below error.
"Server: Msg 4064, Level 11, State 1, Procedure sp_Ex_Daily, Line 87
Cannot open user default database. Login failed."
"sp_Ex_Daily" is my SP name. we have 5 database's existing in same instance. SP is existing in "Layer" Database and the same user default database is "DataWork".
I make the user default database as "Layer" still I am getting the above error. In Line 87
"UPDATE #TEMP"
Simple Temp table update statement is there.
I did small change (Changed hardcode string value "NAN" to "INAN" )in SP. I didn't get the IDEA.
Pls advise me any one have idea.
Thanks
Mure
I am trying alter my existing Stored Procudure it is giving below error.
"Server: Msg 4064, Level 11, State 1, Procedure sp_Ex_Daily, Line 87
Cannot open user default database. Login failed."
"sp_Ex_Daily" is my SP name. we have 5 database's existing in same instance. SP is existing in "Layer" Database and the same user default database is "DataWork".
I make the user default database as "Layer" still I am getting the above error. In Line 87
"UPDATE #TEMP"
Simple Temp table update statement is there.
I did small change (Changed hardcode string value "NAN" to "INAN" )in SP. I didn't get the IDEA.
Pls advise me any one have idea.
Thanks
Mure