sql-server-2000
How to get FK script from existing tables in SQL server?
Suppose I have many tables which have Foreign keys created. I want to get o开发者_开发问答nly the scripts for those FKs like so:[详细]
2023-04-13 08:23 分类:问答SELECT COL1+COL2 as CalcColumn,* FROM TABLE WITH (NOLOCK) WHERE 100<COL1+COL2
In a SELECT statement using a condition based on a calculated value, is it possible to include that calculated value without computing the calculated value twice - o开发者_开发知识库nce in the selecti[详细]
2023-04-12 21:55 分类:问答Reading Data Pump Task in DTS without having source and destination environment
I am working开发者_如何学运维 on migrating a DTS package which contains a oledb source (but we dont have access to the source), a olebd destination (but we have access to the dest.) and a DATA Pump Ta[详细]
2023-04-12 21:31 分类:问答How to get the current sproc session ID and drop a temp table existing in that sproc instance?
I\'m using sql2000 and I want to automatically drop a #temp table in a sproc instance or in a query window.This is more for testing purposes than production.Is there a way to get the current session o[详细]
2023-04-12 18:00 分类:问答Query to find columns that end with percent symbol %
What T-SQL q开发者_如何学编程uery I should use to find out all rows that have column1 ending with %? I am using SQL SERVER 2000. Sample data in column1:[详细]
2023-04-12 15:57 分类:问答SQL code update table
I have two ta开发者_JAVA技巧bles: Master TableAssets Table -AssetNo--AssetNo- AssetNo is the PK, and it\'s a foreign key to link the two tables. Now, I\'d like to update using:[详细]
2023-04-12 04:20 分类:问答"Select in" with "ordered pairs"
I have a table structure like this. ProductCRproductIDProductName 091553A1 091600A2 091800A3 101553A4 101600A5开发者_Go百科[详细]
2023-04-11 21:12 分类:问答SQL Server: 12% index scan density and 50% fragmentation. How bad is "bad"?
How much fragmentation is bad? How low of scan density is too low? How low does scan density is bad? i have a table with the following index density and fragmentation levels:[详细]
2023-04-11 14:19 分类:问答Connect to Sql Server 2000 using php + apache
I\'m running an Ubuntu 10.04 server with a basic lamp setup.I\'m trying to connect to a sql server 2000 database usin开发者_开发技巧g php but I have been unsuccessful so far.I\'ve googled all that I c[详细]
2023-04-11 05:54 分类:问答How to add a join based on parameter passed in stored procedure
Can I add a inner join or left join or right join based on parameter value. The only way right now I have is writing a dynamic query like[详细]
2023-04-11 05:23 分类:问答