Viewing 15 posts - 16 through 30 (of 183 total)
If there are multiple values, you need to include curly braces...
Example:
SELECT StrToSet (
'{[Geography].[Geography].[Country].[Germany]
,[Geography].[Geography].[Country].[Canada]}'
...
December 22, 2015 at 4:05 am
Qira (8/3/2015)
I've
1. Data Warehouse
2. OLAP CUBE in Analysis Services
My question is - If my Data Warehouse is changed (Having Append Data) - My OLAP Cube will have the Append Data?
It's...
August 5, 2015 at 7:28 am
You almost have a working function with the 2 scripts you already provided.
Just combine the two!
August 5, 2015 at 7:18 am
SQL-DBA-01 (7/30/2015)
If I run the below command, it helps to clean up the files inside the folders but unable to clean up the folder and sub-folders older than 30...
August 3, 2015 at 9:34 am
iam777here4u (4/23/2014)
But what are those advantages of foreign key constraint, I still be able to maintain data integrity through trigger. There are cases that business codes only contains two characters.
Here...
April 23, 2014 at 3:43 am
This may help in making a decision.
http://technet.microsoft.com/en-us/library/ms189261(v=sql.105).aspx
IMO - for your scenario - I would choose a foreign key constraint 🙂
April 23, 2014 at 2:16 am
You get a float value that is n days since Jan 01 1900 00:00:00
Select convert(float,getdate(),112)
SELECT CONVERT(DATETIME,41729.6878646605 )
April 2, 2014 at 9:34 am
Hi Andrew,
I have created this for you from a similar maintenance task I undertake:
EXEC sp_MSforeachdb 'IF ''?'' NOT IN (''tempDB'',''model'',''msdb'', ''master'')
BEGIN
DECLARE @desiredSizeInMB INT = 16, @execSQL NVARCHAR(MAX)
...
March 31, 2014 at 10:19 am
Hi,
Have you tried using Execute Process Task?
...if you choose your batch commands from the target "Executable" this should give you want you want.
September 16, 2013 at 10:01 am
JimS-Indy (9/3/2013)
begin transaction
delete tblWorkOrders
from tblWorkOrders wo
where wo.projectid=03555
and not...
September 3, 2013 at 8:49 am
npranj (9/2/2013)
1. SQL 2012 has introducted FETCH OFFSET ...
SELECT FirstNm,LastNm
FROM Person
ORDER BY FirstNm
OFFSET 5 ROWS
FETCH NEXT 10 ROWS...
September 3, 2013 at 8:39 am
t2sqldba (8/14/2013)
I got a requirement where I need to collect report about SQL server configuration and the report should have columns like SQL server instance name,SQL Server Collation,Edition,location of TempDB,SQL...
August 14, 2013 at 7:03 am
If scan counts are a concern, you could add a primary key for all columns (as you are using a SELECT * FROM)
DECLARE @Tbl AS TABLE
(
...
August 14, 2013 at 4:12 am
Hi,
Having had a brief look, the second query (on my PC) was better in terms of CPU and fewer reads.
I also added a PK to the table variable which further...
August 14, 2013 at 3:44 am
I don't like to use the term "it depends" but in my experience the more you calculate up front (in the data source/set) less goes wrong.
With that said;
...
April 12, 2013 at 7:29 am
Viewing 15 posts - 16 through 30 (of 183 total)