Viewing 15 posts - 7,396 through 7,410 (of 13,876 total)
ScottPletcher (3/17/2016)
Phil Parkin (3/16/2016)
March 17, 2016 at 2:10 pm
Dynamic SQL is not necessarily required – "long-winded SQL" can avoid it. For example:
DECLARE @Col varchar(10);
SET @Col = 'Col1';
--set @Col = 'Col2';
IF Object_Id('tempdb..#Test','U') IS NOT NULL
DROP TABLE #Test;
CREATE TABLE #Test...
March 17, 2016 at 8:30 am
manoj.kumar-1078069 (3/17/2016)
1) Keeping text file as source (1 column) Load it in a recordset destination using dataflow
2) Loop over the record set and...
March 17, 2016 at 6:00 am
DATETIME is stored internally in SQL Server as the number of days since 1/1/1900 (the integer part) plus (I think) a decimal part representing the number of 300ths of a...
March 16, 2016 at 11:43 am
pjk_tgk (3/16/2016)
March 16, 2016 at 10:45 am
SQL!$@w$0ME (3/16/2016)
What is the best way to provide access to run few sql agent jobs on an instance with out granting [SQLAgentOperator] role.
Don't know about the *best* way, but one...
March 16, 2016 at 7:04 am
sqlnewbie17 (3/15/2016)
Lets say a server is not reachable for any reason.My foreachloop should skip that server and...
March 16, 2016 at 6:27 am
Not directly.
But you can handle it with some code. Import every row as a single column and then send that through a Script Component to parse out the relevant columns.
March 16, 2016 at 6:20 am
If you are open to alternative ideas, have you considered creating a table of 'selected customer numbers', which can be repopulated every time the job runs?
The table, or tables, would...
March 16, 2016 at 6:17 am
bsmith 63193 (3/15/2016)
March 15, 2016 at 10:21 am
Have you run a DBCC CHECKDB on MSDB?
March 15, 2016 at 10:18 am
lkennedy76 (3/15/2016)
I put the ISNULL back and got amounts back but I am at the same cross road, the second column (OrgAmount) is not adding up to one amount.
I don't...
March 15, 2016 at 9:43 am
Jason-299789 (3/15/2016)
Phil Parkin (3/15/2016)
Jason-299789 (3/15/2016)
The NULL will only be eradicated if there is a row with a non-Null value, in the same column.
See the code below, when aggregating on Account....
March 15, 2016 at 9:40 am
yb751 (3/15/2016)
GilaMonster (3/15/2016)
A sig that claims an MCSA and can't use SUM?You caught that too...makes you wonder if people are using other people's accounts. But why?
Indeed. Why make such...
March 15, 2016 at 9:17 am
Jason-299789 (3/15/2016)
The NULL will only be eradicated if there is a row with a non-Null value, in the same column.
See the code below, when aggregating on Account.
DECLARE @myTable TABLE...
March 15, 2016 at 9:15 am
Viewing 15 posts - 7,396 through 7,410 (of 13,876 total)