dynamic-sql
How can I do a dynamic pivot in SQL Server 2000
I want to write a SQL statement that use开发者_运维问答s a pivot in SQL Server 2000. The PIVOT keyword is not available in SQL Server 2000 so I found some examples that use a case statement but that r[详细]
2023-01-25 01:49 分类:问答Need help with mysql schema design - current schema requires dynamic sql within a trigger
I imagine that I have designed my database badly, but I\'m currently stumped by the fact that I need to use dynamic sql in a trigger and that\'s making mysql unhappy.[详细]
2023-01-24 18:46 分类:问答What is dynamic SQL?
I just asked an SQL related question, and the first answer was: \"This is a situation where dynamic SQL is the way to go.\"[详细]
2023-01-24 14:00 分类:问答Quoting identifiers for dynamic SQL in PL/SQL
Is there a PL/SQL function or general technique to quote unqualified identifiers (e.g., mytable) for use in a dynamically constructed SQL query?How about partially or fully qualified identifiers (a.b@[详细]
2023-01-21 04:46 分类:问答help me SELECT-ing from chained stored procedures
I added my local server pblack as linked server in SQL Server 2008 R2 ---1) EXEC master.dbo.sp_addli开发者_JAVA百科nkedserver @server = N\'pblack\',[详细]
2023-01-20 17:44 分类:问答Table with Select Statements, Executing Dynamic SQL and Returning Values
I have a select statement that returns a table full of SELECT statements (It goes through every column in every table and creates a select to find if that column contains any bad data).[详细]
2023-01-19 03:28 分类:问答Getting result of dynamic SQL into a variable for sql-server
Executing dynamic SQL as follows in Stored Procedure: DECLARE @sqlCommand nvarchar(1000) DECLARE @c开发者_如何学运维ity varchar(75)[详细]
2023-01-18 04:24 分类:问答Permissions when using "Execute sp_Executesql"
I have a database where all access is controlled by stored procedures. The DBA would like to avoid giving users direct read/write access to the underlying tables, which I can understand. Hence all upd[详细]
2023-01-18 03:39 分类:问答T-SQL: can I use a variable as a database reference
I want to accomplish this: update @sourceDatabase.dbo.PredictedPrices and then set @sourceDatabase as a variable.[详细]
2023-01-18 02:00 分类:问答APOSTROPHE DYNAMIC SQL
DEC开发者_如何学GoLARE @SQL Varchar(Max) DECLARE @DESCR Varchar(Max) -- Customer enters description into @Descr[详细]
2023-01-16 09:27 分类:问答
加载中,请稍侯......