Schema Name Sql server from java jdbc connection -


मैं jdbc conjunction का उपयोग करके जावा से संग्रहीत कार्यविधियाँ कॉल करने की कोशिश कर रहा हूं एसक्यूएल सर्वर से कनेक्ट करने के लिए

  स्ट्रिंग संग्रहीतProcd = "{call TEST_PROC (?,?)}"; कॉलबल स्टेटमेंट = डीबीकनेक्शन। प्रीपेयरकॉल (संग्रहीतप्रोक्ड); कॉलबल स्टेटेट .सेटआईंट (1, आईडी); कॉलबल स्टाटामेंट। सेटस्ट्रिंग (2, इकाई का नाम); callableStatement.execute (); callableStatement.close ();   

समस्या यह है कि मैं JDBC url में स्कीमा नाम सेट नहीं कर सकता, यह ठीक काम करता है अगर मेरी संग्रहीत procuders डिफ़ॉल्ट स्कीमा में हैं जो कि dbo लेकिन क्या हुआ अगर मेरी संग्रहीत प्रक्रियाएं अन्य स्कीमा में हों?

किसी भी एसक्यूएल संसाधन के रूप में आप प्रक्रिया का नाम उपसर्ग कर सकते हैं स्कीमा नाम के साथ:

  "{call schema.TEST_PROC (?,?)}"    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -