Viewing 15 posts - 8,221 through 8,235 (of 13,876 total)
mandy-570563 (7/27/2015)
July 27, 2015 at 5:28 am
Naina_11 (7/27/2015)
This will give only the four rows for which there is data... I need result for all the months
select Mth = datename(month, dateadd(month, Mths.Mth, -1))
...
July 27, 2015 at 5:24 am
Create the table as usual, then add the FKs using ALTER TABLE:
alter table MyTable
add constraint MyTable_MyColumn_FK FOREIGN KEY ( MyColumn ) references MyOtherTable(PKColumn)
July 27, 2015 at 1:41 am
vipin_jha123 (7/27/2015)
[type_key] [int] NOT NULL,
[geog_key] [int] NOT NULL,
[Type_description] [nvarchar](50) NULL,
[Store_flag] [nvarchar](10) NULL,
[Type_short_desciption] [nvarchar](50) NULL,
[Type_long_desciption] [nvarchar](100) NULL,
PRIMARY KEY CLUSTERED
(
[type_key] ASC,
[geog_key] ASC
)
CREATE TABLE [dbo].[md_geographyleveltype](
[type_key] [int] NOT NULL,
[Type_description] [nvarchar](50) NULL,
[Store_flag]...
July 27, 2015 at 1:13 am
vipin_jha123 (7/27/2015)
I never created table on the basis of Data model diagram .
I have to create the 3 table on the basis of given Data model diagram.
there are 3...
July 27, 2015 at 12:38 am
That's no problem. SSMS is not licensed separately, so go ahead.
July 27, 2015 at 12:18 am
tt-615680 (7/24/2015)
@subject = 'Job Summary',
@profile_name = 'SQL SMTP',
@recipients = 'email address',
...
July 24, 2015 at 5:45 am
metroman17 (7/24/2015)
(ServerName varchar(128)
,ServiceName varchar(128)
,StatusOfService varchar(128)
,StatusAsOn datetime)
INSERT INTO @ServiceStatus (StatusOfService)
EXEC master..xp_servicecontrol 'QueryState', 'msdtc'
UPDATE @ServiceStatus
SET ServerName=cast(@@SERVERNAME as varchar(128))
,ServiceName='Microsoft Distributed Transaction Coordinator'
,StatusAsOn=GETDATE()
--WHERE ServerName IS NULL
SELECT * FROM...
July 24, 2015 at 4:07 am
I do not have dbo.Notifications.
Did you read the link in my signature?
July 24, 2015 at 1:18 am
If I were to run this in my local SSMS, it would fail.
July 24, 2015 at 12:50 am
kmamenya (7/23/2015)
I am trying to calculate the number of hours a device has been used and I cant find how...Any help guys...I need a query that calculated and does...
July 24, 2015 at 12:13 am
You have been here long enough to know that you should post your data in a consumable format.
July 23, 2015 at 1:00 pm
dwilliscp (7/23/2015)
July 23, 2015 at 8:57 am
I'm with Alvin. In fact I'll be more blunt: the packages should be rewritten.
Many of the things DTS can do cannot be directly translated to SSIS. Hundreds of the...
July 22, 2015 at 1:03 pm
Alvin Ramard (7/22/2015)
If you have many packages to migrate, then you might want to consider 3rd party tools for doing so. the only one I'm aware of is from a...
July 22, 2015 at 1:00 pm
Viewing 15 posts - 8,221 through 8,235 (of 13,876 total)