Viewing 15 posts - 4,381 through 4,395 (of 8,761 total)
Quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
if object_id('Tempdb..#Element1') is not null drop table #Element1;
create table #Element1 (
[Attr1] varchar(10)
,[Attr2] varchar(4)
,[Attr3] varchar(2)
...
October 7, 2015 at 2:43 am
Does the 2008 db pass the integrity check?
😎
October 6, 2015 at 8:50 am
John Rowan (10/5/2015)
October 5, 2015 at 8:51 pm
Quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @TableA TABLE
(
FldA INT NOT NULL
,FldB INT NOT NULL
);
INSERT INTO @TableA(FldA,FldB)
VALUES (3,4)
...
October 5, 2015 at 8:24 pm
Grant Fritchey (10/5/2015)
October 5, 2015 at 11:52 am
Quick question, can you post the DDL (create table script) for those two tables?
😎
October 5, 2015 at 11:49 am
chancrovsky (10/5/2015)
October 5, 2015 at 10:56 am
Welsh Corgi (10/5/2015)
I did a couple of backups from the GUI and it named the file with a trn extension.
Are you certain those are full backups and not transaction log...
October 5, 2015 at 10:48 am
Quick questions, are the backups successful (check the log)? Any cleanup tasks scheduled or running? Is it the right drive?
😎
October 5, 2015 at 9:17 am
erb2000 (10/4/2015)
Yes, it is a huge IN clause with hundreds of elements.
Quick suggestion, have a look at this article When is a Seek not a Seek? by Paul White, sounds...
October 4, 2015 at 1:32 pm
erb2000 (10/4/2015)
October 4, 2015 at 12:10 pm
Two possible solutions
😎
USE tempdb;
GO
SET NOCOUNT ON;
--- First Create two tables
IF OBJECT_ID(N'dbo.tabA') IS NOT NULL DROP TABLE dbo.tabA;
CREATE TABLE dbo.tabA
(
cola1 NVARCHAR(100) NULL
,cola2 NVARCHAR(100) NULL
...
October 4, 2015 at 11:21 am
Quick question, can you supply some more details, the data and query posted need a little bit more explanation as the result is simply a Cartesian produce of the two...
October 4, 2015 at 10:09 am
sqllearner1234 (10/3/2015)
October 4, 2015 at 5:30 am
Viewing 15 posts - 4,381 through 4,395 (of 8,761 total)