Viewing 15 posts - 4,261 through 4,275 (of 8,731 total)
This might work as a different approach. Comments before the CREATE statement might give wrong results, but should work better than your previous option.
SELECT STUFF( definition, CHARINDEX('CREATE ',definition), 6, 'ALTER')...
September 8, 2015 at 6:20 am
Even with SSIS, I'm not sure that formatting is possible without some code on a Script Task.
Another way to do it is by creating a Macro in Excel and run...
September 8, 2015 at 6:12 am
As you're reading all the rows from YTD, I guess a single scan should perform better.
Be sure not to get lost on what this is doing. Since you're using 2008,...
September 4, 2015 at 12:47 pm
You should read about aggregate functions. There are many places to read, but you can get a quick start by using the Stairway to T-SQL DML on this site[/url].
Your query...
September 4, 2015 at 12:19 pm
Sean is using cascading CTEs to create a tally table. A tally table allows you to work with rows that are numbered.
In this case, Sean included 100 000 rows...
September 4, 2015 at 12:10 pm
Emil B (9/4/2015)
was this ROWS/RANGE "hint" available in 2008/R2?
No, neither the ORDER BY for window functions.
But the Quirky Update is supposed to be even faster. For more information: http://www.sqlservercentral.com/articles/T-SQL/68467/
September 4, 2015 at 10:39 am
Go to the parameters tab on the source and destination objects (not the connections) and define names for the parameters. If I remember correctly (as I don't have SSIS right...
September 4, 2015 at 9:36 am
Are you using parameters for your source query?
September 4, 2015 at 8:54 am
And here I was trying to figure out how to keep the posted order.
CREATE TABLE #Test(
ID int IDENTITY(1,1),
Name varchar(20),
...
September 4, 2015 at 6:57 am
mar.ko (9/3/2015)
Luis Cazares (9/3/2015)
Not really strange as it converts to an int within the IIF before being converted to a bigint.the problems caused by ISNUMERIC
No excuse on Microsoft's part....should have...
September 3, 2015 at 1:14 pm
You could use cross tabs to create the recordset with the help of the ranking functions.
I'm not in the mood of creating the whole scenario, but it can certainly be...
September 3, 2015 at 12:24 pm
halifaxdal (9/3/2015)
Thank you very much Luis for...
September 3, 2015 at 11:31 am
halifaxdal (9/3/2015)
Luis Cazares (9/3/2015)
halifaxdal (9/3/2015)
The data row contains comma in one of the column, which makes the bcp thinking it is a delimiter.
Maybe I need to re-generate...
September 3, 2015 at 11:27 am
Not really strange as it converts to an int within the IIF before being converted to a bigint.
I would try a different approach knowing the problems caused by ISNUMERIC[/url].
CREATE TABLE...
September 3, 2015 at 11:24 am
I'm starting to hear some crickets. 😀
September 3, 2015 at 10:07 am
Viewing 15 posts - 4,261 through 4,275 (of 8,731 total)