sql-server-2008
Derived table used several times
I need to run 3 consecutive queries using the same derived table... I\'m using MS SQL Server 2008 Select a,b,c from categories inner join (select x,y,z from derivedTable where…) …[详细]
2023-04-13 09:59 分类:问答Join a table to itself
this is one on my database tables template. Id int开发者_运维百科 PK Title nvarchar(10) unique ParentId int[详细]
2023-04-13 08:37 分类:问答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 分类:问答Concurrency problems with temp tables in consequent batches?
I have sometimes a problem when running a script. I have the probelm when using an application (that I didn\'t write and therefore cannot debug) that launches t开发者_如何转开发he scripts. This app is[详细]
2023-04-13 08:21 分类:问答Grouping stored procedure's result
Hi I have the next store procedure `USE [BD_SSEGUA] GO /* Object:StoredProcedure [dbo].[spAgendaDeSolicitudes]Script Date: 10/14/2011开发者_开发技巧 16:43:00 */[详细]
2023-04-13 08:03 分类:问答Error when connect to remote SQL Server
I try to connect to remote SQL Server 2008 Express database from my ASP.NET web application but error throws:[详细]
2023-04-13 07:56 分类:问答SQL Server 2008 datetime type time comparison
Is the following query the most inefficient way to filter by only the time part datetime field in SQL Server 2008?[详细]
2023-04-13 07:54 分类:问答update records where null from subquery
I have been tryin开发者_运维百科g to get this query to work for the longest and I figure maybe I am not looking at it right. Basically I have records in a table where I am trying to locate where their[详细]
2023-04-13 07:49 分类:问答Excel cells with date values not importing properly via SSIS
I have an Excel \'97 spreadsheet that is generated by an external automated process that I would like to import into a SQL [2008 R2] table via SSIS.The column I am importing contains text values in so[详细]
2023-04-13 07:13 分类:问答Is this a bug in MERGE, failing to implement FOREIGN KEY properly?
I am using the following tables to implement subtypes, which is a very common approach: CREATE TABLE dbo.Vehicles([详细]
2023-04-13 07:04 分类:问答