Viewing 15 posts - 6,136 through 6,150 (of 8,761 total)
Jeff Moden (2/21/2015)
February 21, 2015 at 7:46 am
Quick trigger example, should be sufficient to get you passed this hurdle.
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_SECONDARY_TABLE') IS NOT NULL DROP TABLE dbo.TBL_SECONDARY_TABLE;
IF OBJECT_ID(N'dbo.TBL_PRIMARY_TABLE' ) IS NOT NULL DROP TABLE...
February 21, 2015 at 4:22 am
Quick suggestion (if I got the question right 😉 )
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_Group') IS NOT NULL DROP TABLE dbo.TBL_Group;
CREATE TABLE [dbo].[TBL_Group](
[Id] [int] NULL,
[Title] [varchar](100) NULL
);
IF OBJECT_ID(N'dbo.TBL_GroupProd') IS NOT...
February 21, 2015 at 3:17 am
Quick LAG window function solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_LOG') IS NOT NULL DROP TABLE dbo.TBL_LOG;
CREATE TABLE dbo.TBL_LOG
(
InfoDate DATE ...
February 21, 2015 at 2:54 am
TomThomson (2/20/2015)
Steve Jones - SSC Editor (2/20/2015)
February 21, 2015 at 12:26 am
Lynn Pettis (2/20/2015)
Ed Wagner (2/20/2015)
Lynn Pettis (2/20/2015)
SQLRNNR (2/20/2015)
Ed Wagner (2/20/2015)
Eirikur Eiriksson (2/20/2015)
SQLRNNR (2/20/2015)
Lynn Pettis (2/20/2015)
......
February 20, 2015 at 1:57 pm
SQLRNNR (2/20/2015)
Lynn Pettis (2/20/2015)
... Mark one off, 8 days on the calendar to go. 8...
February 20, 2015 at 9:24 am
KGJ-Dev (2/19/2015)
Great and thanks for the confirmation that there is no performance impact on this query.
Quick thought, if the code is called very frequently then there will be a huge...
February 19, 2015 at 11:18 pm
In order to provide any meaningful answer, some more information must be provided, i.e. are the two tables in the same database, different databases on the same server, different SQL...
February 19, 2015 at 10:24 pm
You were lucky this time, maybe it's time to implement source control and other recognized development practices;-)
😎
February 19, 2015 at 9:56 pm
ramana3327 (2/19/2015)
We have a database. It is enabled for mirroring. We need to delete the old records. That is around 500k records from a table. But it has foreign key...
February 19, 2015 at 9:38 pm
Quick thought, unless you have 2 x LotsOfRAM on a single server, run ArcGis and SQL Server on two separate servers, my guess is that if those two start to...
February 19, 2015 at 8:14 pm
Quick thought, the reason for passing parameters as string works in SQL is the implicit type casting it performs. This does not exist in VB/C# and therefore the data type...
February 19, 2015 at 7:35 pm
Lynn Pettis (2/18/2015)
... Mark one off, 9 days on the calendar to go. 9 days on the calendar to go, 9 days to go, ...
Only 1001 to go:-D
😎
February 19, 2015 at 12:37 pm
stpii (2/19/2015)
Working in a project using Entity Framework (Code First)...
Until now the project has been connected to a (generated) SQL Server Compact 4.0 database,
but now we want to connect to...
February 19, 2015 at 12:08 pm
Viewing 15 posts - 6,136 through 6,150 (of 8,761 total)