Viewing 15 posts - 1 through 15 (of 59 total)
October 4, 2016 at 1:06 am
The following page shows how the result precision and result scale will be calculated.
https://msdn.microsoft.com/en-us/library/ms190476.aspx
It makes sense in the 2560/1024.0 example if 2560 is converted to numeric(5, 1) first
October 3, 2016 at 4:07 am
You could give the TRY_PARSE function a try (pardon the pun)
September 23, 2016 at 1:21 am
Attached package with 2 variables:vValue depends on the value of vShowNew
If vShowNew is changed by the Expression Task, the value for vValue will change to the value of the NewValue...
June 16, 2016 at 6:50 am
Thanks.
I need to have the default set as soon as I open the package otherwise my data flows that use the connection come up with warnings.
The variable is used in...
June 16, 2016 at 6:24 am
Thank you for your help. Really appreciated.
Expression Task would be my prefered method. Attached a package that shows what I'm trying To do.
I can get it to work if I...
June 16, 2016 at 5:28 am
Don't think I follow.
How would you change the expression at runtime?
Surely you should be able to change the value of a variable. Hence the name.
June 16, 2016 at 3:26 am
You could use the ROW_number window function in a cte and then do a self join on it:
WITH CTE AS
(
SELECT ID, IDDATE, JID, FROMID, TOID
, ROW_NUMBER() OVER (PARTITION BY...
April 29, 2016 at 2:14 am
As long as you can guarantee that you return only 1 row you can use select:
SELECT @d1 = D1, @d2 = D2, @d3 = D3
, @d4 = D4, @d5 =...
March 23, 2016 at 9:50 am
Please make sure no data files are part of the filegroup.
SELECT * FROM sys.database_files F
INNER JOIN sys.filegroups G
ON F.data_space_id = G.data_space_id
AND G.name = 'FileGroupCommon'
BOL states:
REMOVE FILEGROUP filegroup_name
Removes a filegroup from...
March 23, 2016 at 9:36 am
You could try the following:
DECLARE @xml as xml
SET @xml =
'<Item>
<Item customerid="101" customername="Ram" gender="Male" married="Y"/>
<Item customerid="102" customername="Sham" gender="Male" married="Y"/>
<Item customerid="103" customername="Tom" gender="Male" married="N"/>
</Item>'
SELECT T.c.value('@customerid', 'int') AS Customerid
, T.c.value('@customername', 'varchar(50)')...
March 7, 2016 at 6:45 am
Try the following
COUNT(1) OVER (Partition BY a.PostalCode)
March 7, 2016 at 1:41 am
I'm getting a similar error when creating snapshots:
Msg 5014, Level 16, State 3, Line 1
The file 'Admin' does not exist in database 'Admin'.
When running the following script:
CREATE DATABASE Admin_SnapShot...
February 14, 2013 at 9:35 am
The SQL agent logs nor the SQL Server logs show any errors.
January 4, 2013 at 9:04 am
Viewing 15 posts - 1 through 15 (of 59 total)