How to generate the memory duration of other databases in different database regions?

Source: Internet
Author: User
-- For example, if the test stored procedure is generated in the tempdb environment, the string does not support "go" declare @ SQL nvarchar (max) set @ SQL = 'use tempdbgocreate procedure p_testasselect 1 'exec (@ SQL)/* Interest 102, limit 15, limit 1, row 2 is not correct when it approaches 'Go. Interest 111, interval limit 15, interval limit 1, line 5 'create/alter procedure 'must be the first statement for batch query. */-- Solution Method: -- 1. First, create a stored procedure for reading the original row in test using testgoif object_id ('cmd _ script', 'P ') is not nullddrop procedure into _scriptgocreate procedure into _script (@ SQL nvarchar (max) asexec (@ SQL) go-2. zookeeper generates the test queue stored procedure use tempdbgodeclare @ SQL nvarchar (max) set @ SQL = 'create procedure p_testasselect 1 'exec test. DBO. pai_script @ sqlgoif object_id ('test. DBO. p_test ') is not nullprint n' stored in progress already exists'/* stored in progress already exists */

I can see some netizens asking this kind of questions. There are several practical methods here.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.